[2025-04-12 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:00:06 [end_date_ymd] => 2025-04-12 00:00:06 [RateCDR] => 1 ) [2025-04-12 00:00: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-04-11 21:00:06' and `end` < '2025-04-12 00:00: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-04-12 00:00:20] Production.INFO: count ==1300 [2025-04-12 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-11 21:00:06 - End Time 2025-04-12 00:00:06 [2025-04-12 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887744', 'tblTempUsageDetail_20' ) start [2025-04-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887744', 'tblTempUsageDetail_20' ) end [2025-04-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887744', 'tblTempVendorCDR_20' ) start [2025-04-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887744', 'tblTempVendorCDR_20' ) end [2025-04-12 00:00:20] Production.INFO: ProcessCDR(1,14887744,1,1,2) [2025-04-12 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887744', 'tblTempUsageDetail_20' ) start [2025-04-12 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887744', 'tblTempUsageDetail_20' ) end [2025-04-12 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:00:26] Production.INFO: ==31896== Releasing lock... [2025-04-12 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:00:26] Production.INFO: 39 MB #Memory Used# [2025-04-12 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:01:06 [end_date_ymd] => 2025-04-12 00:01:06 [RateCDR] => 1 ) [2025-04-12 00:01: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-04-11 21:01:06' and `end` < '2025-04-12 00:01: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-04-12 00:01:20] Production.INFO: count ==1244 [2025-04-12 00:01:21] Production.ERROR: pbx CDR StartTime 2025-04-11 21:01:06 - End Time 2025-04-12 00:01:06 [2025-04-12 00:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887749', 'tblTempUsageDetail_20' ) start [2025-04-12 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887749', 'tblTempUsageDetail_20' ) end [2025-04-12 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887749', 'tblTempVendorCDR_20' ) start [2025-04-12 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887749', 'tblTempVendorCDR_20' ) end [2025-04-12 00:01:21] Production.INFO: ProcessCDR(1,14887749,1,1,2) [2025-04-12 00:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887749', 'tblTempUsageDetail_20' ) start [2025-04-12 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887749', 'tblTempUsageDetail_20' ) end [2025-04-12 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:01:25] Production.INFO: ==32004== Releasing lock... [2025-04-12 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:01:25] Production.INFO: 38 MB #Memory Used# [2025-04-12 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:02:05 [end_date_ymd] => 2025-04-12 00:02:05 [RateCDR] => 1 ) [2025-04-12 00:02: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-04-11 21:02:05' and `end` < '2025-04-12 00:02: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-04-12 00:02:18] Production.INFO: count ==725 [2025-04-12 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:02:05 - End Time 2025-04-12 00:02:05 [2025-04-12 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887754', 'tblTempUsageDetail_20' ) start [2025-04-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887754', 'tblTempUsageDetail_20' ) end [2025-04-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887754', 'tblTempVendorCDR_20' ) start [2025-04-12 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887754', 'tblTempVendorCDR_20' ) end [2025-04-12 00:02:18] Production.INFO: ProcessCDR(1,14887754,1,1,2) [2025-04-12 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887754', 'tblTempUsageDetail_20' ) start [2025-04-12 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887754', 'tblTempUsageDetail_20' ) end [2025-04-12 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:02:23] Production.INFO: ==32096== Releasing lock... [2025-04-12 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:03:05 [end_date_ymd] => 2025-04-12 00:03:05 [RateCDR] => 1 ) [2025-04-12 00:03: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-04-11 21:03:05' and `end` < '2025-04-12 00:03: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-04-12 00:03:18] Production.INFO: count ==725 [2025-04-12 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:03:05 - End Time 2025-04-12 00:03:05 [2025-04-12 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887759', 'tblTempUsageDetail_20' ) start [2025-04-12 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887759', 'tblTempUsageDetail_20' ) end [2025-04-12 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887759', 'tblTempVendorCDR_20' ) start [2025-04-12 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887759', 'tblTempVendorCDR_20' ) end [2025-04-12 00:03:19] Production.INFO: ProcessCDR(1,14887759,1,1,2) [2025-04-12 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887759', 'tblTempUsageDetail_20' ) start [2025-04-12 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887759', 'tblTempUsageDetail_20' ) end [2025-04-12 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:03:22] Production.INFO: ==32189== Releasing lock... [2025-04-12 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:03:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:04:05 [end_date_ymd] => 2025-04-12 00:04:05 [RateCDR] => 1 ) [2025-04-12 00:04: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-04-11 21:04:05' and `end` < '2025-04-12 00:04: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-04-12 00:04:27] Production.INFO: count ==725 [2025-04-12 00:04:27] Production.ERROR: pbx CDR StartTime 2025-04-11 21:04:05 - End Time 2025-04-12 00:04:05 [2025-04-12 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887764', 'tblTempUsageDetail_20' ) start [2025-04-12 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887764', 'tblTempUsageDetail_20' ) end [2025-04-12 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887764', 'tblTempVendorCDR_20' ) start [2025-04-12 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887764', 'tblTempVendorCDR_20' ) end [2025-04-12 00:04:27] Production.INFO: ProcessCDR(1,14887764,1,1,2) [2025-04-12 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887764', 'tblTempUsageDetail_20' ) start [2025-04-12 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887764', 'tblTempUsageDetail_20' ) end [2025-04-12 00:04:31] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:04:31] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:04:31] Production.INFO: ==32284== Releasing lock... [2025-04-12 00:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:04:31] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:05:05 [end_date_ymd] => 2025-04-12 00:05:05 [RateCDR] => 1 ) [2025-04-12 00:05: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-04-11 21:05:05' and `end` < '2025-04-12 00:05: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-04-12 00:05:33] Production.INFO: count ==725 [2025-04-12 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-11 21:05:05 - End Time 2025-04-12 00:05:05 [2025-04-12 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887769', 'tblTempUsageDetail_20' ) start [2025-04-12 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887769', 'tblTempUsageDetail_20' ) end [2025-04-12 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887769', 'tblTempVendorCDR_20' ) start [2025-04-12 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887769', 'tblTempVendorCDR_20' ) end [2025-04-12 00:05:33] Production.INFO: ProcessCDR(1,14887769,1,1,2) [2025-04-12 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887769', 'tblTempUsageDetail_20' ) start [2025-04-12 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887769', 'tblTempUsageDetail_20' ) end [2025-04-12 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:05:37] Production.INFO: ==32375== Releasing lock... [2025-04-12 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:05:37] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:06:06 [end_date_ymd] => 2025-04-12 00:06:06 [RateCDR] => 1 ) [2025-04-12 00:06: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-04-11 21:06:06' and `end` < '2025-04-12 00:06: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-04-12 00:06:30] Production.INFO: count ==723 [2025-04-12 00:06:30] Production.ERROR: pbx CDR StartTime 2025-04-11 21:06:06 - End Time 2025-04-12 00:06:06 [2025-04-12 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887774', 'tblTempUsageDetail_20' ) start [2025-04-12 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887774', 'tblTempUsageDetail_20' ) end [2025-04-12 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887774', 'tblTempVendorCDR_20' ) start [2025-04-12 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887774', 'tblTempVendorCDR_20' ) end [2025-04-12 00:06:30] Production.INFO: ProcessCDR(1,14887774,1,1,2) [2025-04-12 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887774', 'tblTempUsageDetail_20' ) start [2025-04-12 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887774', 'tblTempUsageDetail_20' ) end [2025-04-12 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:06:33] Production.INFO: ==32473== Releasing lock... [2025-04-12 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:06:33] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:07:05 [end_date_ymd] => 2025-04-12 00:07:05 [RateCDR] => 1 ) [2025-04-12 00:07: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-04-11 21:07:05' and `end` < '2025-04-12 00:07: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-04-12 00:07:29] Production.INFO: count ==723 [2025-04-12 00:07:30] Production.ERROR: pbx CDR StartTime 2025-04-11 21:07:05 - End Time 2025-04-12 00:07:05 [2025-04-12 00:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887778', 'tblTempUsageDetail_20' ) start [2025-04-12 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887778', 'tblTempUsageDetail_20' ) end [2025-04-12 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887778', 'tblTempVendorCDR_20' ) start [2025-04-12 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887778', 'tblTempVendorCDR_20' ) end [2025-04-12 00:07:30] Production.INFO: ProcessCDR(1,14887778,1,1,2) [2025-04-12 00:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887778', 'tblTempUsageDetail_20' ) start [2025-04-12 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887778', 'tblTempUsageDetail_20' ) end [2025-04-12 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:07:33] Production.INFO: ==32594== Releasing lock... [2025-04-12 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:07:33] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:08:05 [end_date_ymd] => 2025-04-12 00:08:05 [RateCDR] => 1 ) [2025-04-12 00:08: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-04-11 21:08:05' and `end` < '2025-04-12 00:08: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-04-12 00:08:28] Production.INFO: count ==723 [2025-04-12 00:08:28] Production.ERROR: pbx CDR StartTime 2025-04-11 21:08:05 - End Time 2025-04-12 00:08:05 [2025-04-12 00:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887784', 'tblTempUsageDetail_20' ) start [2025-04-12 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887784', 'tblTempUsageDetail_20' ) end [2025-04-12 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887784', 'tblTempVendorCDR_20' ) start [2025-04-12 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887784', 'tblTempVendorCDR_20' ) end [2025-04-12 00:08:28] Production.INFO: ProcessCDR(1,14887784,1,1,2) [2025-04-12 00:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887784', 'tblTempUsageDetail_20' ) start [2025-04-12 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887784', 'tblTempUsageDetail_20' ) end [2025-04-12 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:08:32] Production.INFO: ==32670== Releasing lock... [2025-04-12 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:08:32] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:09:05 [end_date_ymd] => 2025-04-12 00:09:05 [RateCDR] => 1 ) [2025-04-12 00:09: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-04-11 21:09:05' and `end` < '2025-04-12 00:09: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-04-12 00:09:27] Production.INFO: count ==722 [2025-04-12 00:09:27] Production.ERROR: pbx CDR StartTime 2025-04-11 21:09:05 - End Time 2025-04-12 00:09:05 [2025-04-12 00:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887789', 'tblTempUsageDetail_20' ) start [2025-04-12 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887789', 'tblTempUsageDetail_20' ) end [2025-04-12 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887789', 'tblTempVendorCDR_20' ) start [2025-04-12 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887789', 'tblTempVendorCDR_20' ) end [2025-04-12 00:09:27] Production.INFO: ProcessCDR(1,14887789,1,1,2) [2025-04-12 00:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887789', 'tblTempUsageDetail_20' ) start [2025-04-12 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887789', 'tblTempUsageDetail_20' ) end [2025-04-12 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:09:31] Production.INFO: ==32750== Releasing lock... [2025-04-12 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:09:31] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:10:06 [end_date_ymd] => 2025-04-12 00:10:06 [RateCDR] => 1 ) [2025-04-12 00:10: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-04-11 21:10:06' and `end` < '2025-04-12 00:10: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-04-12 00:10:19] Production.INFO: count ==732 [2025-04-12 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:10:06 - End Time 2025-04-12 00:10:06 [2025-04-12 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887795', 'tblTempUsageDetail_20' ) start [2025-04-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887795', 'tblTempUsageDetail_20' ) end [2025-04-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887795', 'tblTempVendorCDR_20' ) start [2025-04-12 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887795', 'tblTempVendorCDR_20' ) end [2025-04-12 00:10:19] Production.INFO: ProcessCDR(1,14887795,1,1,2) [2025-04-12 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887795', 'tblTempUsageDetail_20' ) start [2025-04-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887795', 'tblTempUsageDetail_20' ) end [2025-04-12 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:10:23] Production.INFO: ==379== Releasing lock... [2025-04-12 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:10:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:11:05 [end_date_ymd] => 2025-04-12 00:11:05 [RateCDR] => 1 ) [2025-04-12 00:11: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-04-11 21:11:05' and `end` < '2025-04-12 00:11: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-04-12 00:11:19] Production.INFO: count ==750 [2025-04-12 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:11:05 - End Time 2025-04-12 00:11:05 [2025-04-12 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887800', 'tblTempUsageDetail_20' ) start [2025-04-12 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887800', 'tblTempUsageDetail_20' ) end [2025-04-12 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887800', 'tblTempVendorCDR_20' ) start [2025-04-12 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887800', 'tblTempVendorCDR_20' ) end [2025-04-12 00:11:19] Production.INFO: ProcessCDR(1,14887800,1,1,2) [2025-04-12 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887800', 'tblTempUsageDetail_20' ) start [2025-04-12 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887800', 'tblTempUsageDetail_20' ) end [2025-04-12 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:11:23] Production.INFO: ==465== Releasing lock... [2025-04-12 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:11:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:12:06 [end_date_ymd] => 2025-04-12 00:12:06 [RateCDR] => 1 ) [2025-04-12 00:12: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-04-11 21:12:06' and `end` < '2025-04-12 00:12: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-04-12 00:12:19] Production.INFO: count ==750 [2025-04-12 00:12:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:12:06 - End Time 2025-04-12 00:12:06 [2025-04-12 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887805', 'tblTempUsageDetail_20' ) start [2025-04-12 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887805', 'tblTempUsageDetail_20' ) end [2025-04-12 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887805', 'tblTempVendorCDR_20' ) start [2025-04-12 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887805', 'tblTempVendorCDR_20' ) end [2025-04-12 00:12:19] Production.INFO: ProcessCDR(1,14887805,1,1,2) [2025-04-12 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887805', 'tblTempUsageDetail_20' ) start [2025-04-12 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887805', 'tblTempUsageDetail_20' ) end [2025-04-12 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:12:23] Production.INFO: ==555== Releasing lock... [2025-04-12 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:12:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:13:05 [end_date_ymd] => 2025-04-12 00:13:05 [RateCDR] => 1 ) [2025-04-12 00:13: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-04-11 21:13:05' and `end` < '2025-04-12 00:13: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-04-12 00:13:18] Production.INFO: count ==750 [2025-04-12 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:13:05 - End Time 2025-04-12 00:13:05 [2025-04-12 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887810', 'tblTempUsageDetail_20' ) start [2025-04-12 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887810', 'tblTempUsageDetail_20' ) end [2025-04-12 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887810', 'tblTempVendorCDR_20' ) start [2025-04-12 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887810', 'tblTempVendorCDR_20' ) end [2025-04-12 00:13:18] Production.INFO: ProcessCDR(1,14887810,1,1,2) [2025-04-12 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887810', 'tblTempUsageDetail_20' ) start [2025-04-12 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887810', 'tblTempUsageDetail_20' ) end [2025-04-12 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:13:21] Production.INFO: ==640== Releasing lock... [2025-04-12 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:13:21] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:14:05 [end_date_ymd] => 2025-04-12 00:14:05 [RateCDR] => 1 ) [2025-04-12 00:14: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-04-11 21:14:05' and `end` < '2025-04-12 00:14: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-04-12 00:14:18] Production.INFO: count ==751 [2025-04-12 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:14:05 - End Time 2025-04-12 00:14:05 [2025-04-12 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887815', 'tblTempUsageDetail_20' ) start [2025-04-12 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887815', 'tblTempUsageDetail_20' ) end [2025-04-12 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887815', 'tblTempVendorCDR_20' ) start [2025-04-12 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887815', 'tblTempVendorCDR_20' ) end [2025-04-12 00:14:19] Production.INFO: ProcessCDR(1,14887815,1,1,2) [2025-04-12 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887815', 'tblTempUsageDetail_20' ) start [2025-04-12 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887815', 'tblTempUsageDetail_20' ) end [2025-04-12 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:14:24] Production.INFO: ==742== Releasing lock... [2025-04-12 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:14:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:15:05 [end_date_ymd] => 2025-04-12 00:15:05 [RateCDR] => 1 ) [2025-04-12 00:15: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-04-11 21:15:05' and `end` < '2025-04-12 00:15: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-04-12 00:15:18] Production.INFO: count ==750 [2025-04-12 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:15:05 - End Time 2025-04-12 00:15:05 [2025-04-12 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887820', 'tblTempUsageDetail_20' ) start [2025-04-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887820', 'tblTempUsageDetail_20' ) end [2025-04-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887820', 'tblTempVendorCDR_20' ) start [2025-04-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887820', 'tblTempVendorCDR_20' ) end [2025-04-12 00:15:18] Production.INFO: ProcessCDR(1,14887820,1,1,2) [2025-04-12 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887820', 'tblTempUsageDetail_20' ) start [2025-04-12 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887820', 'tblTempUsageDetail_20' ) end [2025-04-12 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:15:22] Production.INFO: ==822== Releasing lock... [2025-04-12 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:15:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:16:06 [end_date_ymd] => 2025-04-12 00:16:06 [RateCDR] => 1 ) [2025-04-12 00:16: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-04-11 21:16:06' and `end` < '2025-04-12 00:16: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-04-12 00:16:18] Production.INFO: count ==750 [2025-04-12 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:16:06 - End Time 2025-04-12 00:16:06 [2025-04-12 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887825', 'tblTempUsageDetail_20' ) start [2025-04-12 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887825', 'tblTempUsageDetail_20' ) end [2025-04-12 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887825', 'tblTempVendorCDR_20' ) start [2025-04-12 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887825', 'tblTempVendorCDR_20' ) end [2025-04-12 00:16:19] Production.INFO: ProcessCDR(1,14887825,1,1,2) [2025-04-12 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887825', 'tblTempUsageDetail_20' ) start [2025-04-12 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887825', 'tblTempUsageDetail_20' ) end [2025-04-12 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:16:22] Production.INFO: ==907== Releasing lock... [2025-04-12 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:17:05 [end_date_ymd] => 2025-04-12 00:17:05 [RateCDR] => 1 ) [2025-04-12 00:17: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-04-11 21:17:05' and `end` < '2025-04-12 00:17: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-04-12 00:17:18] Production.INFO: count ==749 [2025-04-12 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:17:05 - End Time 2025-04-12 00:17:05 [2025-04-12 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887830', 'tblTempUsageDetail_20' ) start [2025-04-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887830', 'tblTempUsageDetail_20' ) end [2025-04-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887830', 'tblTempVendorCDR_20' ) start [2025-04-12 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887830', 'tblTempVendorCDR_20' ) end [2025-04-12 00:17:18] Production.INFO: ProcessCDR(1,14887830,1,1,2) [2025-04-12 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887830', 'tblTempUsageDetail_20' ) start [2025-04-12 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887830', 'tblTempUsageDetail_20' ) end [2025-04-12 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:17:22] Production.INFO: ==986== Releasing lock... [2025-04-12 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:17:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:18:06 [end_date_ymd] => 2025-04-12 00:18:06 [RateCDR] => 1 ) [2025-04-12 00:18: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-04-11 21:18:06' and `end` < '2025-04-12 00:18: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-04-12 00:18:19] Production.INFO: count ==749 [2025-04-12 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:18:06 - End Time 2025-04-12 00:18:06 [2025-04-12 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887835', 'tblTempUsageDetail_20' ) start [2025-04-12 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887835', 'tblTempUsageDetail_20' ) end [2025-04-12 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887835', 'tblTempVendorCDR_20' ) start [2025-04-12 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887835', 'tblTempVendorCDR_20' ) end [2025-04-12 00:18:19] Production.INFO: ProcessCDR(1,14887835,1,1,2) [2025-04-12 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887835', 'tblTempUsageDetail_20' ) start [2025-04-12 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887835', 'tblTempUsageDetail_20' ) end [2025-04-12 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:18:22] Production.INFO: ==1064== Releasing lock... [2025-04-12 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:18:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:19:04 [end_date_ymd] => 2025-04-12 00:19:04 [RateCDR] => 1 ) [2025-04-12 00:19: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-04-11 21:19:04' and `end` < '2025-04-12 00:19: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-04-12 00:19:17] Production.INFO: count ==749 [2025-04-12 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:19:04 - End Time 2025-04-12 00:19:04 [2025-04-12 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887840', 'tblTempUsageDetail_20' ) start [2025-04-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887840', 'tblTempUsageDetail_20' ) end [2025-04-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887840', 'tblTempVendorCDR_20' ) start [2025-04-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887840', 'tblTempVendorCDR_20' ) end [2025-04-12 00:19:18] Production.INFO: ProcessCDR(1,14887840,1,1,2) [2025-04-12 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887840', 'tblTempUsageDetail_20' ) start [2025-04-12 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887840', 'tblTempUsageDetail_20' ) end [2025-04-12 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:19:21] Production.INFO: ==1147== Releasing lock... [2025-04-12 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:20:06 [end_date_ymd] => 2025-04-12 00:20:06 [RateCDR] => 1 ) [2025-04-12 00:20: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-04-11 21:20:06' and `end` < '2025-04-12 00:20: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-04-12 00:20:19] Production.INFO: count ==758 [2025-04-12 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:20:06 - End Time 2025-04-12 00:20:06 [2025-04-12 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887846', 'tblTempUsageDetail_20' ) start [2025-04-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887846', 'tblTempUsageDetail_20' ) end [2025-04-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887846', 'tblTempVendorCDR_20' ) start [2025-04-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887846', 'tblTempVendorCDR_20' ) end [2025-04-12 00:20:19] Production.INFO: ProcessCDR(1,14887846,1,1,2) [2025-04-12 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887846', 'tblTempUsageDetail_20' ) start [2025-04-12 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887846', 'tblTempUsageDetail_20' ) end [2025-04-12 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:20:23] Production.INFO: ==1245== Releasing lock... [2025-04-12 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:20:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:21:05 [end_date_ymd] => 2025-04-12 00:21:05 [RateCDR] => 1 ) [2025-04-12 00:21: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-04-11 21:21:05' and `end` < '2025-04-12 00:21: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-04-12 00:21:18] Production.INFO: count ==762 [2025-04-12 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:21:05 - End Time 2025-04-12 00:21:05 [2025-04-12 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887851', 'tblTempUsageDetail_20' ) start [2025-04-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887851', 'tblTempUsageDetail_20' ) end [2025-04-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887851', 'tblTempVendorCDR_20' ) start [2025-04-12 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887851', 'tblTempVendorCDR_20' ) end [2025-04-12 00:21:18] Production.INFO: ProcessCDR(1,14887851,1,1,2) [2025-04-12 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887851', 'tblTempUsageDetail_20' ) start [2025-04-12 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887851', 'tblTempUsageDetail_20' ) end [2025-04-12 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:21:22] Production.INFO: ==1332== Releasing lock... [2025-04-12 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:21:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:22:05 [end_date_ymd] => 2025-04-12 00:22:05 [RateCDR] => 1 ) [2025-04-12 00:22: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-04-11 21:22:05' and `end` < '2025-04-12 00:22: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-04-12 00:22:18] Production.INFO: count ==762 [2025-04-12 00:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:22:05 - End Time 2025-04-12 00:22:05 [2025-04-12 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887856', 'tblTempUsageDetail_20' ) start [2025-04-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887856', 'tblTempUsageDetail_20' ) end [2025-04-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887856', 'tblTempVendorCDR_20' ) start [2025-04-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887856', 'tblTempVendorCDR_20' ) end [2025-04-12 00:22:19] Production.INFO: ProcessCDR(1,14887856,1,1,2) [2025-04-12 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887856', 'tblTempUsageDetail_20' ) start [2025-04-12 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887856', 'tblTempUsageDetail_20' ) end [2025-04-12 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:22:22] Production.INFO: ==1455== Releasing lock... [2025-04-12 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:23:05 [end_date_ymd] => 2025-04-12 00:23:05 [RateCDR] => 1 ) [2025-04-12 00:23: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-04-11 21:23:05' and `end` < '2025-04-12 00:23: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-04-12 00:23:17] Production.INFO: count ==762 [2025-04-12 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:23:05 - End Time 2025-04-12 00:23:05 [2025-04-12 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887861', 'tblTempUsageDetail_20' ) start [2025-04-12 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887861', 'tblTempUsageDetail_20' ) end [2025-04-12 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887861', 'tblTempVendorCDR_20' ) start [2025-04-12 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887861', 'tblTempVendorCDR_20' ) end [2025-04-12 00:23:18] Production.INFO: ProcessCDR(1,14887861,1,1,2) [2025-04-12 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887861', 'tblTempUsageDetail_20' ) start [2025-04-12 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887861', 'tblTempUsageDetail_20' ) end [2025-04-12 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:23:21] Production.INFO: ==1560== Releasing lock... [2025-04-12 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:23:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:24:05 [end_date_ymd] => 2025-04-12 00:24:05 [RateCDR] => 1 ) [2025-04-12 00:24: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-04-11 21:24:05' and `end` < '2025-04-12 00:24: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-04-12 00:24:18] Production.INFO: count ==762 [2025-04-12 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:24:05 - End Time 2025-04-12 00:24:05 [2025-04-12 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887866', 'tblTempUsageDetail_20' ) start [2025-04-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887866', 'tblTempUsageDetail_20' ) end [2025-04-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887866', 'tblTempVendorCDR_20' ) start [2025-04-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887866', 'tblTempVendorCDR_20' ) end [2025-04-12 00:24:19] Production.INFO: ProcessCDR(1,14887866,1,1,2) [2025-04-12 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887866', 'tblTempUsageDetail_20' ) start [2025-04-12 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887866', 'tblTempUsageDetail_20' ) end [2025-04-12 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:24:22] Production.INFO: ==1645== Releasing lock... [2025-04-12 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:24:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:25:05 [end_date_ymd] => 2025-04-12 00:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-11 21:25:05' and `end` < '2025-04-12 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-04-12 00:25:18] Production.INFO: count ==765 [2025-04-12 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:25:05 - End Time 2025-04-12 00:25:05 [2025-04-12 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887871', 'tblTempUsageDetail_20' ) start [2025-04-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887871', 'tblTempUsageDetail_20' ) end [2025-04-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887871', 'tblTempVendorCDR_20' ) start [2025-04-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887871', 'tblTempVendorCDR_20' ) end [2025-04-12 00:25:19] Production.INFO: ProcessCDR(1,14887871,1,1,2) [2025-04-12 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887871', 'tblTempUsageDetail_20' ) start [2025-04-12 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887871', 'tblTempUsageDetail_20' ) end [2025-04-12 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:25:24] Production.INFO: ==1727== Releasing lock... [2025-04-12 00:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:25:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:26:05 [end_date_ymd] => 2025-04-12 00:26:05 [RateCDR] => 1 ) [2025-04-12 00:26: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-04-11 21:26:05' and `end` < '2025-04-12 00:26: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-04-12 00:26:18] Production.INFO: count ==765 [2025-04-12 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:26:05 - End Time 2025-04-12 00:26:05 [2025-04-12 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887876', 'tblTempUsageDetail_20' ) start [2025-04-12 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887876', 'tblTempUsageDetail_20' ) end [2025-04-12 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887876', 'tblTempVendorCDR_20' ) start [2025-04-12 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887876', 'tblTempVendorCDR_20' ) end [2025-04-12 00:26:18] Production.INFO: ProcessCDR(1,14887876,1,1,2) [2025-04-12 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887876', 'tblTempUsageDetail_20' ) start [2025-04-12 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887876', 'tblTempUsageDetail_20' ) end [2025-04-12 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:26:22] Production.INFO: ==1806== Releasing lock... [2025-04-12 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:27:05 [end_date_ymd] => 2025-04-12 00:27:05 [RateCDR] => 1 ) [2025-04-12 00:27: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-04-11 21:27:05' and `end` < '2025-04-12 00:27: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-04-12 00:27:18] Production.INFO: count ==765 [2025-04-12 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:27:05 - End Time 2025-04-12 00:27:05 [2025-04-12 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887881', 'tblTempUsageDetail_20' ) start [2025-04-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887881', 'tblTempUsageDetail_20' ) end [2025-04-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887881', 'tblTempVendorCDR_20' ) start [2025-04-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887881', 'tblTempVendorCDR_20' ) end [2025-04-12 00:27:18] Production.INFO: ProcessCDR(1,14887881,1,1,2) [2025-04-12 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887881', 'tblTempUsageDetail_20' ) start [2025-04-12 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887881', 'tblTempUsageDetail_20' ) end [2025-04-12 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:27:22] Production.INFO: ==1889== Releasing lock... [2025-04-12 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:28:05 [end_date_ymd] => 2025-04-12 00:28:05 [RateCDR] => 1 ) [2025-04-12 00:28: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-04-11 21:28:05' and `end` < '2025-04-12 00:28: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-04-12 00:28:18] Production.INFO: count ==765 [2025-04-12 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:28:05 - End Time 2025-04-12 00:28:05 [2025-04-12 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887886', 'tblTempUsageDetail_20' ) start [2025-04-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887886', 'tblTempUsageDetail_20' ) end [2025-04-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887886', 'tblTempVendorCDR_20' ) start [2025-04-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887886', 'tblTempVendorCDR_20' ) end [2025-04-12 00:28:18] Production.INFO: ProcessCDR(1,14887886,1,1,2) [2025-04-12 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887886', 'tblTempUsageDetail_20' ) start [2025-04-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887886', 'tblTempUsageDetail_20' ) end [2025-04-12 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:28:21] Production.INFO: ==1975== Releasing lock... [2025-04-12 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:29:05 [end_date_ymd] => 2025-04-12 00:29:05 [RateCDR] => 1 ) [2025-04-12 00:29: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-04-11 21:29:05' and `end` < '2025-04-12 00:29: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-04-12 00:29:18] Production.INFO: count ==765 [2025-04-12 00:29:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:29:05 - End Time 2025-04-12 00:29:05 [2025-04-12 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887891', 'tblTempUsageDetail_20' ) start [2025-04-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887891', 'tblTempUsageDetail_20' ) end [2025-04-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887891', 'tblTempVendorCDR_20' ) start [2025-04-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887891', 'tblTempVendorCDR_20' ) end [2025-04-12 00:29:19] Production.INFO: ProcessCDR(1,14887891,1,1,2) [2025-04-12 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887891', 'tblTempUsageDetail_20' ) start [2025-04-12 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887891', 'tblTempUsageDetail_20' ) end [2025-04-12 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:29:22] Production.INFO: ==2055== Releasing lock... [2025-04-12 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:30:05 [end_date_ymd] => 2025-04-12 00:30:05 [RateCDR] => 1 ) [2025-04-12 00:30: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-04-11 21:30:05' and `end` < '2025-04-12 00:30: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-04-12 00:30:18] Production.INFO: count ==773 [2025-04-12 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:30:05 - End Time 2025-04-12 00:30:05 [2025-04-12 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887897', 'tblTempUsageDetail_20' ) start [2025-04-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887897', 'tblTempUsageDetail_20' ) end [2025-04-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887897', 'tblTempVendorCDR_20' ) start [2025-04-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887897', 'tblTempVendorCDR_20' ) end [2025-04-12 00:30:19] Production.INFO: ProcessCDR(1,14887897,1,1,2) [2025-04-12 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887897', 'tblTempUsageDetail_20' ) start [2025-04-12 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887897', 'tblTempUsageDetail_20' ) end [2025-04-12 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:30:22] Production.INFO: ==2131== Releasing lock... [2025-04-12 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:30:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:31:05 [end_date_ymd] => 2025-04-12 00:31:05 [RateCDR] => 1 ) [2025-04-12 00:31: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-04-11 21:31:05' and `end` < '2025-04-12 00:31: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-04-12 00:31:18] Production.INFO: count ==779 [2025-04-12 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:31:05 - End Time 2025-04-12 00:31:05 [2025-04-12 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887902', 'tblTempUsageDetail_20' ) start [2025-04-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887902', 'tblTempUsageDetail_20' ) end [2025-04-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887902', 'tblTempVendorCDR_20' ) start [2025-04-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887902', 'tblTempVendorCDR_20' ) end [2025-04-12 00:31:18] Production.INFO: ProcessCDR(1,14887902,1,1,2) [2025-04-12 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887902', 'tblTempUsageDetail_20' ) start [2025-04-12 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887902', 'tblTempUsageDetail_20' ) end [2025-04-12 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:31:22] Production.INFO: ==2223== Releasing lock... [2025-04-12 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:32:05 [end_date_ymd] => 2025-04-12 00:32:05 [RateCDR] => 1 ) [2025-04-12 00:32: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-04-11 21:32:05' and `end` < '2025-04-12 00:32: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-04-12 00:32:18] Production.INFO: count ==776 [2025-04-12 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:32:05 - End Time 2025-04-12 00:32:05 [2025-04-12 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887907', 'tblTempUsageDetail_20' ) start [2025-04-12 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887907', 'tblTempUsageDetail_20' ) end [2025-04-12 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887907', 'tblTempVendorCDR_20' ) start [2025-04-12 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887907', 'tblTempVendorCDR_20' ) end [2025-04-12 00:32:18] Production.INFO: ProcessCDR(1,14887907,1,1,2) [2025-04-12 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887907', 'tblTempUsageDetail_20' ) start [2025-04-12 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887907', 'tblTempUsageDetail_20' ) end [2025-04-12 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:32:21] Production.INFO: ==2298== Releasing lock... [2025-04-12 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:33:05 [end_date_ymd] => 2025-04-12 00:33:05 [RateCDR] => 1 ) [2025-04-12 00:33: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-04-11 21:33:05' and `end` < '2025-04-12 00:33: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-04-12 00:33:18] Production.INFO: count ==776 [2025-04-12 00:33:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:33:05 - End Time 2025-04-12 00:33:05 [2025-04-12 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887912', 'tblTempUsageDetail_20' ) start [2025-04-12 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887912', 'tblTempUsageDetail_20' ) end [2025-04-12 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887912', 'tblTempVendorCDR_20' ) start [2025-04-12 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887912', 'tblTempVendorCDR_20' ) end [2025-04-12 00:33:19] Production.INFO: ProcessCDR(1,14887912,1,1,2) [2025-04-12 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887912', 'tblTempUsageDetail_20' ) start [2025-04-12 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887912', 'tblTempUsageDetail_20' ) end [2025-04-12 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:33:22] Production.INFO: ==2377== Releasing lock... [2025-04-12 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:33:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:34:05 [end_date_ymd] => 2025-04-12 00:34:05 [RateCDR] => 1 ) [2025-04-12 00:34: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-04-11 21:34:05' and `end` < '2025-04-12 00:34: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-04-12 00:34:18] Production.INFO: count ==775 [2025-04-12 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:34:05 - End Time 2025-04-12 00:34:05 [2025-04-12 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887917', 'tblTempUsageDetail_20' ) start [2025-04-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887917', 'tblTempUsageDetail_20' ) end [2025-04-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887917', 'tblTempVendorCDR_20' ) start [2025-04-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887917', 'tblTempVendorCDR_20' ) end [2025-04-12 00:34:19] Production.INFO: ProcessCDR(1,14887917,1,1,2) [2025-04-12 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887917', 'tblTempUsageDetail_20' ) start [2025-04-12 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887917', 'tblTempUsageDetail_20' ) end [2025-04-12 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:34:22] Production.INFO: ==2464== Releasing lock... [2025-04-12 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:35:05 [end_date_ymd] => 2025-04-12 00:35:05 [RateCDR] => 1 ) [2025-04-12 00:35: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-04-11 21:35:05' and `end` < '2025-04-12 00:35: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-04-12 00:35:18] Production.INFO: count ==775 [2025-04-12 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:35:05 - End Time 2025-04-12 00:35:05 [2025-04-12 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887922', 'tblTempUsageDetail_20' ) start [2025-04-12 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887922', 'tblTempUsageDetail_20' ) end [2025-04-12 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887922', 'tblTempVendorCDR_20' ) start [2025-04-12 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887922', 'tblTempVendorCDR_20' ) end [2025-04-12 00:35:19] Production.INFO: ProcessCDR(1,14887922,1,1,2) [2025-04-12 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887922', 'tblTempUsageDetail_20' ) start [2025-04-12 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887922', 'tblTempUsageDetail_20' ) end [2025-04-12 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:35:22] Production.INFO: ==2544== Releasing lock... [2025-04-12 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:36:05 [end_date_ymd] => 2025-04-12 00:36:05 [RateCDR] => 1 ) [2025-04-12 00:36: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-04-11 21:36:05' and `end` < '2025-04-12 00:36: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-04-12 00:36:18] Production.INFO: count ==775 [2025-04-12 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:36:05 - End Time 2025-04-12 00:36:05 [2025-04-12 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887927', 'tblTempUsageDetail_20' ) start [2025-04-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887927', 'tblTempUsageDetail_20' ) end [2025-04-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887927', 'tblTempVendorCDR_20' ) start [2025-04-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887927', 'tblTempVendorCDR_20' ) end [2025-04-12 00:36:18] Production.INFO: ProcessCDR(1,14887927,1,1,2) [2025-04-12 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887927', 'tblTempUsageDetail_20' ) start [2025-04-12 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887927', 'tblTempUsageDetail_20' ) end [2025-04-12 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:36:22] Production.INFO: ==2624== Releasing lock... [2025-04-12 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:37:05 [end_date_ymd] => 2025-04-12 00:37:05 [RateCDR] => 1 ) [2025-04-12 00:37: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-04-11 21:37:05' and `end` < '2025-04-12 00:37: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-04-12 00:37:18] Production.INFO: count ==777 [2025-04-12 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:37:05 - End Time 2025-04-12 00:37:05 [2025-04-12 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887932', 'tblTempUsageDetail_20' ) start [2025-04-12 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887932', 'tblTempUsageDetail_20' ) end [2025-04-12 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887932', 'tblTempVendorCDR_20' ) start [2025-04-12 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887932', 'tblTempVendorCDR_20' ) end [2025-04-12 00:37:18] Production.INFO: ProcessCDR(1,14887932,1,1,2) [2025-04-12 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887932', 'tblTempUsageDetail_20' ) start [2025-04-12 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887932', 'tblTempUsageDetail_20' ) end [2025-04-12 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:37:22] Production.INFO: ==2708== Releasing lock... [2025-04-12 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:37:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:38:06 [end_date_ymd] => 2025-04-12 00:38:06 [RateCDR] => 1 ) [2025-04-12 00:38: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-04-11 21:38:06' and `end` < '2025-04-12 00:38: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-04-12 00:38:19] Production.INFO: count ==777 [2025-04-12 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:38:06 - End Time 2025-04-12 00:38:06 [2025-04-12 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887937', 'tblTempUsageDetail_20' ) start [2025-04-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887937', 'tblTempUsageDetail_20' ) end [2025-04-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887937', 'tblTempVendorCDR_20' ) start [2025-04-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887937', 'tblTempVendorCDR_20' ) end [2025-04-12 00:38:19] Production.INFO: ProcessCDR(1,14887937,1,1,2) [2025-04-12 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887937', 'tblTempUsageDetail_20' ) start [2025-04-12 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887937', 'tblTempUsageDetail_20' ) end [2025-04-12 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:38:23] Production.INFO: ==2827== Releasing lock... [2025-04-12 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:38:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:39:06 [end_date_ymd] => 2025-04-12 00:39:06 [RateCDR] => 1 ) [2025-04-12 00:39: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-04-11 21:39:06' and `end` < '2025-04-12 00:39: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-04-12 00:39:19] Production.INFO: count ==777 [2025-04-12 00:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:39:06 - End Time 2025-04-12 00:39:06 [2025-04-12 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887942', 'tblTempUsageDetail_20' ) start [2025-04-12 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887942', 'tblTempUsageDetail_20' ) end [2025-04-12 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887942', 'tblTempVendorCDR_20' ) start [2025-04-12 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887942', 'tblTempVendorCDR_20' ) end [2025-04-12 00:39:19] Production.INFO: ProcessCDR(1,14887942,1,1,2) [2025-04-12 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887942', 'tblTempUsageDetail_20' ) start [2025-04-12 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887942', 'tblTempUsageDetail_20' ) end [2025-04-12 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:39:22] Production.INFO: ==2908== Releasing lock... [2025-04-12 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:40:07 [end_date_ymd] => 2025-04-12 00:40:07 [RateCDR] => 1 ) [2025-04-12 00:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 21:40:07' and `end` < '2025-04-12 00:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 00:40:20] Production.INFO: count ==793 [2025-04-12 00:40:20] Production.ERROR: pbx CDR StartTime 2025-04-11 21:40:07 - End Time 2025-04-12 00:40:07 [2025-04-12 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887948', 'tblTempUsageDetail_20' ) start [2025-04-12 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887948', 'tblTempUsageDetail_20' ) end [2025-04-12 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887948', 'tblTempVendorCDR_20' ) start [2025-04-12 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887948', 'tblTempVendorCDR_20' ) end [2025-04-12 00:40:20] Production.INFO: ProcessCDR(1,14887948,1,1,2) [2025-04-12 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887948', 'tblTempUsageDetail_20' ) start [2025-04-12 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887948', 'tblTempUsageDetail_20' ) end [2025-04-12 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:40:25] Production.INFO: ==2991== Releasing lock... [2025-04-12 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:40:25] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:41:04 [end_date_ymd] => 2025-04-12 00:41:04 [RateCDR] => 1 ) [2025-04-12 00:41: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-04-11 21:41:04' and `end` < '2025-04-12 00:41: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-04-12 00:41:17] Production.INFO: count ==807 [2025-04-12 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:41:04 - End Time 2025-04-12 00:41:04 [2025-04-12 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887953', 'tblTempUsageDetail_20' ) start [2025-04-12 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887953', 'tblTempUsageDetail_20' ) end [2025-04-12 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887953', 'tblTempVendorCDR_20' ) start [2025-04-12 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887953', 'tblTempVendorCDR_20' ) end [2025-04-12 00:41:18] Production.INFO: ProcessCDR(1,14887953,1,1,2) [2025-04-12 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887953', 'tblTempUsageDetail_20' ) start [2025-04-12 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887953', 'tblTempUsageDetail_20' ) end [2025-04-12 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:41:21] Production.INFO: ==3074== Releasing lock... [2025-04-12 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:42:05 [end_date_ymd] => 2025-04-12 00:42:05 [RateCDR] => 1 ) [2025-04-12 00:42: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-04-11 21:42:05' and `end` < '2025-04-12 00:42: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-04-12 00:42:18] Production.INFO: count ==807 [2025-04-12 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:42:05 - End Time 2025-04-12 00:42:05 [2025-04-12 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887958', 'tblTempUsageDetail_20' ) start [2025-04-12 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887958', 'tblTempUsageDetail_20' ) end [2025-04-12 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887958', 'tblTempVendorCDR_20' ) start [2025-04-12 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887958', 'tblTempVendorCDR_20' ) end [2025-04-12 00:42:19] Production.INFO: ProcessCDR(1,14887958,1,1,2) [2025-04-12 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887958', 'tblTempUsageDetail_20' ) start [2025-04-12 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887958', 'tblTempUsageDetail_20' ) end [2025-04-12 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:42:22] Production.INFO: ==3160== Releasing lock... [2025-04-12 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:42:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:43:05 [end_date_ymd] => 2025-04-12 00:43:05 [RateCDR] => 1 ) [2025-04-12 00:43: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-04-11 21:43:05' and `end` < '2025-04-12 00:43: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-04-12 00:43:18] Production.INFO: count ==807 [2025-04-12 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:43:05 - End Time 2025-04-12 00:43:05 [2025-04-12 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887963', 'tblTempUsageDetail_20' ) start [2025-04-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887963', 'tblTempUsageDetail_20' ) end [2025-04-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887963', 'tblTempVendorCDR_20' ) start [2025-04-12 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887963', 'tblTempVendorCDR_20' ) end [2025-04-12 00:43:18] Production.INFO: ProcessCDR(1,14887963,1,1,2) [2025-04-12 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887963', 'tblTempUsageDetail_20' ) start [2025-04-12 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887963', 'tblTempUsageDetail_20' ) end [2025-04-12 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:43:22] Production.INFO: ==3241== Releasing lock... [2025-04-12 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:43:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:44:05 [end_date_ymd] => 2025-04-12 00:44:05 [RateCDR] => 1 ) [2025-04-12 00:44: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-04-11 21:44:05' and `end` < '2025-04-12 00:44: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-04-12 00:44:18] Production.INFO: count ==805 [2025-04-12 00:44:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:44:05 - End Time 2025-04-12 00:44:05 [2025-04-12 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887968', 'tblTempUsageDetail_20' ) start [2025-04-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887968', 'tblTempUsageDetail_20' ) end [2025-04-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887968', 'tblTempVendorCDR_20' ) start [2025-04-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887968', 'tblTempVendorCDR_20' ) end [2025-04-12 00:44:19] Production.INFO: ProcessCDR(1,14887968,1,1,2) [2025-04-12 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887968', 'tblTempUsageDetail_20' ) start [2025-04-12 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887968', 'tblTempUsageDetail_20' ) end [2025-04-12 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:44:22] Production.INFO: ==3317== Releasing lock... [2025-04-12 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:45:04 [end_date_ymd] => 2025-04-12 00:45:04 [RateCDR] => 1 ) [2025-04-12 00:45: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-04-11 21:45:04' and `end` < '2025-04-12 00:45: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-04-12 00:45:17] Production.INFO: count ==803 [2025-04-12 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:45:04 - End Time 2025-04-12 00:45:04 [2025-04-12 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887973', 'tblTempUsageDetail_20' ) start [2025-04-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887973', 'tblTempUsageDetail_20' ) end [2025-04-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887973', 'tblTempVendorCDR_20' ) start [2025-04-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887973', 'tblTempVendorCDR_20' ) end [2025-04-12 00:45:18] Production.INFO: ProcessCDR(1,14887973,1,1,2) [2025-04-12 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887973', 'tblTempUsageDetail_20' ) start [2025-04-12 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887973', 'tblTempUsageDetail_20' ) end [2025-04-12 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:45:22] Production.INFO: ==3389== Releasing lock... [2025-04-12 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:45:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:46:05 [end_date_ymd] => 2025-04-12 00:46:05 [RateCDR] => 1 ) [2025-04-12 00:46: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-04-11 21:46:05' and `end` < '2025-04-12 00:46: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-04-12 00:46:18] Production.INFO: count ==799 [2025-04-12 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:46:05 - End Time 2025-04-12 00:46:05 [2025-04-12 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887978', 'tblTempUsageDetail_20' ) start [2025-04-12 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887978', 'tblTempUsageDetail_20' ) end [2025-04-12 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887978', 'tblTempVendorCDR_20' ) start [2025-04-12 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887978', 'tblTempVendorCDR_20' ) end [2025-04-12 00:46:19] Production.INFO: ProcessCDR(1,14887978,1,1,2) [2025-04-12 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887978', 'tblTempUsageDetail_20' ) start [2025-04-12 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887978', 'tblTempUsageDetail_20' ) end [2025-04-12 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:46:22] Production.INFO: ==3466== Releasing lock... [2025-04-12 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:46:22] Production.INFO: 35 MB #Memory Used# [2025-04-12 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:47:04 [end_date_ymd] => 2025-04-12 00:47:04 [RateCDR] => 1 ) [2025-04-12 00:47: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-04-11 21:47:04' and `end` < '2025-04-12 00:47: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-04-12 00:47:17] Production.INFO: count ==797 [2025-04-12 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:47:04 - End Time 2025-04-12 00:47:04 [2025-04-12 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887983', 'tblTempUsageDetail_20' ) start [2025-04-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887983', 'tblTempUsageDetail_20' ) end [2025-04-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887983', 'tblTempVendorCDR_20' ) start [2025-04-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887983', 'tblTempVendorCDR_20' ) end [2025-04-12 00:47:18] Production.INFO: ProcessCDR(1,14887983,1,1,2) [2025-04-12 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887983', 'tblTempUsageDetail_20' ) start [2025-04-12 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887983', 'tblTempUsageDetail_20' ) end [2025-04-12 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:47:21] Production.INFO: ==3539== Releasing lock... [2025-04-12 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:48:06 [end_date_ymd] => 2025-04-12 00:48:06 [RateCDR] => 1 ) [2025-04-12 00:48: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-04-11 21:48:06' and `end` < '2025-04-12 00:48: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-04-12 00:48:19] Production.INFO: count ==797 [2025-04-12 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:48:06 - End Time 2025-04-12 00:48:06 [2025-04-12 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887988', 'tblTempUsageDetail_20' ) start [2025-04-12 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887988', 'tblTempUsageDetail_20' ) end [2025-04-12 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887988', 'tblTempVendorCDR_20' ) start [2025-04-12 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887988', 'tblTempVendorCDR_20' ) end [2025-04-12 00:48:19] Production.INFO: ProcessCDR(1,14887988,1,1,2) [2025-04-12 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887988', 'tblTempUsageDetail_20' ) start [2025-04-12 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887988', 'tblTempUsageDetail_20' ) end [2025-04-12 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:48:23] Production.INFO: ==3623== Releasing lock... [2025-04-12 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:49:05 [end_date_ymd] => 2025-04-12 00:49:05 [RateCDR] => 1 ) [2025-04-12 00:49: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-04-11 21:49:05' and `end` < '2025-04-12 00:49: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-04-12 00:49:17] Production.INFO: count ==796 [2025-04-12 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:49:05 - End Time 2025-04-12 00:49:05 [2025-04-12 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887993', 'tblTempUsageDetail_20' ) start [2025-04-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887993', 'tblTempUsageDetail_20' ) end [2025-04-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887993', 'tblTempVendorCDR_20' ) start [2025-04-12 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887993', 'tblTempVendorCDR_20' ) end [2025-04-12 00:49:18] Production.INFO: ProcessCDR(1,14887993,1,1,2) [2025-04-12 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887993', 'tblTempUsageDetail_20' ) start [2025-04-12 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887993', 'tblTempUsageDetail_20' ) end [2025-04-12 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:49:21] Production.INFO: ==3698== Releasing lock... [2025-04-12 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:49:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:50:06 [end_date_ymd] => 2025-04-12 00:50:06 [RateCDR] => 1 ) [2025-04-12 00:50: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-04-11 21:50:06' and `end` < '2025-04-12 00:50: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-04-12 00:50:19] Production.INFO: count ==803 [2025-04-12 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:50:06 - End Time 2025-04-12 00:50:06 [2025-04-12 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887999', 'tblTempUsageDetail_20' ) start [2025-04-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14887999', 'tblTempUsageDetail_20' ) end [2025-04-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887999', 'tblTempVendorCDR_20' ) start [2025-04-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14887999', 'tblTempVendorCDR_20' ) end [2025-04-12 00:50:19] Production.INFO: ProcessCDR(1,14887999,1,1,2) [2025-04-12 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14887999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14887999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14887999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14887999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887999', 'tblTempUsageDetail_20' ) start [2025-04-12 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14887999', 'tblTempUsageDetail_20' ) end [2025-04-12 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:50:23] Production.INFO: ==3775== Releasing lock... [2025-04-12 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:50:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:51:05 [end_date_ymd] => 2025-04-12 00:51:05 [RateCDR] => 1 ) [2025-04-12 00:51: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-04-11 21:51:05' and `end` < '2025-04-12 00:51: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-04-12 00:51:18] Production.INFO: count ==821 [2025-04-12 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:51:05 - End Time 2025-04-12 00:51:05 [2025-04-12 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888004', 'tblTempUsageDetail_20' ) start [2025-04-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888004', 'tblTempUsageDetail_20' ) end [2025-04-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888004', 'tblTempVendorCDR_20' ) start [2025-04-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888004', 'tblTempVendorCDR_20' ) end [2025-04-12 00:51:18] Production.INFO: ProcessCDR(1,14888004,1,1,2) [2025-04-12 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888004', 'tblTempUsageDetail_20' ) start [2025-04-12 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888004', 'tblTempUsageDetail_20' ) end [2025-04-12 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:51:22] Production.INFO: ==3854== Releasing lock... [2025-04-12 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:52:06 [end_date_ymd] => 2025-04-12 00:52:06 [RateCDR] => 1 ) [2025-04-12 00:52: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-04-11 21:52:06' and `end` < '2025-04-12 00:52: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-04-12 00:52:19] Production.INFO: count ==821 [2025-04-12 00:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:52:06 - End Time 2025-04-12 00:52:06 [2025-04-12 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888009', 'tblTempUsageDetail_20' ) start [2025-04-12 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888009', 'tblTempUsageDetail_20' ) end [2025-04-12 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888009', 'tblTempVendorCDR_20' ) start [2025-04-12 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888009', 'tblTempVendorCDR_20' ) end [2025-04-12 00:52:19] Production.INFO: ProcessCDR(1,14888009,1,1,2) [2025-04-12 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888009', 'tblTempUsageDetail_20' ) start [2025-04-12 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888009', 'tblTempUsageDetail_20' ) end [2025-04-12 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:52:23] Production.INFO: ==3926== Releasing lock... [2025-04-12 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:52:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:53:05 [end_date_ymd] => 2025-04-12 00:53:05 [RateCDR] => 1 ) [2025-04-12 00:53: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-04-11 21:53:05' and `end` < '2025-04-12 00:53: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-04-12 00:53:18] Production.INFO: count ==819 [2025-04-12 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:53:05 - End Time 2025-04-12 00:53:05 [2025-04-12 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888014', 'tblTempUsageDetail_20' ) start [2025-04-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888014', 'tblTempUsageDetail_20' ) end [2025-04-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888014', 'tblTempVendorCDR_20' ) start [2025-04-12 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888014', 'tblTempVendorCDR_20' ) end [2025-04-12 00:53:18] Production.INFO: ProcessCDR(1,14888014,1,1,2) [2025-04-12 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888014', 'tblTempUsageDetail_20' ) start [2025-04-12 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888014', 'tblTempUsageDetail_20' ) end [2025-04-12 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:53:23] Production.INFO: ==4042== Releasing lock... [2025-04-12 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:54:05 [end_date_ymd] => 2025-04-12 00:54:05 [RateCDR] => 1 ) [2025-04-12 00:54: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-04-11 21:54:05' and `end` < '2025-04-12 00:54: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-04-12 00:54:18] Production.INFO: count ==820 [2025-04-12 00:54:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:54:05 - End Time 2025-04-12 00:54:05 [2025-04-12 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888019', 'tblTempUsageDetail_20' ) start [2025-04-12 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888019', 'tblTempUsageDetail_20' ) end [2025-04-12 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888019', 'tblTempVendorCDR_20' ) start [2025-04-12 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888019', 'tblTempVendorCDR_20' ) end [2025-04-12 00:54:19] Production.INFO: ProcessCDR(1,14888019,1,1,2) [2025-04-12 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888019', 'tblTempUsageDetail_20' ) start [2025-04-12 00:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888019', 'tblTempUsageDetail_20' ) end [2025-04-12 00:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:54:24] Production.INFO: ==4122== Releasing lock... [2025-04-12 00:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:54:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:55:05 [end_date_ymd] => 2025-04-12 00:55:05 [RateCDR] => 1 ) [2025-04-12 00:55: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-04-11 21:55:05' and `end` < '2025-04-12 00:55: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-04-12 00:55:18] Production.INFO: count ==819 [2025-04-12 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:55:05 - End Time 2025-04-12 00:55:05 [2025-04-12 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888024', 'tblTempUsageDetail_20' ) start [2025-04-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888024', 'tblTempUsageDetail_20' ) end [2025-04-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888024', 'tblTempVendorCDR_20' ) start [2025-04-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888024', 'tblTempVendorCDR_20' ) end [2025-04-12 00:55:18] Production.INFO: ProcessCDR(1,14888024,1,1,2) [2025-04-12 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888024', 'tblTempUsageDetail_20' ) start [2025-04-12 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888024', 'tblTempUsageDetail_20' ) end [2025-04-12 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:55:22] Production.INFO: ==4197== Releasing lock... [2025-04-12 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:56:05 [end_date_ymd] => 2025-04-12 00:56:05 [RateCDR] => 1 ) [2025-04-12 00:56: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-04-11 21:56:05' and `end` < '2025-04-12 00:56: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-04-12 00:56:18] Production.INFO: count ==817 [2025-04-12 00:56:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:56:05 - End Time 2025-04-12 00:56:05 [2025-04-12 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888029', 'tblTempUsageDetail_20' ) start [2025-04-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888029', 'tblTempUsageDetail_20' ) end [2025-04-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888029', 'tblTempVendorCDR_20' ) start [2025-04-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888029', 'tblTempVendorCDR_20' ) end [2025-04-12 00:56:19] Production.INFO: ProcessCDR(1,14888029,1,1,2) [2025-04-12 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888029', 'tblTempUsageDetail_20' ) start [2025-04-12 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888029', 'tblTempUsageDetail_20' ) end [2025-04-12 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:56:22] Production.INFO: ==4276== Releasing lock... [2025-04-12 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:57:06 [end_date_ymd] => 2025-04-12 00:57:06 [RateCDR] => 1 ) [2025-04-12 00:57: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-04-11 21:57:06' and `end` < '2025-04-12 00:57: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-04-12 00:57:18] Production.INFO: count ==817 [2025-04-12 00:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:57:06 - End Time 2025-04-12 00:57:06 [2025-04-12 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888034', 'tblTempUsageDetail_20' ) start [2025-04-12 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888034', 'tblTempUsageDetail_20' ) end [2025-04-12 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888034', 'tblTempVendorCDR_20' ) start [2025-04-12 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888034', 'tblTempVendorCDR_20' ) end [2025-04-12 00:57:19] Production.INFO: ProcessCDR(1,14888034,1,1,2) [2025-04-12 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888034', 'tblTempUsageDetail_20' ) start [2025-04-12 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888034', 'tblTempUsageDetail_20' ) end [2025-04-12 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:57:22] Production.INFO: ==4350== Releasing lock... [2025-04-12 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:57:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:58:05 [end_date_ymd] => 2025-04-12 00:58:05 [RateCDR] => 1 ) [2025-04-12 00:58: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-04-11 21:58:05' and `end` < '2025-04-12 00:58: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-04-12 00:58:17] Production.INFO: count ==815 [2025-04-12 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 21:58:05 - End Time 2025-04-12 00:58:05 [2025-04-12 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888039', 'tblTempUsageDetail_20' ) start [2025-04-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888039', 'tblTempUsageDetail_20' ) end [2025-04-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888039', 'tblTempVendorCDR_20' ) start [2025-04-12 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888039', 'tblTempVendorCDR_20' ) end [2025-04-12 00:58:18] Production.INFO: ProcessCDR(1,14888039,1,1,2) [2025-04-12 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888039', 'tblTempUsageDetail_20' ) start [2025-04-12 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888039', 'tblTempUsageDetail_20' ) end [2025-04-12 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:58:21] Production.INFO: ==4422== Releasing lock... [2025-04-12 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:58:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 21:59:05 [end_date_ymd] => 2025-04-12 00:59:05 [RateCDR] => 1 ) [2025-04-12 00:59: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-04-11 21:59:05' and `end` < '2025-04-12 00:59: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-04-12 00:59:18] Production.INFO: count ==814 [2025-04-12 00:59:19] Production.ERROR: pbx CDR StartTime 2025-04-11 21:59:05 - End Time 2025-04-12 00:59:05 [2025-04-12 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888044', 'tblTempUsageDetail_20' ) start [2025-04-12 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888044', 'tblTempUsageDetail_20' ) end [2025-04-12 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888044', 'tblTempVendorCDR_20' ) start [2025-04-12 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888044', 'tblTempVendorCDR_20' ) end [2025-04-12 00:59:19] Production.INFO: ProcessCDR(1,14888044,1,1,2) [2025-04-12 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888044', 'tblTempUsageDetail_20' ) start [2025-04-12 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888044', 'tblTempUsageDetail_20' ) end [2025-04-12 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 00:59:22] Production.INFO: ==4497== Releasing lock... [2025-04-12 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 00:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:00:06 [end_date_ymd] => 2025-04-12 01:00:06 [RateCDR] => 1 ) [2025-04-12 01:00: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-04-11 22:00:06' and `end` < '2025-04-12 01:00: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-04-12 01:00:18] Production.INFO: count ==821 [2025-04-12 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:00:06 - End Time 2025-04-12 01:00:06 [2025-04-12 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888050', 'tblTempUsageDetail_20' ) start [2025-04-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888050', 'tblTempUsageDetail_20' ) end [2025-04-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888050', 'tblTempVendorCDR_20' ) start [2025-04-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888050', 'tblTempVendorCDR_20' ) end [2025-04-12 01:00:19] Production.INFO: ProcessCDR(1,14888050,1,1,2) [2025-04-12 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888050', 'tblTempUsageDetail_20' ) start [2025-04-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888050', 'tblTempUsageDetail_20' ) end [2025-04-12 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:00:22] Production.INFO: ==4582== Releasing lock... [2025-04-12 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:00:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:01:06 [end_date_ymd] => 2025-04-12 01:01:06 [RateCDR] => 1 ) [2025-04-12 01:01: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-04-11 22:01:06' and `end` < '2025-04-12 01:01: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-04-12 01:01:18] Production.INFO: count ==833 [2025-04-12 01:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:01:06 - End Time 2025-04-12 01:01:06 [2025-04-12 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888055', 'tblTempUsageDetail_20' ) start [2025-04-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888055', 'tblTempUsageDetail_20' ) end [2025-04-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888055', 'tblTempVendorCDR_20' ) start [2025-04-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888055', 'tblTempVendorCDR_20' ) end [2025-04-12 01:01:19] Production.INFO: ProcessCDR(1,14888055,1,1,2) [2025-04-12 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888055', 'tblTempUsageDetail_20' ) start [2025-04-12 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888055', 'tblTempUsageDetail_20' ) end [2025-04-12 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:01:22] Production.INFO: ==4678== Releasing lock... [2025-04-12 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:01:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:02:05 [end_date_ymd] => 2025-04-12 01:02:05 [RateCDR] => 1 ) [2025-04-12 01:02: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-04-11 22:02:05' and `end` < '2025-04-12 01:02: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-04-12 01:02:17] Production.INFO: count ==832 [2025-04-12 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:02:05 - End Time 2025-04-12 01:02:05 [2025-04-12 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888060', 'tblTempUsageDetail_20' ) start [2025-04-12 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888060', 'tblTempUsageDetail_20' ) end [2025-04-12 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888060', 'tblTempVendorCDR_20' ) start [2025-04-12 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888060', 'tblTempVendorCDR_20' ) end [2025-04-12 01:02:18] Production.INFO: ProcessCDR(1,14888060,1,1,2) [2025-04-12 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888060', 'tblTempUsageDetail_20' ) start [2025-04-12 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888060', 'tblTempUsageDetail_20' ) end [2025-04-12 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:02:21] Production.INFO: ==4754== Releasing lock... [2025-04-12 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:03:05 [end_date_ymd] => 2025-04-12 01:03:05 [RateCDR] => 1 ) [2025-04-12 01:03: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-04-11 22:03:05' and `end` < '2025-04-12 01:03: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-04-12 01:03:18] Production.INFO: count ==830 [2025-04-12 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:03:05 - End Time 2025-04-12 01:03:05 [2025-04-12 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888065', 'tblTempUsageDetail_20' ) start [2025-04-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888065', 'tblTempUsageDetail_20' ) end [2025-04-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888065', 'tblTempVendorCDR_20' ) start [2025-04-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888065', 'tblTempVendorCDR_20' ) end [2025-04-12 01:03:18] Production.INFO: ProcessCDR(1,14888065,1,1,2) [2025-04-12 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888065', 'tblTempUsageDetail_20' ) start [2025-04-12 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888065', 'tblTempUsageDetail_20' ) end [2025-04-12 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:03:22] Production.INFO: ==4831== Releasing lock... [2025-04-12 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:04:05 [end_date_ymd] => 2025-04-12 01:04:05 [RateCDR] => 1 ) [2025-04-12 01:04: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-04-11 22:04:05' and `end` < '2025-04-12 01:04: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-04-12 01:04:18] Production.INFO: count ==830 [2025-04-12 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:04:05 - End Time 2025-04-12 01:04:05 [2025-04-12 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888070', 'tblTempUsageDetail_20' ) start [2025-04-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888070', 'tblTempUsageDetail_20' ) end [2025-04-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888070', 'tblTempVendorCDR_20' ) start [2025-04-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888070', 'tblTempVendorCDR_20' ) end [2025-04-12 01:04:18] Production.INFO: ProcessCDR(1,14888070,1,1,2) [2025-04-12 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888070', 'tblTempUsageDetail_20' ) start [2025-04-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888070', 'tblTempUsageDetail_20' ) end [2025-04-12 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:04:21] Production.INFO: ==4909== Releasing lock... [2025-04-12 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:04:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:05:05 [end_date_ymd] => 2025-04-12 01:05:05 [RateCDR] => 1 ) [2025-04-12 01:05: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-04-11 22:05:05' and `end` < '2025-04-12 01:05: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-04-12 01:05:18] Production.INFO: count ==830 [2025-04-12 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:05:05 - End Time 2025-04-12 01:05:05 [2025-04-12 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888075', 'tblTempUsageDetail_20' ) start [2025-04-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888075', 'tblTempUsageDetail_20' ) end [2025-04-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888075', 'tblTempVendorCDR_20' ) start [2025-04-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888075', 'tblTempVendorCDR_20' ) end [2025-04-12 01:05:18] Production.INFO: ProcessCDR(1,14888075,1,1,2) [2025-04-12 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888075', 'tblTempUsageDetail_20' ) start [2025-04-12 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888075', 'tblTempUsageDetail_20' ) end [2025-04-12 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:05:22] Production.INFO: ==4982== Releasing lock... [2025-04-12 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:06:05 [end_date_ymd] => 2025-04-12 01:06:05 [RateCDR] => 1 ) [2025-04-12 01:06: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-04-11 22:06:05' and `end` < '2025-04-12 01:06: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-04-12 01:06:18] Production.INFO: count ==830 [2025-04-12 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:06:05 - End Time 2025-04-12 01:06:05 [2025-04-12 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888080', 'tblTempUsageDetail_20' ) start [2025-04-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888080', 'tblTempUsageDetail_20' ) end [2025-04-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888080', 'tblTempVendorCDR_20' ) start [2025-04-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888080', 'tblTempVendorCDR_20' ) end [2025-04-12 01:06:18] Production.INFO: ProcessCDR(1,14888080,1,1,2) [2025-04-12 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888080', 'tblTempUsageDetail_20' ) start [2025-04-12 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888080', 'tblTempUsageDetail_20' ) end [2025-04-12 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:06:22] Production.INFO: ==5055== Releasing lock... [2025-04-12 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:06:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:07:05 [end_date_ymd] => 2025-04-12 01:07:05 [RateCDR] => 1 ) [2025-04-12 01:07: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-04-11 22:07:05' and `end` < '2025-04-12 01:07: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-04-12 01:07:18] Production.INFO: count ==830 [2025-04-12 01:07:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:07:05 - End Time 2025-04-12 01:07:05 [2025-04-12 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888085', 'tblTempUsageDetail_20' ) start [2025-04-12 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888085', 'tblTempUsageDetail_20' ) end [2025-04-12 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888085', 'tblTempVendorCDR_20' ) start [2025-04-12 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888085', 'tblTempVendorCDR_20' ) end [2025-04-12 01:07:19] Production.INFO: ProcessCDR(1,14888085,1,1,2) [2025-04-12 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888085', 'tblTempUsageDetail_20' ) start [2025-04-12 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888085', 'tblTempUsageDetail_20' ) end [2025-04-12 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:07:22] Production.INFO: ==5129== Releasing lock... [2025-04-12 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:08:05 [end_date_ymd] => 2025-04-12 01:08:05 [RateCDR] => 1 ) [2025-04-12 01:08: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-04-11 22:08:05' and `end` < '2025-04-12 01:08: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-04-12 01:08:18] Production.INFO: count ==831 [2025-04-12 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:08:05 - End Time 2025-04-12 01:08:05 [2025-04-12 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888090', 'tblTempUsageDetail_20' ) start [2025-04-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888090', 'tblTempUsageDetail_20' ) end [2025-04-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888090', 'tblTempVendorCDR_20' ) start [2025-04-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888090', 'tblTempVendorCDR_20' ) end [2025-04-12 01:08:18] Production.INFO: ProcessCDR(1,14888090,1,1,2) [2025-04-12 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888090', 'tblTempUsageDetail_20' ) start [2025-04-12 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888090', 'tblTempUsageDetail_20' ) end [2025-04-12 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:08:24] Production.INFO: ==5203== Releasing lock... [2025-04-12 01:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:08:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:09:06 [end_date_ymd] => 2025-04-12 01:09:06 [RateCDR] => 1 ) [2025-04-12 01:09: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-04-11 22:09:06' and `end` < '2025-04-12 01:09: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-04-12 01:09:19] Production.INFO: count ==830 [2025-04-12 01:09:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:09:06 - End Time 2025-04-12 01:09:06 [2025-04-12 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888095', 'tblTempUsageDetail_20' ) start [2025-04-12 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888095', 'tblTempUsageDetail_20' ) end [2025-04-12 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888095', 'tblTempVendorCDR_20' ) start [2025-04-12 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888095', 'tblTempVendorCDR_20' ) end [2025-04-12 01:09:19] Production.INFO: ProcessCDR(1,14888095,1,1,2) [2025-04-12 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888095', 'tblTempUsageDetail_20' ) start [2025-04-12 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888095', 'tblTempUsageDetail_20' ) end [2025-04-12 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:09:23] Production.INFO: ==5319== Releasing lock... [2025-04-12 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:10:05 [end_date_ymd] => 2025-04-12 01:10:05 [RateCDR] => 1 ) [2025-04-12 01:10: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-04-11 22:10:05' and `end` < '2025-04-12 01:10: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-04-12 01:10:18] Production.INFO: count ==837 [2025-04-12 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:10:05 - End Time 2025-04-12 01:10:05 [2025-04-12 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888100', 'tblTempUsageDetail_20' ) start [2025-04-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888100', 'tblTempUsageDetail_20' ) end [2025-04-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888100', 'tblTempVendorCDR_20' ) start [2025-04-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888100', 'tblTempVendorCDR_20' ) end [2025-04-12 01:10:19] Production.INFO: ProcessCDR(1,14888100,1,1,2) [2025-04-12 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888100', 'tblTempUsageDetail_20' ) start [2025-04-12 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888100', 'tblTempUsageDetail_20' ) end [2025-04-12 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:10:23] Production.INFO: ==5392== Releasing lock... [2025-04-12 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:10:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:11:05 [end_date_ymd] => 2025-04-12 01:11:05 [RateCDR] => 1 ) [2025-04-12 01:11: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-04-11 22:11:05' and `end` < '2025-04-12 01:11: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-04-12 01:11:18] Production.INFO: count ==850 [2025-04-12 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:11:05 - End Time 2025-04-12 01:11:05 [2025-04-12 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888106', 'tblTempUsageDetail_20' ) start [2025-04-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888106', 'tblTempUsageDetail_20' ) end [2025-04-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888106', 'tblTempVendorCDR_20' ) start [2025-04-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888106', 'tblTempVendorCDR_20' ) end [2025-04-12 01:11:19] Production.INFO: ProcessCDR(1,14888106,1,1,2) [2025-04-12 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888106', 'tblTempUsageDetail_20' ) start [2025-04-12 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888106', 'tblTempUsageDetail_20' ) end [2025-04-12 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:11:22] Production.INFO: ==5467== Releasing lock... [2025-04-12 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:11:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:12:05 [end_date_ymd] => 2025-04-12 01:12:05 [RateCDR] => 1 ) [2025-04-12 01:12: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-04-11 22:12:05' and `end` < '2025-04-12 01:12: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-04-12 01:12:17] Production.INFO: count ==850 [2025-04-12 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:12:05 - End Time 2025-04-12 01:12:05 [2025-04-12 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888111', 'tblTempUsageDetail_20' ) start [2025-04-12 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888111', 'tblTempUsageDetail_20' ) end [2025-04-12 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888111', 'tblTempVendorCDR_20' ) start [2025-04-12 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888111', 'tblTempVendorCDR_20' ) end [2025-04-12 01:12:18] Production.INFO: ProcessCDR(1,14888111,1,1,2) [2025-04-12 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888111', 'tblTempUsageDetail_20' ) start [2025-04-12 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888111', 'tblTempUsageDetail_20' ) end [2025-04-12 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:12:22] Production.INFO: ==5536== Releasing lock... [2025-04-12 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:12:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:13:05 [end_date_ymd] => 2025-04-12 01:13:05 [RateCDR] => 1 ) [2025-04-12 01:13: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-04-11 22:13:05' and `end` < '2025-04-12 01:13: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-04-12 01:13:18] Production.INFO: count ==849 [2025-04-12 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:13:05 - End Time 2025-04-12 01:13:05 [2025-04-12 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888116', 'tblTempUsageDetail_20' ) start [2025-04-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888116', 'tblTempUsageDetail_20' ) end [2025-04-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888116', 'tblTempVendorCDR_20' ) start [2025-04-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888116', 'tblTempVendorCDR_20' ) end [2025-04-12 01:13:18] Production.INFO: ProcessCDR(1,14888116,1,1,2) [2025-04-12 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888116', 'tblTempUsageDetail_20' ) start [2025-04-12 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888116', 'tblTempUsageDetail_20' ) end [2025-04-12 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:13:22] Production.INFO: ==5608== Releasing lock... [2025-04-12 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:14:05 [end_date_ymd] => 2025-04-12 01:14:05 [RateCDR] => 1 ) [2025-04-12 01:14: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-04-11 22:14:05' and `end` < '2025-04-12 01:14: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-04-12 01:14:18] Production.INFO: count ==847 [2025-04-12 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:14:05 - End Time 2025-04-12 01:14:05 [2025-04-12 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888121', 'tblTempUsageDetail_20' ) start [2025-04-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888121', 'tblTempUsageDetail_20' ) end [2025-04-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888121', 'tblTempVendorCDR_20' ) start [2025-04-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888121', 'tblTempVendorCDR_20' ) end [2025-04-12 01:14:18] Production.INFO: ProcessCDR(1,14888121,1,1,2) [2025-04-12 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888121', 'tblTempUsageDetail_20' ) start [2025-04-12 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888121', 'tblTempUsageDetail_20' ) end [2025-04-12 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:14:21] Production.INFO: ==5678== Releasing lock... [2025-04-12 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:15:05 [end_date_ymd] => 2025-04-12 01:15:05 [RateCDR] => 1 ) [2025-04-12 01:15: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-04-11 22:15:05' and `end` < '2025-04-12 01:15: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-04-12 01:15:18] Production.INFO: count ==845 [2025-04-12 01:15:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:15:05 - End Time 2025-04-12 01:15:05 [2025-04-12 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888126', 'tblTempUsageDetail_20' ) start [2025-04-12 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888126', 'tblTempUsageDetail_20' ) end [2025-04-12 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888126', 'tblTempVendorCDR_20' ) start [2025-04-12 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888126', 'tblTempVendorCDR_20' ) end [2025-04-12 01:15:19] Production.INFO: ProcessCDR(1,14888126,1,1,2) [2025-04-12 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888126', 'tblTempUsageDetail_20' ) start [2025-04-12 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888126', 'tblTempUsageDetail_20' ) end [2025-04-12 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:15:22] Production.INFO: ==5758== Releasing lock... [2025-04-12 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:15:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:16:04 [end_date_ymd] => 2025-04-12 01:16:04 [RateCDR] => 1 ) [2025-04-12 01:16: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-04-11 22:16:04' and `end` < '2025-04-12 01:16: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-04-12 01:16:17] Production.INFO: count ==843 [2025-04-12 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:16:04 - End Time 2025-04-12 01:16:04 [2025-04-12 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888131', 'tblTempUsageDetail_20' ) start [2025-04-12 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888131', 'tblTempUsageDetail_20' ) end [2025-04-12 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888131', 'tblTempVendorCDR_20' ) start [2025-04-12 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888131', 'tblTempVendorCDR_20' ) end [2025-04-12 01:16:18] Production.INFO: ProcessCDR(1,14888131,1,1,2) [2025-04-12 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888131', 'tblTempUsageDetail_20' ) start [2025-04-12 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888131', 'tblTempUsageDetail_20' ) end [2025-04-12 01:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:16:23] Production.INFO: ==5828== Releasing lock... [2025-04-12 01:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:16:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:17:05 [end_date_ymd] => 2025-04-12 01:17:05 [RateCDR] => 1 ) [2025-04-12 01:17: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-04-11 22:17:05' and `end` < '2025-04-12 01:17: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-04-12 01:17:18] Production.INFO: count ==844 [2025-04-12 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:17:05 - End Time 2025-04-12 01:17:05 [2025-04-12 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888136', 'tblTempUsageDetail_20' ) start [2025-04-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888136', 'tblTempUsageDetail_20' ) end [2025-04-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888136', 'tblTempVendorCDR_20' ) start [2025-04-12 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888136', 'tblTempVendorCDR_20' ) end [2025-04-12 01:17:18] Production.INFO: ProcessCDR(1,14888136,1,1,2) [2025-04-12 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888136', 'tblTempUsageDetail_20' ) start [2025-04-12 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888136', 'tblTempUsageDetail_20' ) end [2025-04-12 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:17:23] Production.INFO: ==5901== Releasing lock... [2025-04-12 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:17:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:18:05 [end_date_ymd] => 2025-04-12 01:18:05 [RateCDR] => 1 ) [2025-04-12 01:18: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-04-11 22:18:05' and `end` < '2025-04-12 01:18: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-04-12 01:18:18] Production.INFO: count ==845 [2025-04-12 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:18:05 - End Time 2025-04-12 01:18:05 [2025-04-12 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888141', 'tblTempUsageDetail_20' ) start [2025-04-12 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888141', 'tblTempUsageDetail_20' ) end [2025-04-12 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888141', 'tblTempVendorCDR_20' ) start [2025-04-12 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888141', 'tblTempVendorCDR_20' ) end [2025-04-12 01:18:18] Production.INFO: ProcessCDR(1,14888141,1,1,2) [2025-04-12 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888141', 'tblTempUsageDetail_20' ) start [2025-04-12 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888141', 'tblTempUsageDetail_20' ) end [2025-04-12 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:18:23] Production.INFO: ==5981== Releasing lock... [2025-04-12 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:18:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:19:05 [end_date_ymd] => 2025-04-12 01:19:05 [RateCDR] => 1 ) [2025-04-12 01:19: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-04-11 22:19:05' and `end` < '2025-04-12 01:19: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-04-12 01:19:18] Production.INFO: count ==845 [2025-04-12 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:19:05 - End Time 2025-04-12 01:19:05 [2025-04-12 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888146', 'tblTempUsageDetail_20' ) start [2025-04-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888146', 'tblTempUsageDetail_20' ) end [2025-04-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888146', 'tblTempVendorCDR_20' ) start [2025-04-12 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888146', 'tblTempVendorCDR_20' ) end [2025-04-12 01:19:18] Production.INFO: ProcessCDR(1,14888146,1,1,2) [2025-04-12 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888146', 'tblTempUsageDetail_20' ) start [2025-04-12 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888146', 'tblTempUsageDetail_20' ) end [2025-04-12 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:19:22] Production.INFO: ==6056== Releasing lock... [2025-04-12 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:19:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:20:06 [end_date_ymd] => 2025-04-12 01:20:06 [RateCDR] => 1 ) [2025-04-12 01:20: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-04-11 22:20:06' and `end` < '2025-04-12 01:20: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-04-12 01:20:19] Production.INFO: count ==853 [2025-04-12 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:20:06 - End Time 2025-04-12 01:20:06 [2025-04-12 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888151', 'tblTempUsageDetail_20' ) start [2025-04-12 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888151', 'tblTempUsageDetail_20' ) end [2025-04-12 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888151', 'tblTempVendorCDR_20' ) start [2025-04-12 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888151', 'tblTempVendorCDR_20' ) end [2025-04-12 01:20:19] Production.INFO: ProcessCDR(1,14888151,1,1,2) [2025-04-12 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888151', 'tblTempUsageDetail_20' ) start [2025-04-12 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888151', 'tblTempUsageDetail_20' ) end [2025-04-12 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:20:23] Production.INFO: ==6132== Releasing lock... [2025-04-12 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:21:05 [end_date_ymd] => 2025-04-12 01:21:05 [RateCDR] => 1 ) [2025-04-12 01:21: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-04-11 22:21:05' and `end` < '2025-04-12 01:21: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-04-12 01:21:18] Production.INFO: count ==873 [2025-04-12 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:21:05 - End Time 2025-04-12 01:21:05 [2025-04-12 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888157', 'tblTempUsageDetail_20' ) start [2025-04-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888157', 'tblTempUsageDetail_20' ) end [2025-04-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888157', 'tblTempVendorCDR_20' ) start [2025-04-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888157', 'tblTempVendorCDR_20' ) end [2025-04-12 01:21:18] Production.INFO: ProcessCDR(1,14888157,1,1,2) [2025-04-12 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888157', 'tblTempUsageDetail_20' ) start [2025-04-12 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888157', 'tblTempUsageDetail_20' ) end [2025-04-12 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:21:23] Production.INFO: ==6206== Releasing lock... [2025-04-12 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:21:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:22:05 [end_date_ymd] => 2025-04-12 01:22:05 [RateCDR] => 1 ) [2025-04-12 01:22: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-04-11 22:22:05' and `end` < '2025-04-12 01:22: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-04-12 01:22:18] Production.INFO: count ==873 [2025-04-12 01:22:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:22:05 - End Time 2025-04-12 01:22:05 [2025-04-12 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888162', 'tblTempUsageDetail_20' ) start [2025-04-12 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888162', 'tblTempUsageDetail_20' ) end [2025-04-12 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888162', 'tblTempVendorCDR_20' ) start [2025-04-12 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888162', 'tblTempVendorCDR_20' ) end [2025-04-12 01:22:19] Production.INFO: ProcessCDR(1,14888162,1,1,2) [2025-04-12 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888162', 'tblTempUsageDetail_20' ) start [2025-04-12 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888162', 'tblTempUsageDetail_20' ) end [2025-04-12 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:22:22] Production.INFO: ==6279== Releasing lock... [2025-04-12 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:22:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:23:05 [end_date_ymd] => 2025-04-12 01:23:05 [RateCDR] => 1 ) [2025-04-12 01:23: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-04-11 22:23:05' and `end` < '2025-04-12 01:23: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-04-12 01:23:18] Production.INFO: count ==873 [2025-04-12 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:23:05 - End Time 2025-04-12 01:23:05 [2025-04-12 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888167', 'tblTempUsageDetail_20' ) start [2025-04-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888167', 'tblTempUsageDetail_20' ) end [2025-04-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888167', 'tblTempVendorCDR_20' ) start [2025-04-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888167', 'tblTempVendorCDR_20' ) end [2025-04-12 01:23:18] Production.INFO: ProcessCDR(1,14888167,1,1,2) [2025-04-12 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888167', 'tblTempUsageDetail_20' ) start [2025-04-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888167', 'tblTempUsageDetail_20' ) end [2025-04-12 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:23:21] Production.INFO: ==6349== Releasing lock... [2025-04-12 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:23:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:24:06 [end_date_ymd] => 2025-04-12 01:24:06 [RateCDR] => 1 ) [2025-04-12 01:24: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-04-11 22:24:06' and `end` < '2025-04-12 01:24: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-04-12 01:24:19] Production.INFO: count ==873 [2025-04-12 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:24:06 - End Time 2025-04-12 01:24:06 [2025-04-12 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888172', 'tblTempUsageDetail_20' ) start [2025-04-12 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888172', 'tblTempUsageDetail_20' ) end [2025-04-12 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888172', 'tblTempVendorCDR_20' ) start [2025-04-12 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888172', 'tblTempVendorCDR_20' ) end [2025-04-12 01:24:19] Production.INFO: ProcessCDR(1,14888172,1,1,2) [2025-04-12 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888172', 'tblTempUsageDetail_20' ) start [2025-04-12 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888172', 'tblTempUsageDetail_20' ) end [2025-04-12 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:24:22] Production.INFO: ==6464== Releasing lock... [2025-04-12 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:25:05 [end_date_ymd] => 2025-04-12 01:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-11 22:25:05' and `end` < '2025-04-12 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-04-12 01:25:18] Production.INFO: count ==873 [2025-04-12 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:25:05 - End Time 2025-04-12 01:25:05 [2025-04-12 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888177', 'tblTempUsageDetail_20' ) start [2025-04-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888177', 'tblTempUsageDetail_20' ) end [2025-04-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888177', 'tblTempVendorCDR_20' ) start [2025-04-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888177', 'tblTempVendorCDR_20' ) end [2025-04-12 01:25:18] Production.INFO: ProcessCDR(1,14888177,1,1,2) [2025-04-12 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888177', 'tblTempUsageDetail_20' ) start [2025-04-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888177', 'tblTempUsageDetail_20' ) end [2025-04-12 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:25:21] Production.INFO: ==6535== Releasing lock... [2025-04-12 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:25:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:26:05 [end_date_ymd] => 2025-04-12 01:26:05 [RateCDR] => 1 ) [2025-04-12 01:26: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-04-11 22:26:05' and `end` < '2025-04-12 01:26: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-04-12 01:26:18] Production.INFO: count ==873 [2025-04-12 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:26:05 - End Time 2025-04-12 01:26:05 [2025-04-12 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888182', 'tblTempUsageDetail_20' ) start [2025-04-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888182', 'tblTempUsageDetail_20' ) end [2025-04-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888182', 'tblTempVendorCDR_20' ) start [2025-04-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888182', 'tblTempVendorCDR_20' ) end [2025-04-12 01:26:18] Production.INFO: ProcessCDR(1,14888182,1,1,2) [2025-04-12 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888182', 'tblTempUsageDetail_20' ) start [2025-04-12 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888182', 'tblTempUsageDetail_20' ) end [2025-04-12 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:26:22] Production.INFO: ==6609== Releasing lock... [2025-04-12 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:26:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:27:06 [end_date_ymd] => 2025-04-12 01:27:06 [RateCDR] => 1 ) [2025-04-12 01:27: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-04-11 22:27:06' and `end` < '2025-04-12 01:27: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-04-12 01:27:18] Production.INFO: count ==873 [2025-04-12 01:27:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:27:06 - End Time 2025-04-12 01:27:06 [2025-04-12 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888187', 'tblTempUsageDetail_20' ) start [2025-04-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888187', 'tblTempUsageDetail_20' ) end [2025-04-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888187', 'tblTempVendorCDR_20' ) start [2025-04-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888187', 'tblTempVendorCDR_20' ) end [2025-04-12 01:27:19] Production.INFO: ProcessCDR(1,14888187,1,1,2) [2025-04-12 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888187', 'tblTempUsageDetail_20' ) start [2025-04-12 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888187', 'tblTempUsageDetail_20' ) end [2025-04-12 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:27:22] Production.INFO: ==6679== Releasing lock... [2025-04-12 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:27:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:28:05 [end_date_ymd] => 2025-04-12 01:28:05 [RateCDR] => 1 ) [2025-04-12 01:28: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-04-11 22:28:05' and `end` < '2025-04-12 01:28: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-04-12 01:28:18] Production.INFO: count ==874 [2025-04-12 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:28:05 - End Time 2025-04-12 01:28:05 [2025-04-12 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888192', 'tblTempUsageDetail_20' ) start [2025-04-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888192', 'tblTempUsageDetail_20' ) end [2025-04-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888192', 'tblTempVendorCDR_20' ) start [2025-04-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888192', 'tblTempVendorCDR_20' ) end [2025-04-12 01:28:18] Production.INFO: ProcessCDR(1,14888192,1,1,2) [2025-04-12 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888192', 'tblTempUsageDetail_20' ) start [2025-04-12 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888192', 'tblTempUsageDetail_20' ) end [2025-04-12 01:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:28:24] Production.INFO: ==6751== Releasing lock... [2025-04-12 01:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:28:24] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:29:05 [end_date_ymd] => 2025-04-12 01:29:05 [RateCDR] => 1 ) [2025-04-12 01:29: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-04-11 22:29:05' and `end` < '2025-04-12 01:29: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-04-12 01:29:18] Production.INFO: count ==874 [2025-04-12 01:29:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:29:05 - End Time 2025-04-12 01:29:05 [2025-04-12 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888197', 'tblTempUsageDetail_20' ) start [2025-04-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888197', 'tblTempUsageDetail_20' ) end [2025-04-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888197', 'tblTempVendorCDR_20' ) start [2025-04-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888197', 'tblTempVendorCDR_20' ) end [2025-04-12 01:29:19] Production.INFO: ProcessCDR(1,14888197,1,1,2) [2025-04-12 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888197', 'tblTempUsageDetail_20' ) start [2025-04-12 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888197', 'tblTempUsageDetail_20' ) end [2025-04-12 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:29:22] Production.INFO: ==6826== Releasing lock... [2025-04-12 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:29:22] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:30:06 [end_date_ymd] => 2025-04-12 01:30:06 [RateCDR] => 1 ) [2025-04-12 01:30: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-04-11 22:30:06' and `end` < '2025-04-12 01:30: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-04-12 01:30:19] Production.INFO: count ==883 [2025-04-12 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:30:06 - End Time 2025-04-12 01:30:06 [2025-04-12 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888203', 'tblTempUsageDetail_20' ) start [2025-04-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888203', 'tblTempUsageDetail_20' ) end [2025-04-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888203', 'tblTempVendorCDR_20' ) start [2025-04-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888203', 'tblTempVendorCDR_20' ) end [2025-04-12 01:30:19] Production.INFO: ProcessCDR(1,14888203,1,1,2) [2025-04-12 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888203', 'tblTempUsageDetail_20' ) start [2025-04-12 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888203', 'tblTempUsageDetail_20' ) end [2025-04-12 01:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:30:24] Production.INFO: ==6899== Releasing lock... [2025-04-12 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:30:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:31:05 [end_date_ymd] => 2025-04-12 01:31:05 [RateCDR] => 1 ) [2025-04-12 01:31: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-04-11 22:31:05' and `end` < '2025-04-12 01:31: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-04-12 01:31:18] Production.INFO: count ==883 [2025-04-12 01:31:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:31:05 - End Time 2025-04-12 01:31:05 [2025-04-12 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888208', 'tblTempUsageDetail_20' ) start [2025-04-12 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888208', 'tblTempUsageDetail_20' ) end [2025-04-12 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888208', 'tblTempVendorCDR_20' ) start [2025-04-12 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888208', 'tblTempVendorCDR_20' ) end [2025-04-12 01:31:19] Production.INFO: ProcessCDR(1,14888208,1,1,2) [2025-04-12 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888208', 'tblTempUsageDetail_20' ) start [2025-04-12 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888208', 'tblTempUsageDetail_20' ) end [2025-04-12 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:31:22] Production.INFO: ==6975== Releasing lock... [2025-04-12 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:32:05 [end_date_ymd] => 2025-04-12 01:32:05 [RateCDR] => 1 ) [2025-04-12 01:32: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-04-11 22:32:05' and `end` < '2025-04-12 01:32: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-04-12 01:32:18] Production.INFO: count ==881 [2025-04-12 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:32:05 - End Time 2025-04-12 01:32:05 [2025-04-12 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888213', 'tblTempUsageDetail_20' ) start [2025-04-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888213', 'tblTempUsageDetail_20' ) end [2025-04-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888213', 'tblTempVendorCDR_20' ) start [2025-04-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888213', 'tblTempVendorCDR_20' ) end [2025-04-12 01:32:18] Production.INFO: ProcessCDR(1,14888213,1,1,2) [2025-04-12 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888213', 'tblTempUsageDetail_20' ) start [2025-04-12 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888213', 'tblTempUsageDetail_20' ) end [2025-04-12 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:32:22] Production.INFO: ==7045== Releasing lock... [2025-04-12 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:32:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:33:05 [end_date_ymd] => 2025-04-12 01:33:05 [RateCDR] => 1 ) [2025-04-12 01:33: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-04-11 22:33:05' and `end` < '2025-04-12 01:33: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-04-12 01:33:18] Production.INFO: count ==881 [2025-04-12 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:33:05 - End Time 2025-04-12 01:33:05 [2025-04-12 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888218', 'tblTempUsageDetail_20' ) start [2025-04-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888218', 'tblTempUsageDetail_20' ) end [2025-04-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888218', 'tblTempVendorCDR_20' ) start [2025-04-12 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888218', 'tblTempVendorCDR_20' ) end [2025-04-12 01:33:18] Production.INFO: ProcessCDR(1,14888218,1,1,2) [2025-04-12 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888218', 'tblTempUsageDetail_20' ) start [2025-04-12 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888218', 'tblTempUsageDetail_20' ) end [2025-04-12 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:33:22] Production.INFO: ==7115== Releasing lock... [2025-04-12 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:34:05 [end_date_ymd] => 2025-04-12 01:34:05 [RateCDR] => 1 ) [2025-04-12 01:34: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-04-11 22:34:05' and `end` < '2025-04-12 01:34: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-04-12 01:34:18] Production.INFO: count ==881 [2025-04-12 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:34:05 - End Time 2025-04-12 01:34:05 [2025-04-12 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888223', 'tblTempUsageDetail_20' ) start [2025-04-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888223', 'tblTempUsageDetail_20' ) end [2025-04-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888223', 'tblTempVendorCDR_20' ) start [2025-04-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888223', 'tblTempVendorCDR_20' ) end [2025-04-12 01:34:18] Production.INFO: ProcessCDR(1,14888223,1,1,2) [2025-04-12 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888223', 'tblTempUsageDetail_20' ) start [2025-04-12 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888223', 'tblTempUsageDetail_20' ) end [2025-04-12 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:34:22] Production.INFO: ==7189== Releasing lock... [2025-04-12 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:35:05 [end_date_ymd] => 2025-04-12 01:35:05 [RateCDR] => 1 ) [2025-04-12 01:35: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-04-11 22:35:05' and `end` < '2025-04-12 01:35: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-04-12 01:35:18] Production.INFO: count ==880 [2025-04-12 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:35:05 - End Time 2025-04-12 01:35:05 [2025-04-12 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888228', 'tblTempUsageDetail_20' ) start [2025-04-12 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888228', 'tblTempUsageDetail_20' ) end [2025-04-12 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888228', 'tblTempVendorCDR_20' ) start [2025-04-12 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888228', 'tblTempVendorCDR_20' ) end [2025-04-12 01:35:19] Production.INFO: ProcessCDR(1,14888228,1,1,2) [2025-04-12 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888228', 'tblTempUsageDetail_20' ) start [2025-04-12 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888228', 'tblTempUsageDetail_20' ) end [2025-04-12 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:35:22] Production.INFO: ==7259== Releasing lock... [2025-04-12 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:35:22] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:36:05 [end_date_ymd] => 2025-04-12 01:36:05 [RateCDR] => 1 ) [2025-04-12 01:36: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-04-11 22:36:05' and `end` < '2025-04-12 01:36: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-04-12 01:36:18] Production.INFO: count ==880 [2025-04-12 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:36:05 - End Time 2025-04-12 01:36:05 [2025-04-12 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888233', 'tblTempUsageDetail_20' ) start [2025-04-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888233', 'tblTempUsageDetail_20' ) end [2025-04-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888233', 'tblTempVendorCDR_20' ) start [2025-04-12 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888233', 'tblTempVendorCDR_20' ) end [2025-04-12 01:36:19] Production.INFO: ProcessCDR(1,14888233,1,1,2) [2025-04-12 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888233', 'tblTempUsageDetail_20' ) start [2025-04-12 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888233', 'tblTempUsageDetail_20' ) end [2025-04-12 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:36:23] Production.INFO: ==7331== Releasing lock... [2025-04-12 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:36:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:37:06 [end_date_ymd] => 2025-04-12 01:37:06 [RateCDR] => 1 ) [2025-04-12 01:37: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-04-11 22:37:06' and `end` < '2025-04-12 01:37: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-04-12 01:37:18] Production.INFO: count ==879 [2025-04-12 01:37:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:37:06 - End Time 2025-04-12 01:37:06 [2025-04-12 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888238', 'tblTempUsageDetail_20' ) start [2025-04-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888238', 'tblTempUsageDetail_20' ) end [2025-04-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888238', 'tblTempVendorCDR_20' ) start [2025-04-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888238', 'tblTempVendorCDR_20' ) end [2025-04-12 01:37:19] Production.INFO: ProcessCDR(1,14888238,1,1,2) [2025-04-12 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888238', 'tblTempUsageDetail_20' ) start [2025-04-12 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888238', 'tblTempUsageDetail_20' ) end [2025-04-12 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:37:24] Production.INFO: ==7401== Releasing lock... [2025-04-12 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:37:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:38:05 [end_date_ymd] => 2025-04-12 01:38:05 [RateCDR] => 1 ) [2025-04-12 01:38: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-04-11 22:38:05' and `end` < '2025-04-12 01:38: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-04-12 01:38:18] Production.INFO: count ==879 [2025-04-12 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:38:05 - End Time 2025-04-12 01:38:05 [2025-04-12 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888243', 'tblTempUsageDetail_20' ) start [2025-04-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888243', 'tblTempUsageDetail_20' ) end [2025-04-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888243', 'tblTempVendorCDR_20' ) start [2025-04-12 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888243', 'tblTempVendorCDR_20' ) end [2025-04-12 01:38:18] Production.INFO: ProcessCDR(1,14888243,1,1,2) [2025-04-12 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888243', 'tblTempUsageDetail_20' ) start [2025-04-12 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888243', 'tblTempUsageDetail_20' ) end [2025-04-12 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:38:21] Production.INFO: ==7472== Releasing lock... [2025-04-12 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:39:05 [end_date_ymd] => 2025-04-12 01:39:05 [RateCDR] => 1 ) [2025-04-12 01:39: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-04-11 22:39:05' and `end` < '2025-04-12 01:39: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-04-12 01:39:18] Production.INFO: count ==879 [2025-04-12 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:39:05 - End Time 2025-04-12 01:39:05 [2025-04-12 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888248', 'tblTempUsageDetail_20' ) start [2025-04-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888248', 'tblTempUsageDetail_20' ) end [2025-04-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888248', 'tblTempVendorCDR_20' ) start [2025-04-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888248', 'tblTempVendorCDR_20' ) end [2025-04-12 01:39:18] Production.INFO: ProcessCDR(1,14888248,1,1,2) [2025-04-12 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888248', 'tblTempUsageDetail_20' ) start [2025-04-12 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888248', 'tblTempUsageDetail_20' ) end [2025-04-12 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:39:22] Production.INFO: ==7584== Releasing lock... [2025-04-12 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:40:05 [end_date_ymd] => 2025-04-12 01:40:05 [RateCDR] => 1 ) [2025-04-12 01:40: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-04-11 22:40:05' and `end` < '2025-04-12 01:40: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-04-12 01:40:18] Production.INFO: count ==885 [2025-04-12 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:40:05 - End Time 2025-04-12 01:40:05 [2025-04-12 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888253', 'tblTempUsageDetail_20' ) start [2025-04-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888253', 'tblTempUsageDetail_20' ) end [2025-04-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888253', 'tblTempVendorCDR_20' ) start [2025-04-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888253', 'tblTempVendorCDR_20' ) end [2025-04-12 01:40:19] Production.INFO: ProcessCDR(1,14888253,1,1,2) [2025-04-12 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888253', 'tblTempUsageDetail_20' ) start [2025-04-12 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888253', 'tblTempUsageDetail_20' ) end [2025-04-12 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:40:22] Production.INFO: ==7657== Releasing lock... [2025-04-12 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:41:05 [end_date_ymd] => 2025-04-12 01:41:05 [RateCDR] => 1 ) [2025-04-12 01:41: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-04-11 22:41:05' and `end` < '2025-04-12 01:41: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-04-12 01:41:18] Production.INFO: count ==884 [2025-04-12 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:41:05 - End Time 2025-04-12 01:41:05 [2025-04-12 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888259', 'tblTempUsageDetail_20' ) start [2025-04-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888259', 'tblTempUsageDetail_20' ) end [2025-04-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888259', 'tblTempVendorCDR_20' ) start [2025-04-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888259', 'tblTempVendorCDR_20' ) end [2025-04-12 01:41:18] Production.INFO: ProcessCDR(1,14888259,1,1,2) [2025-04-12 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888259', 'tblTempUsageDetail_20' ) start [2025-04-12 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888259', 'tblTempUsageDetail_20' ) end [2025-04-12 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:41:22] Production.INFO: ==7733== Releasing lock... [2025-04-12 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:42:05 [end_date_ymd] => 2025-04-12 01:42:05 [RateCDR] => 1 ) [2025-04-12 01:42: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-04-11 22:42:05' and `end` < '2025-04-12 01:42: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-04-12 01:42:18] Production.INFO: count ==886 [2025-04-12 01:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:42:05 - End Time 2025-04-12 01:42:05 [2025-04-12 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888264', 'tblTempUsageDetail_20' ) start [2025-04-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888264', 'tblTempUsageDetail_20' ) end [2025-04-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888264', 'tblTempVendorCDR_20' ) start [2025-04-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888264', 'tblTempVendorCDR_20' ) end [2025-04-12 01:42:19] Production.INFO: ProcessCDR(1,14888264,1,1,2) [2025-04-12 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888264', 'tblTempUsageDetail_20' ) start [2025-04-12 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888264', 'tblTempUsageDetail_20' ) end [2025-04-12 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:42:22] Production.INFO: ==7808== Releasing lock... [2025-04-12 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:43:06 [end_date_ymd] => 2025-04-12 01:43:06 [RateCDR] => 1 ) [2025-04-12 01:43: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-04-11 22:43:06' and `end` < '2025-04-12 01:43: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-04-12 01:43:19] Production.INFO: count ==882 [2025-04-12 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:43:06 - End Time 2025-04-12 01:43:06 [2025-04-12 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888269', 'tblTempUsageDetail_20' ) start [2025-04-12 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888269', 'tblTempUsageDetail_20' ) end [2025-04-12 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888269', 'tblTempVendorCDR_20' ) start [2025-04-12 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888269', 'tblTempVendorCDR_20' ) end [2025-04-12 01:43:19] Production.INFO: ProcessCDR(1,14888269,1,1,2) [2025-04-12 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888269', 'tblTempUsageDetail_20' ) start [2025-04-12 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888269', 'tblTempUsageDetail_20' ) end [2025-04-12 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:43:23] Production.INFO: ==7881== Releasing lock... [2025-04-12 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:43:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:44:05 [end_date_ymd] => 2025-04-12 01:44:05 [RateCDR] => 1 ) [2025-04-12 01:44: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-04-11 22:44:05' and `end` < '2025-04-12 01:44: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-04-12 01:44:18] Production.INFO: count ==883 [2025-04-12 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:44:05 - End Time 2025-04-12 01:44:05 [2025-04-12 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888274', 'tblTempUsageDetail_20' ) start [2025-04-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888274', 'tblTempUsageDetail_20' ) end [2025-04-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888274', 'tblTempVendorCDR_20' ) start [2025-04-12 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888274', 'tblTempVendorCDR_20' ) end [2025-04-12 01:44:18] Production.INFO: ProcessCDR(1,14888274,1,1,2) [2025-04-12 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888274', 'tblTempUsageDetail_20' ) start [2025-04-12 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888274', 'tblTempUsageDetail_20' ) end [2025-04-12 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:44:21] Production.INFO: ==7957== Releasing lock... [2025-04-12 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:44:21] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:45:05 [end_date_ymd] => 2025-04-12 01:45:05 [RateCDR] => 1 ) [2025-04-12 01:45: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-04-11 22:45:05' and `end` < '2025-04-12 01:45: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-04-12 01:45:18] Production.INFO: count ==882 [2025-04-12 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:45:05 - End Time 2025-04-12 01:45:05 [2025-04-12 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888279', 'tblTempUsageDetail_20' ) start [2025-04-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888279', 'tblTempUsageDetail_20' ) end [2025-04-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888279', 'tblTempVendorCDR_20' ) start [2025-04-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888279', 'tblTempVendorCDR_20' ) end [2025-04-12 01:45:18] Production.INFO: ProcessCDR(1,14888279,1,1,2) [2025-04-12 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888279', 'tblTempUsageDetail_20' ) start [2025-04-12 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888279', 'tblTempUsageDetail_20' ) end [2025-04-12 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:45:22] Production.INFO: ==8028== Releasing lock... [2025-04-12 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:46:05 [end_date_ymd] => 2025-04-12 01:46:05 [RateCDR] => 1 ) [2025-04-12 01:46: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-04-11 22:46:05' and `end` < '2025-04-12 01:46: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-04-12 01:46:18] Production.INFO: count ==883 [2025-04-12 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:46:05 - End Time 2025-04-12 01:46:05 [2025-04-12 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888284', 'tblTempUsageDetail_20' ) start [2025-04-12 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888284', 'tblTempUsageDetail_20' ) end [2025-04-12 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888284', 'tblTempVendorCDR_20' ) start [2025-04-12 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888284', 'tblTempVendorCDR_20' ) end [2025-04-12 01:46:18] Production.INFO: ProcessCDR(1,14888284,1,1,2) [2025-04-12 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888284', 'tblTempUsageDetail_20' ) start [2025-04-12 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888284', 'tblTempUsageDetail_20' ) end [2025-04-12 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:46:22] Production.INFO: ==8100== Releasing lock... [2025-04-12 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:46:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:47:05 [end_date_ymd] => 2025-04-12 01:47:05 [RateCDR] => 1 ) [2025-04-12 01:47: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-04-11 22:47:05' and `end` < '2025-04-12 01:47: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-04-12 01:47:18] Production.INFO: count ==883 [2025-04-12 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:47:05 - End Time 2025-04-12 01:47:05 [2025-04-12 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888289', 'tblTempUsageDetail_20' ) start [2025-04-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888289', 'tblTempUsageDetail_20' ) end [2025-04-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888289', 'tblTempVendorCDR_20' ) start [2025-04-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888289', 'tblTempVendorCDR_20' ) end [2025-04-12 01:47:18] Production.INFO: ProcessCDR(1,14888289,1,1,2) [2025-04-12 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888289', 'tblTempUsageDetail_20' ) start [2025-04-12 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888289', 'tblTempUsageDetail_20' ) end [2025-04-12 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:47:22] Production.INFO: ==8173== Releasing lock... [2025-04-12 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:47:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:48:05 [end_date_ymd] => 2025-04-12 01:48:05 [RateCDR] => 1 ) [2025-04-12 01:48: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-04-11 22:48:05' and `end` < '2025-04-12 01:48: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-04-12 01:48:18] Production.INFO: count ==882 [2025-04-12 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:48:05 - End Time 2025-04-12 01:48:05 [2025-04-12 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888294', 'tblTempUsageDetail_20' ) start [2025-04-12 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888294', 'tblTempUsageDetail_20' ) end [2025-04-12 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888294', 'tblTempVendorCDR_20' ) start [2025-04-12 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888294', 'tblTempVendorCDR_20' ) end [2025-04-12 01:48:18] Production.INFO: ProcessCDR(1,14888294,1,1,2) [2025-04-12 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888294', 'tblTempUsageDetail_20' ) start [2025-04-12 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888294', 'tblTempUsageDetail_20' ) end [2025-04-12 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:48:21] Production.INFO: ==8243== Releasing lock... [2025-04-12 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:48:21] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:49:05 [end_date_ymd] => 2025-04-12 01:49:05 [RateCDR] => 1 ) [2025-04-12 01:49: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-04-11 22:49:05' and `end` < '2025-04-12 01:49: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-04-12 01:49:18] Production.INFO: count ==882 [2025-04-12 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:49:05 - End Time 2025-04-12 01:49:05 [2025-04-12 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888299', 'tblTempUsageDetail_20' ) start [2025-04-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888299', 'tblTempUsageDetail_20' ) end [2025-04-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888299', 'tblTempVendorCDR_20' ) start [2025-04-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888299', 'tblTempVendorCDR_20' ) end [2025-04-12 01:49:18] Production.INFO: ProcessCDR(1,14888299,1,1,2) [2025-04-12 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888299', 'tblTempUsageDetail_20' ) start [2025-04-12 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888299', 'tblTempUsageDetail_20' ) end [2025-04-12 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:49:22] Production.INFO: ==8316== Releasing lock... [2025-04-12 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:49:22] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:50:06 [end_date_ymd] => 2025-04-12 01:50:06 [RateCDR] => 1 ) [2025-04-12 01:50: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-04-11 22:50:06' and `end` < '2025-04-12 01:50: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-04-12 01:50:18] Production.INFO: count ==893 [2025-04-12 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:50:06 - End Time 2025-04-12 01:50:06 [2025-04-12 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888305', 'tblTempUsageDetail_20' ) start [2025-04-12 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888305', 'tblTempUsageDetail_20' ) end [2025-04-12 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888305', 'tblTempVendorCDR_20' ) start [2025-04-12 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888305', 'tblTempVendorCDR_20' ) end [2025-04-12 01:50:19] Production.INFO: ProcessCDR(1,14888305,1,1,2) [2025-04-12 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888305', 'tblTempUsageDetail_20' ) start [2025-04-12 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888305', 'tblTempUsageDetail_20' ) end [2025-04-12 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:50:24] Production.INFO: ==8388== Releasing lock... [2025-04-12 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:50:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:51:05 [end_date_ymd] => 2025-04-12 01:51:05 [RateCDR] => 1 ) [2025-04-12 01:51: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-04-11 22:51:05' and `end` < '2025-04-12 01:51: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-04-12 01:51:18] Production.INFO: count ==898 [2025-04-12 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:51:05 - End Time 2025-04-12 01:51:05 [2025-04-12 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888310', 'tblTempUsageDetail_20' ) start [2025-04-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888310', 'tblTempUsageDetail_20' ) end [2025-04-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888310', 'tblTempVendorCDR_20' ) start [2025-04-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888310', 'tblTempVendorCDR_20' ) end [2025-04-12 01:51:18] Production.INFO: ProcessCDR(1,14888310,1,1,2) [2025-04-12 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888310', 'tblTempUsageDetail_20' ) start [2025-04-12 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888310', 'tblTempUsageDetail_20' ) end [2025-04-12 01:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:51:24] Production.INFO: ==8462== Releasing lock... [2025-04-12 01:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:51:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:52:06 [end_date_ymd] => 2025-04-12 01:52:06 [RateCDR] => 1 ) [2025-04-12 01:52: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-04-11 22:52:06' and `end` < '2025-04-12 01:52: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-04-12 01:52:19] Production.INFO: count ==898 [2025-04-12 01:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:52:06 - End Time 2025-04-12 01:52:06 [2025-04-12 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888315', 'tblTempUsageDetail_20' ) start [2025-04-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888315', 'tblTempUsageDetail_20' ) end [2025-04-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888315', 'tblTempVendorCDR_20' ) start [2025-04-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888315', 'tblTempVendorCDR_20' ) end [2025-04-12 01:52:19] Production.INFO: ProcessCDR(1,14888315,1,1,2) [2025-04-12 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888315', 'tblTempUsageDetail_20' ) start [2025-04-12 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888315', 'tblTempUsageDetail_20' ) end [2025-04-12 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:52:23] Production.INFO: ==8534== Releasing lock... [2025-04-12 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:52:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:53:05 [end_date_ymd] => 2025-04-12 01:53:05 [RateCDR] => 1 ) [2025-04-12 01:53: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-04-11 22:53:05' and `end` < '2025-04-12 01:53: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-04-12 01:53:18] Production.INFO: count ==898 [2025-04-12 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:53:05 - End Time 2025-04-12 01:53:05 [2025-04-12 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888320', 'tblTempUsageDetail_20' ) start [2025-04-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888320', 'tblTempUsageDetail_20' ) end [2025-04-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888320', 'tblTempVendorCDR_20' ) start [2025-04-12 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888320', 'tblTempVendorCDR_20' ) end [2025-04-12 01:53:18] Production.INFO: ProcessCDR(1,14888320,1,1,2) [2025-04-12 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888320', 'tblTempUsageDetail_20' ) start [2025-04-12 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888320', 'tblTempUsageDetail_20' ) end [2025-04-12 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:53:24] Production.INFO: ==8606== Releasing lock... [2025-04-12 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:53:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:54:06 [end_date_ymd] => 2025-04-12 01:54:06 [RateCDR] => 1 ) [2025-04-12 01:54: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-04-11 22:54:06' and `end` < '2025-04-12 01:54: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-04-12 01:54:19] Production.INFO: count ==897 [2025-04-12 01:54:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:54:06 - End Time 2025-04-12 01:54:06 [2025-04-12 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888325', 'tblTempUsageDetail_20' ) start [2025-04-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888325', 'tblTempUsageDetail_20' ) end [2025-04-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888325', 'tblTempVendorCDR_20' ) start [2025-04-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888325', 'tblTempVendorCDR_20' ) end [2025-04-12 01:54:19] Production.INFO: ProcessCDR(1,14888325,1,1,2) [2025-04-12 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888325', 'tblTempUsageDetail_20' ) start [2025-04-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888325', 'tblTempUsageDetail_20' ) end [2025-04-12 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:54:22] Production.INFO: ==8680== Releasing lock... [2025-04-12 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:54:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:55:05 [end_date_ymd] => 2025-04-12 01:55:05 [RateCDR] => 1 ) [2025-04-12 01:55: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-04-11 22:55:05' and `end` < '2025-04-12 01:55: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-04-12 01:55:18] Production.INFO: count ==897 [2025-04-12 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 22:55:05 - End Time 2025-04-12 01:55:05 [2025-04-12 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888330', 'tblTempUsageDetail_20' ) start [2025-04-12 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888330', 'tblTempUsageDetail_20' ) end [2025-04-12 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888330', 'tblTempVendorCDR_20' ) start [2025-04-12 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888330', 'tblTempVendorCDR_20' ) end [2025-04-12 01:55:19] Production.INFO: ProcessCDR(1,14888330,1,1,2) [2025-04-12 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888330', 'tblTempUsageDetail_20' ) start [2025-04-12 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888330', 'tblTempUsageDetail_20' ) end [2025-04-12 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:55:22] Production.INFO: ==8793== Releasing lock... [2025-04-12 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:56:05 [end_date_ymd] => 2025-04-12 01:56:05 [RateCDR] => 1 ) [2025-04-12 01:56: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-04-11 22:56:05' and `end` < '2025-04-12 01:56: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-04-12 01:56:18] Production.INFO: count ==897 [2025-04-12 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:56:05 - End Time 2025-04-12 01:56:05 [2025-04-12 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888335', 'tblTempUsageDetail_20' ) start [2025-04-12 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888335', 'tblTempUsageDetail_20' ) end [2025-04-12 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888335', 'tblTempVendorCDR_20' ) start [2025-04-12 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888335', 'tblTempVendorCDR_20' ) end [2025-04-12 01:56:18] Production.INFO: ProcessCDR(1,14888335,1,1,2) [2025-04-12 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888335', 'tblTempUsageDetail_20' ) start [2025-04-12 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888335', 'tblTempUsageDetail_20' ) end [2025-04-12 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:56:22] Production.INFO: ==8869== Releasing lock... [2025-04-12 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:57:05 [end_date_ymd] => 2025-04-12 01:57:05 [RateCDR] => 1 ) [2025-04-12 01:57: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-04-11 22:57:05' and `end` < '2025-04-12 01:57: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-04-12 01:57:18] Production.INFO: count ==899 [2025-04-12 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:57:05 - End Time 2025-04-12 01:57:05 [2025-04-12 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888340', 'tblTempUsageDetail_20' ) start [2025-04-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888340', 'tblTempUsageDetail_20' ) end [2025-04-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888340', 'tblTempVendorCDR_20' ) start [2025-04-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888340', 'tblTempVendorCDR_20' ) end [2025-04-12 01:57:18] Production.INFO: ProcessCDR(1,14888340,1,1,2) [2025-04-12 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888340', 'tblTempUsageDetail_20' ) start [2025-04-12 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888340', 'tblTempUsageDetail_20' ) end [2025-04-12 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:57:21] Production.INFO: ==8941== Releasing lock... [2025-04-12 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:57:21] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:58:05 [end_date_ymd] => 2025-04-12 01:58:05 [RateCDR] => 1 ) [2025-04-12 01:58: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-04-11 22:58:05' and `end` < '2025-04-12 01:58: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-04-12 01:58:18] Production.INFO: count ==899 [2025-04-12 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:58:05 - End Time 2025-04-12 01:58:05 [2025-04-12 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888345', 'tblTempUsageDetail_20' ) start [2025-04-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888345', 'tblTempUsageDetail_20' ) end [2025-04-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888345', 'tblTempVendorCDR_20' ) start [2025-04-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888345', 'tblTempVendorCDR_20' ) end [2025-04-12 01:58:18] Production.INFO: ProcessCDR(1,14888345,1,1,2) [2025-04-12 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888345', 'tblTempUsageDetail_20' ) start [2025-04-12 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888345', 'tblTempUsageDetail_20' ) end [2025-04-12 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:58:22] Production.INFO: ==9011== Releasing lock... [2025-04-12 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:58:22] Production.INFO: 35 MB #Memory Used# [2025-04-12 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 22:59:05 [end_date_ymd] => 2025-04-12 01:59:05 [RateCDR] => 1 ) [2025-04-12 01:59: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-04-11 22:59:05' and `end` < '2025-04-12 01:59: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-04-12 01:59:18] Production.INFO: count ==899 [2025-04-12 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 22:59:05 - End Time 2025-04-12 01:59:05 [2025-04-12 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888350', 'tblTempUsageDetail_20' ) start [2025-04-12 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888350', 'tblTempUsageDetail_20' ) end [2025-04-12 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888350', 'tblTempVendorCDR_20' ) start [2025-04-12 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888350', 'tblTempVendorCDR_20' ) end [2025-04-12 01:59:18] Production.INFO: ProcessCDR(1,14888350,1,1,2) [2025-04-12 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888350', 'tblTempUsageDetail_20' ) start [2025-04-12 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888350', 'tblTempUsageDetail_20' ) end [2025-04-12 01:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 01:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 01:59:24] Production.INFO: ==9086== Releasing lock... [2025-04-12 01:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 01:59:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:00:06 [end_date_ymd] => 2025-04-12 02:00:06 [RateCDR] => 1 ) [2025-04-12 02:00: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-04-11 23:00:06' and `end` < '2025-04-12 02:00: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-04-12 02:00:19] Production.INFO: count ==903 [2025-04-12 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:00:06 - End Time 2025-04-12 02:00:06 [2025-04-12 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888356', 'tblTempUsageDetail_20' ) start [2025-04-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888356', 'tblTempUsageDetail_20' ) end [2025-04-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888356', 'tblTempVendorCDR_20' ) start [2025-04-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888356', 'tblTempVendorCDR_20' ) end [2025-04-12 02:00:20] Production.INFO: ProcessCDR(1,14888356,1,1,2) [2025-04-12 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888356', 'tblTempUsageDetail_20' ) start [2025-04-12 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888356', 'tblTempUsageDetail_20' ) end [2025-04-12 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:00:25] Production.INFO: ==9158== Releasing lock... [2025-04-12 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:00:25] Production.INFO: 35 MB #Memory Used# [2025-04-12 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:01:06 [end_date_ymd] => 2025-04-12 02:01:06 [RateCDR] => 1 ) [2025-04-12 02:01: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-04-11 23:01:06' and `end` < '2025-04-12 02:01: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-04-12 02:01:19] Production.INFO: count ==903 [2025-04-12 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:01:06 - End Time 2025-04-12 02:01:06 [2025-04-12 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888361', 'tblTempUsageDetail_20' ) start [2025-04-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888361', 'tblTempUsageDetail_20' ) end [2025-04-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888361', 'tblTempVendorCDR_20' ) start [2025-04-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888361', 'tblTempVendorCDR_20' ) end [2025-04-12 02:01:19] Production.INFO: ProcessCDR(1,14888361,1,1,2) [2025-04-12 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888361', 'tblTempUsageDetail_20' ) start [2025-04-12 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888361', 'tblTempUsageDetail_20' ) end [2025-04-12 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:01:23] Production.INFO: ==9249== Releasing lock... [2025-04-12 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:01:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:02:06 [end_date_ymd] => 2025-04-12 02:02:06 [RateCDR] => 1 ) [2025-04-12 02:02: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-04-11 23:02:06' and `end` < '2025-04-12 02:02: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-04-12 02:02:18] Production.INFO: count ==903 [2025-04-12 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:02:06 - End Time 2025-04-12 02:02:06 [2025-04-12 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888366', 'tblTempUsageDetail_20' ) start [2025-04-12 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888366', 'tblTempUsageDetail_20' ) end [2025-04-12 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888366', 'tblTempVendorCDR_20' ) start [2025-04-12 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888366', 'tblTempVendorCDR_20' ) end [2025-04-12 02:02:19] Production.INFO: ProcessCDR(1,14888366,1,1,2) [2025-04-12 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888366', 'tblTempUsageDetail_20' ) start [2025-04-12 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888366', 'tblTempUsageDetail_20' ) end [2025-04-12 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:02:23] Production.INFO: ==9427== Releasing lock... [2025-04-12 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:02:23] Production.INFO: 35 MB #Memory Used# [2025-04-12 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:03:05 [end_date_ymd] => 2025-04-12 02:03:05 [RateCDR] => 1 ) [2025-04-12 02:03: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-04-11 23:03:05' and `end` < '2025-04-12 02:03: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-04-12 02:03:18] Production.INFO: count ==904 [2025-04-12 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:03:05 - End Time 2025-04-12 02:03:05 [2025-04-12 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888371', 'tblTempUsageDetail_20' ) start [2025-04-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888371', 'tblTempUsageDetail_20' ) end [2025-04-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888371', 'tblTempVendorCDR_20' ) start [2025-04-12 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888371', 'tblTempVendorCDR_20' ) end [2025-04-12 02:03:18] Production.INFO: ProcessCDR(1,14888371,1,1,2) [2025-04-12 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888371', 'tblTempUsageDetail_20' ) start [2025-04-12 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888371', 'tblTempUsageDetail_20' ) end [2025-04-12 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:03:23] Production.INFO: ==9498== Releasing lock... [2025-04-12 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:03:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:04:05 [end_date_ymd] => 2025-04-12 02:04:05 [RateCDR] => 1 ) [2025-04-12 02:04: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-04-11 23:04:05' and `end` < '2025-04-12 02:04: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-04-12 02:04:18] Production.INFO: count ==905 [2025-04-12 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:04:05 - End Time 2025-04-12 02:04:05 [2025-04-12 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888376', 'tblTempUsageDetail_20' ) start [2025-04-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888376', 'tblTempUsageDetail_20' ) end [2025-04-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888376', 'tblTempVendorCDR_20' ) start [2025-04-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888376', 'tblTempVendorCDR_20' ) end [2025-04-12 02:04:18] Production.INFO: ProcessCDR(1,14888376,1,1,2) [2025-04-12 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888376', 'tblTempUsageDetail_20' ) start [2025-04-12 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888376', 'tblTempUsageDetail_20' ) end [2025-04-12 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:04:23] Production.INFO: ==9568== Releasing lock... [2025-04-12 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:04:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:05:05 [end_date_ymd] => 2025-04-12 02:05:05 [RateCDR] => 1 ) [2025-04-12 02:05: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-04-11 23:05:05' and `end` < '2025-04-12 02:05: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-04-12 02:05:18] Production.INFO: count ==905 [2025-04-12 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:05:05 - End Time 2025-04-12 02:05:05 [2025-04-12 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888381', 'tblTempUsageDetail_20' ) start [2025-04-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888381', 'tblTempUsageDetail_20' ) end [2025-04-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888381', 'tblTempVendorCDR_20' ) start [2025-04-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888381', 'tblTempVendorCDR_20' ) end [2025-04-12 02:05:18] Production.INFO: ProcessCDR(1,14888381,1,1,2) [2025-04-12 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888381', 'tblTempUsageDetail_20' ) start [2025-04-12 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888381', 'tblTempUsageDetail_20' ) end [2025-04-12 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:05:22] Production.INFO: ==9641== Releasing lock... [2025-04-12 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:05:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:06:05 [end_date_ymd] => 2025-04-12 02:06:05 [RateCDR] => 1 ) [2025-04-12 02:06: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-04-11 23:06:05' and `end` < '2025-04-12 02:06: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-04-12 02:06:18] Production.INFO: count ==853 [2025-04-12 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:06:05 - End Time 2025-04-12 02:06:05 [2025-04-12 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888386', 'tblTempUsageDetail_20' ) start [2025-04-12 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888386', 'tblTempUsageDetail_20' ) end [2025-04-12 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888386', 'tblTempVendorCDR_20' ) start [2025-04-12 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888386', 'tblTempVendorCDR_20' ) end [2025-04-12 02:06:18] Production.INFO: ProcessCDR(1,14888386,1,1,2) [2025-04-12 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888386', 'tblTempUsageDetail_20' ) start [2025-04-12 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888386', 'tblTempUsageDetail_20' ) end [2025-04-12 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:06:22] Production.INFO: ==9713== Releasing lock... [2025-04-12 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:06:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:07:05 [end_date_ymd] => 2025-04-12 02:07:05 [RateCDR] => 1 ) [2025-04-12 02:07: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-04-11 23:07:05' and `end` < '2025-04-12 02:07: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-04-12 02:07:18] Production.INFO: count ==795 [2025-04-12 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:07:05 - End Time 2025-04-12 02:07:05 [2025-04-12 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888391', 'tblTempUsageDetail_20' ) start [2025-04-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888391', 'tblTempUsageDetail_20' ) end [2025-04-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888391', 'tblTempVendorCDR_20' ) start [2025-04-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888391', 'tblTempVendorCDR_20' ) end [2025-04-12 02:07:18] Production.INFO: ProcessCDR(1,14888391,1,1,2) [2025-04-12 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888391', 'tblTempUsageDetail_20' ) start [2025-04-12 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888391', 'tblTempUsageDetail_20' ) end [2025-04-12 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:07:22] Production.INFO: ==9787== Releasing lock... [2025-04-12 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:08:05 [end_date_ymd] => 2025-04-12 02:08:05 [RateCDR] => 1 ) [2025-04-12 02:08: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-04-11 23:08:05' and `end` < '2025-04-12 02:08: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-04-12 02:08:18] Production.INFO: count ==749 [2025-04-12 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:08:05 - End Time 2025-04-12 02:08:05 [2025-04-12 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888396', 'tblTempUsageDetail_20' ) start [2025-04-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888396', 'tblTempUsageDetail_20' ) end [2025-04-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888396', 'tblTempVendorCDR_20' ) start [2025-04-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888396', 'tblTempVendorCDR_20' ) end [2025-04-12 02:08:18] Production.INFO: ProcessCDR(1,14888396,1,1,2) [2025-04-12 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888396', 'tblTempUsageDetail_20' ) start [2025-04-12 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888396', 'tblTempUsageDetail_20' ) end [2025-04-12 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:08:22] Production.INFO: ==9860== Releasing lock... [2025-04-12 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:09:05 [end_date_ymd] => 2025-04-12 02:09:05 [RateCDR] => 1 ) [2025-04-12 02:09: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-04-11 23:09:05' and `end` < '2025-04-12 02:09: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-04-12 02:09:18] Production.INFO: count ==686 [2025-04-12 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:09:05 - End Time 2025-04-12 02:09:05 [2025-04-12 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888401', 'tblTempUsageDetail_20' ) start [2025-04-12 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888401', 'tblTempUsageDetail_20' ) end [2025-04-12 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888401', 'tblTempVendorCDR_20' ) start [2025-04-12 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888401', 'tblTempVendorCDR_20' ) end [2025-04-12 02:09:18] Production.INFO: ProcessCDR(1,14888401,1,1,2) [2025-04-12 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888401', 'tblTempUsageDetail_20' ) start [2025-04-12 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888401', 'tblTempUsageDetail_20' ) end [2025-04-12 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:09:22] Production.INFO: ==9935== Releasing lock... [2025-04-12 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:10:06 [end_date_ymd] => 2025-04-12 02:10:06 [RateCDR] => 1 ) [2025-04-12 02:10: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-04-11 23:10:06' and `end` < '2025-04-12 02:10: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-04-12 02:10:19] Production.INFO: count ==634 [2025-04-12 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:10:06 - End Time 2025-04-12 02:10:06 [2025-04-12 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888407', 'tblTempUsageDetail_20' ) start [2025-04-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888407', 'tblTempUsageDetail_20' ) end [2025-04-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888407', 'tblTempVendorCDR_20' ) start [2025-04-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888407', 'tblTempVendorCDR_20' ) end [2025-04-12 02:10:19] Production.INFO: ProcessCDR(1,14888407,1,1,2) [2025-04-12 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888407', 'tblTempUsageDetail_20' ) start [2025-04-12 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888407', 'tblTempUsageDetail_20' ) end [2025-04-12 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:10:23] Production.INFO: ==10050== Releasing lock... [2025-04-12 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:11:05 [end_date_ymd] => 2025-04-12 02:11:05 [RateCDR] => 1 ) [2025-04-12 02:11: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-04-11 23:11:05' and `end` < '2025-04-12 02:11: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-04-12 02:11:18] Production.INFO: count ==584 [2025-04-12 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:11:05 - End Time 2025-04-12 02:11:05 [2025-04-12 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888412', 'tblTempUsageDetail_20' ) start [2025-04-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888412', 'tblTempUsageDetail_20' ) end [2025-04-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888412', 'tblTempVendorCDR_20' ) start [2025-04-12 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888412', 'tblTempVendorCDR_20' ) end [2025-04-12 02:11:18] Production.INFO: ProcessCDR(1,14888412,1,1,2) [2025-04-12 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888412', 'tblTempUsageDetail_20' ) start [2025-04-12 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888412', 'tblTempUsageDetail_20' ) end [2025-04-12 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:11:21] Production.INFO: ==10125== Releasing lock... [2025-04-12 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:11:21] Production.INFO: 33 MB #Memory Used# [2025-04-12 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:12:05 [end_date_ymd] => 2025-04-12 02:12:05 [RateCDR] => 1 ) [2025-04-12 02:12: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-04-11 23:12:05' and `end` < '2025-04-12 02:12: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-04-12 02:12:18] Production.INFO: count ==525 [2025-04-12 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:12:05 - End Time 2025-04-12 02:12:05 [2025-04-12 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888417', 'tblTempUsageDetail_20' ) start [2025-04-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888417', 'tblTempUsageDetail_20' ) end [2025-04-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888417', 'tblTempVendorCDR_20' ) start [2025-04-12 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888417', 'tblTempVendorCDR_20' ) end [2025-04-12 02:12:18] Production.INFO: ProcessCDR(1,14888417,1,1,2) [2025-04-12 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888417', 'tblTempUsageDetail_20' ) start [2025-04-12 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888417', 'tblTempUsageDetail_20' ) end [2025-04-12 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:12:22] Production.INFO: ==10202== Releasing lock... [2025-04-12 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:13:05 [end_date_ymd] => 2025-04-12 02:13:05 [RateCDR] => 1 ) [2025-04-12 02:13: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-04-11 23:13:05' and `end` < '2025-04-12 02:13: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-04-12 02:13:18] Production.INFO: count ==458 [2025-04-12 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:13:05 - End Time 2025-04-12 02:13:05 [2025-04-12 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888422', 'tblTempUsageDetail_20' ) start [2025-04-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888422', 'tblTempUsageDetail_20' ) end [2025-04-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888422', 'tblTempVendorCDR_20' ) start [2025-04-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888422', 'tblTempVendorCDR_20' ) end [2025-04-12 02:13:18] Production.INFO: ProcessCDR(1,14888422,1,1,2) [2025-04-12 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888422', 'tblTempUsageDetail_20' ) start [2025-04-12 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888422', 'tblTempUsageDetail_20' ) end [2025-04-12 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:13:22] Production.INFO: ==10274== Releasing lock... [2025-04-12 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:13:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:14:06 [end_date_ymd] => 2025-04-12 02:14:06 [RateCDR] => 1 ) [2025-04-12 02:14: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-04-11 23:14:06' and `end` < '2025-04-12 02:14: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-04-12 02:14:18] Production.INFO: count ==392 [2025-04-12 02:14:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:14:06 - End Time 2025-04-12 02:14:06 [2025-04-12 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888427', 'tblTempUsageDetail_20' ) start [2025-04-12 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888427', 'tblTempUsageDetail_20' ) end [2025-04-12 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888427', 'tblTempVendorCDR_20' ) start [2025-04-12 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888427', 'tblTempVendorCDR_20' ) end [2025-04-12 02:14:19] Production.INFO: ProcessCDR(1,14888427,1,1,2) [2025-04-12 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888427', 'tblTempUsageDetail_20' ) start [2025-04-12 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888427', 'tblTempUsageDetail_20' ) end [2025-04-12 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:14:22] Production.INFO: ==10344== Releasing lock... [2025-04-12 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:15:05 [end_date_ymd] => 2025-04-12 02:15:05 [RateCDR] => 1 ) [2025-04-12 02:15: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-04-11 23:15:05' and `end` < '2025-04-12 02:15: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-04-12 02:15:18] Production.INFO: count ==355 [2025-04-12 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:15:05 - End Time 2025-04-12 02:15:05 [2025-04-12 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888432', 'tblTempUsageDetail_20' ) start [2025-04-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888432', 'tblTempUsageDetail_20' ) end [2025-04-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888432', 'tblTempVendorCDR_20' ) start [2025-04-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888432', 'tblTempVendorCDR_20' ) end [2025-04-12 02:15:18] Production.INFO: ProcessCDR(1,14888432,1,1,2) [2025-04-12 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888432', 'tblTempUsageDetail_20' ) start [2025-04-12 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888432', 'tblTempUsageDetail_20' ) end [2025-04-12 02:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:15:23] Production.INFO: ==10415== Releasing lock... [2025-04-12 02:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:15:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:16:05 [end_date_ymd] => 2025-04-12 02:16:05 [RateCDR] => 1 ) [2025-04-12 02:16: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-04-11 23:16:05' and `end` < '2025-04-12 02:16: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-04-12 02:16:18] Production.INFO: count ==311 [2025-04-12 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:16:05 - End Time 2025-04-12 02:16:05 [2025-04-12 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888437', 'tblTempUsageDetail_20' ) start [2025-04-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888437', 'tblTempUsageDetail_20' ) end [2025-04-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888437', 'tblTempVendorCDR_20' ) start [2025-04-12 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888437', 'tblTempVendorCDR_20' ) end [2025-04-12 02:16:18] Production.INFO: ProcessCDR(1,14888437,1,1,2) [2025-04-12 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888437', 'tblTempUsageDetail_20' ) start [2025-04-12 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888437', 'tblTempUsageDetail_20' ) end [2025-04-12 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:16:21] Production.INFO: ==10485== Releasing lock... [2025-04-12 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:17:05 [end_date_ymd] => 2025-04-12 02:17:05 [RateCDR] => 1 ) [2025-04-12 02:17: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-04-11 23:17:05' and `end` < '2025-04-12 02:17: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-04-12 02:17:18] Production.INFO: count ==312 [2025-04-12 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:17:05 - End Time 2025-04-12 02:17:05 [2025-04-12 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888442', 'tblTempUsageDetail_20' ) start [2025-04-12 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888442', 'tblTempUsageDetail_20' ) end [2025-04-12 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888442', 'tblTempVendorCDR_20' ) start [2025-04-12 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888442', 'tblTempVendorCDR_20' ) end [2025-04-12 02:17:18] Production.INFO: ProcessCDR(1,14888442,1,1,2) [2025-04-12 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888442', 'tblTempUsageDetail_20' ) start [2025-04-12 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888442', 'tblTempUsageDetail_20' ) end [2025-04-12 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:17:23] Production.INFO: ==10561== Releasing lock... [2025-04-12 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:17:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:18:06 [end_date_ymd] => 2025-04-12 02:18:06 [RateCDR] => 1 ) [2025-04-12 02:18: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-04-11 23:18:06' and `end` < '2025-04-12 02:18: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-04-12 02:18:18] Production.INFO: count ==312 [2025-04-12 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:18:06 - End Time 2025-04-12 02:18:06 [2025-04-12 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888447', 'tblTempUsageDetail_20' ) start [2025-04-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888447', 'tblTempUsageDetail_20' ) end [2025-04-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888447', 'tblTempVendorCDR_20' ) start [2025-04-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888447', 'tblTempVendorCDR_20' ) end [2025-04-12 02:18:18] Production.INFO: ProcessCDR(1,14888447,1,1,2) [2025-04-12 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888447', 'tblTempUsageDetail_20' ) start [2025-04-12 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888447', 'tblTempUsageDetail_20' ) end [2025-04-12 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:18:22] Production.INFO: ==10636== Releasing lock... [2025-04-12 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:19:05 [end_date_ymd] => 2025-04-12 02:19:05 [RateCDR] => 1 ) [2025-04-12 02:19: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-04-11 23:19:05' and `end` < '2025-04-12 02:19: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-04-12 02:19:18] Production.INFO: count ==313 [2025-04-12 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:19:05 - End Time 2025-04-12 02:19:05 [2025-04-12 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888452', 'tblTempUsageDetail_20' ) start [2025-04-12 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888452', 'tblTempUsageDetail_20' ) end [2025-04-12 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888452', 'tblTempVendorCDR_20' ) start [2025-04-12 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888452', 'tblTempVendorCDR_20' ) end [2025-04-12 02:19:18] Production.INFO: ProcessCDR(1,14888452,1,1,2) [2025-04-12 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888452', 'tblTempUsageDetail_20' ) start [2025-04-12 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888452', 'tblTempUsageDetail_20' ) end [2025-04-12 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:19:23] Production.INFO: ==10708== Releasing lock... [2025-04-12 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:19:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:20:06 [end_date_ymd] => 2025-04-12 02:20:06 [RateCDR] => 1 ) [2025-04-12 02:20: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-04-11 23:20:06' and `end` < '2025-04-12 02:20: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-04-12 02:20:19] Production.INFO: count ==323 [2025-04-12 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:20:06 - End Time 2025-04-12 02:20:06 [2025-04-12 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888458', 'tblTempUsageDetail_20' ) start [2025-04-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888458', 'tblTempUsageDetail_20' ) end [2025-04-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888458', 'tblTempVendorCDR_20' ) start [2025-04-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888458', 'tblTempVendorCDR_20' ) end [2025-04-12 02:20:19] Production.INFO: ProcessCDR(1,14888458,1,1,2) [2025-04-12 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888458', 'tblTempUsageDetail_20' ) start [2025-04-12 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888458', 'tblTempUsageDetail_20' ) end [2025-04-12 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:20:23] Production.INFO: ==10782== Releasing lock... [2025-04-12 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:20:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:21:05 [end_date_ymd] => 2025-04-12 02:21:05 [RateCDR] => 1 ) [2025-04-12 02:21: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-04-11 23:21:05' and `end` < '2025-04-12 02:21: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-04-12 02:21:17] Production.INFO: count ==333 [2025-04-12 02:21:17] Production.ERROR: pbx CDR StartTime 2025-04-11 23:21:05 - End Time 2025-04-12 02:21:05 [2025-04-12 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888463', 'tblTempUsageDetail_20' ) start [2025-04-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888463', 'tblTempUsageDetail_20' ) end [2025-04-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888463', 'tblTempVendorCDR_20' ) start [2025-04-12 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888463', 'tblTempVendorCDR_20' ) end [2025-04-12 02:21:17] Production.INFO: ProcessCDR(1,14888463,1,1,2) [2025-04-12 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888463', 'tblTempUsageDetail_20' ) start [2025-04-12 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888463', 'tblTempUsageDetail_20' ) end [2025-04-12 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:21:21] Production.INFO: ==10854== Releasing lock... [2025-04-12 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:22:05 [end_date_ymd] => 2025-04-12 02:22:05 [RateCDR] => 1 ) [2025-04-12 02:22: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-04-11 23:22:05' and `end` < '2025-04-12 02:22: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-04-12 02:22:18] Production.INFO: count ==333 [2025-04-12 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:22:05 - End Time 2025-04-12 02:22:05 [2025-04-12 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888468', 'tblTempUsageDetail_20' ) start [2025-04-12 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888468', 'tblTempUsageDetail_20' ) end [2025-04-12 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888468', 'tblTempVendorCDR_20' ) start [2025-04-12 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888468', 'tblTempVendorCDR_20' ) end [2025-04-12 02:22:18] Production.INFO: ProcessCDR(1,14888468,1,1,2) [2025-04-12 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888468', 'tblTempUsageDetail_20' ) start [2025-04-12 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888468', 'tblTempUsageDetail_20' ) end [2025-04-12 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:22:21] Production.INFO: ==10924== Releasing lock... [2025-04-12 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:22:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:23:05 [end_date_ymd] => 2025-04-12 02:23:05 [RateCDR] => 1 ) [2025-04-12 02:23: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-04-11 23:23:05' and `end` < '2025-04-12 02:23: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-04-12 02:23:17] Production.INFO: count ==334 [2025-04-12 02:23:17] Production.ERROR: pbx CDR StartTime 2025-04-11 23:23:05 - End Time 2025-04-12 02:23:05 [2025-04-12 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888473', 'tblTempUsageDetail_20' ) start [2025-04-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888473', 'tblTempUsageDetail_20' ) end [2025-04-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888473', 'tblTempVendorCDR_20' ) start [2025-04-12 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888473', 'tblTempVendorCDR_20' ) end [2025-04-12 02:23:17] Production.INFO: ProcessCDR(1,14888473,1,1,2) [2025-04-12 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888473', 'tblTempUsageDetail_20' ) start [2025-04-12 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888473', 'tblTempUsageDetail_20' ) end [2025-04-12 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:23:21] Production.INFO: ==11004== Releasing lock... [2025-04-12 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:24:05 [end_date_ymd] => 2025-04-12 02:24:05 [RateCDR] => 1 ) [2025-04-12 02:24: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-04-11 23:24:05' and `end` < '2025-04-12 02:24: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-04-12 02:24:19] Production.INFO: count ==335 [2025-04-12 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:24:05 - End Time 2025-04-12 02:24:05 [2025-04-12 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888478', 'tblTempUsageDetail_20' ) start [2025-04-12 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888478', 'tblTempUsageDetail_20' ) end [2025-04-12 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888478', 'tblTempVendorCDR_20' ) start [2025-04-12 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888478', 'tblTempVendorCDR_20' ) end [2025-04-12 02:24:19] Production.INFO: ProcessCDR(1,14888478,1,1,2) [2025-04-12 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888478', 'tblTempUsageDetail_20' ) start [2025-04-12 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888478', 'tblTempUsageDetail_20' ) end [2025-04-12 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:24:24] Production.INFO: ==11080== Releasing lock... [2025-04-12 02:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:24:24] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:25:05 [end_date_ymd] => 2025-04-12 02:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-11 23:25:05' and `end` < '2025-04-12 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-04-12 02:25:18] Production.INFO: count ==335 [2025-04-12 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:25:05 - End Time 2025-04-12 02:25:05 [2025-04-12 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888483', 'tblTempUsageDetail_20' ) start [2025-04-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888483', 'tblTempUsageDetail_20' ) end [2025-04-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888483', 'tblTempVendorCDR_20' ) start [2025-04-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888483', 'tblTempVendorCDR_20' ) end [2025-04-12 02:25:18] Production.INFO: ProcessCDR(1,14888483,1,1,2) [2025-04-12 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888483', 'tblTempUsageDetail_20' ) start [2025-04-12 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888483', 'tblTempUsageDetail_20' ) end [2025-04-12 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:25:21] Production.INFO: ==11153== Releasing lock... [2025-04-12 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:25:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:26:06 [end_date_ymd] => 2025-04-12 02:26:06 [RateCDR] => 1 ) [2025-04-12 02:26: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-04-11 23:26:06' and `end` < '2025-04-12 02:26: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-04-12 02:26:19] Production.INFO: count ==335 [2025-04-12 02:26:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:26:06 - End Time 2025-04-12 02:26:06 [2025-04-12 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888488', 'tblTempUsageDetail_20' ) start [2025-04-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888488', 'tblTempUsageDetail_20' ) end [2025-04-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888488', 'tblTempVendorCDR_20' ) start [2025-04-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888488', 'tblTempVendorCDR_20' ) end [2025-04-12 02:26:19] Production.INFO: ProcessCDR(1,14888488,1,1,2) [2025-04-12 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888488', 'tblTempUsageDetail_20' ) start [2025-04-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888488', 'tblTempUsageDetail_20' ) end [2025-04-12 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:26:22] Production.INFO: ==11262== Releasing lock... [2025-04-12 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:26:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:27:05 [end_date_ymd] => 2025-04-12 02:27:05 [RateCDR] => 1 ) [2025-04-12 02:27: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-04-11 23:27:05' and `end` < '2025-04-12 02:27: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-04-12 02:27:18] Production.INFO: count ==337 [2025-04-12 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:27:05 - End Time 2025-04-12 02:27:05 [2025-04-12 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888493', 'tblTempUsageDetail_20' ) start [2025-04-12 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888493', 'tblTempUsageDetail_20' ) end [2025-04-12 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888493', 'tblTempVendorCDR_20' ) start [2025-04-12 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888493', 'tblTempVendorCDR_20' ) end [2025-04-12 02:27:18] Production.INFO: ProcessCDR(1,14888493,1,1,2) [2025-04-12 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888493', 'tblTempUsageDetail_20' ) start [2025-04-12 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888493', 'tblTempUsageDetail_20' ) end [2025-04-12 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:27:22] Production.INFO: ==11332== Releasing lock... [2025-04-12 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:28:06 [end_date_ymd] => 2025-04-12 02:28:06 [RateCDR] => 1 ) [2025-04-12 02:28: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-04-11 23:28:06' and `end` < '2025-04-12 02:28: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-04-12 02:28:18] Production.INFO: count ==337 [2025-04-12 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:28:06 - End Time 2025-04-12 02:28:06 [2025-04-12 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888498', 'tblTempUsageDetail_20' ) start [2025-04-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888498', 'tblTempUsageDetail_20' ) end [2025-04-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888498', 'tblTempVendorCDR_20' ) start [2025-04-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888498', 'tblTempVendorCDR_20' ) end [2025-04-12 02:28:18] Production.INFO: ProcessCDR(1,14888498,1,1,2) [2025-04-12 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888498', 'tblTempUsageDetail_20' ) start [2025-04-12 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888498', 'tblTempUsageDetail_20' ) end [2025-04-12 02:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:28:24] Production.INFO: ==11405== Releasing lock... [2025-04-12 02:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:28:24] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:29:05 [end_date_ymd] => 2025-04-12 02:29:05 [RateCDR] => 1 ) [2025-04-12 02:29: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-04-11 23:29:05' and `end` < '2025-04-12 02:29: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-04-12 02:29:17] Production.INFO: count ==335 [2025-04-12 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:29:05 - End Time 2025-04-12 02:29:05 [2025-04-12 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888503', 'tblTempUsageDetail_20' ) start [2025-04-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888503', 'tblTempUsageDetail_20' ) end [2025-04-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888503', 'tblTempVendorCDR_20' ) start [2025-04-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888503', 'tblTempVendorCDR_20' ) end [2025-04-12 02:29:18] Production.INFO: ProcessCDR(1,14888503,1,1,2) [2025-04-12 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888503', 'tblTempUsageDetail_20' ) start [2025-04-12 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888503', 'tblTempUsageDetail_20' ) end [2025-04-12 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:29:21] Production.INFO: ==11480== Releasing lock... [2025-04-12 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:30:06 [end_date_ymd] => 2025-04-12 02:30:06 [RateCDR] => 1 ) [2025-04-12 02:30: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-04-11 23:30:06' and `end` < '2025-04-12 02:30: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-04-12 02:30:19] Production.INFO: count ==346 [2025-04-12 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:30:06 - End Time 2025-04-12 02:30:06 [2025-04-12 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888509', 'tblTempUsageDetail_20' ) start [2025-04-12 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888509', 'tblTempUsageDetail_20' ) end [2025-04-12 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888509', 'tblTempVendorCDR_20' ) start [2025-04-12 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888509', 'tblTempVendorCDR_20' ) end [2025-04-12 02:30:19] Production.INFO: ProcessCDR(1,14888509,1,1,2) [2025-04-12 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888509', 'tblTempUsageDetail_20' ) start [2025-04-12 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888509', 'tblTempUsageDetail_20' ) end [2025-04-12 02:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:30:25] Production.INFO: ==11555== Releasing lock... [2025-04-12 02:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:30:25] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:31:05 [end_date_ymd] => 2025-04-12 02:31:05 [RateCDR] => 1 ) [2025-04-12 02:31: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-04-11 23:31:05' and `end` < '2025-04-12 02:31: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-04-12 02:31:17] Production.INFO: count ==345 [2025-04-12 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-11 23:31:05 - End Time 2025-04-12 02:31:05 [2025-04-12 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888514', 'tblTempUsageDetail_20' ) start [2025-04-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888514', 'tblTempUsageDetail_20' ) end [2025-04-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888514', 'tblTempVendorCDR_20' ) start [2025-04-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888514', 'tblTempVendorCDR_20' ) end [2025-04-12 02:31:18] Production.INFO: ProcessCDR(1,14888514,1,1,2) [2025-04-12 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888514', 'tblTempUsageDetail_20' ) start [2025-04-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888514', 'tblTempUsageDetail_20' ) end [2025-04-12 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:31:21] Production.INFO: ==11628== Releasing lock... [2025-04-12 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:32:05 [end_date_ymd] => 2025-04-12 02:32:05 [RateCDR] => 1 ) [2025-04-12 02:32: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-04-11 23:32:05' and `end` < '2025-04-12 02:32: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-04-12 02:32:17] Production.INFO: count ==343 [2025-04-12 02:32:17] Production.ERROR: pbx CDR StartTime 2025-04-11 23:32:05 - End Time 2025-04-12 02:32:05 [2025-04-12 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888519', 'tblTempUsageDetail_20' ) start [2025-04-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888519', 'tblTempUsageDetail_20' ) end [2025-04-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888519', 'tblTempVendorCDR_20' ) start [2025-04-12 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888519', 'tblTempVendorCDR_20' ) end [2025-04-12 02:32:17] Production.INFO: ProcessCDR(1,14888519,1,1,2) [2025-04-12 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888519', 'tblTempUsageDetail_20' ) start [2025-04-12 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888519', 'tblTempUsageDetail_20' ) end [2025-04-12 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:32:21] Production.INFO: ==11701== Releasing lock... [2025-04-12 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:32:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:33:05 [end_date_ymd] => 2025-04-12 02:33:05 [RateCDR] => 1 ) [2025-04-12 02:33: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-04-11 23:33:05' and `end` < '2025-04-12 02:33: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-04-12 02:33:18] Production.INFO: count ==341 [2025-04-12 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:33:05 - End Time 2025-04-12 02:33:05 [2025-04-12 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888524', 'tblTempUsageDetail_20' ) start [2025-04-12 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888524', 'tblTempUsageDetail_20' ) end [2025-04-12 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888524', 'tblTempVendorCDR_20' ) start [2025-04-12 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888524', 'tblTempVendorCDR_20' ) end [2025-04-12 02:33:18] Production.INFO: ProcessCDR(1,14888524,1,1,2) [2025-04-12 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888524', 'tblTempUsageDetail_20' ) start [2025-04-12 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888524', 'tblTempUsageDetail_20' ) end [2025-04-12 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:33:21] Production.INFO: ==11772== Releasing lock... [2025-04-12 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:33:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:34:05 [end_date_ymd] => 2025-04-12 02:34:05 [RateCDR] => 1 ) [2025-04-12 02:34: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-04-11 23:34:05' and `end` < '2025-04-12 02:34: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-04-12 02:34:18] Production.INFO: count ==339 [2025-04-12 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:34:05 - End Time 2025-04-12 02:34:05 [2025-04-12 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888529', 'tblTempUsageDetail_20' ) start [2025-04-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888529', 'tblTempUsageDetail_20' ) end [2025-04-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888529', 'tblTempVendorCDR_20' ) start [2025-04-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888529', 'tblTempVendorCDR_20' ) end [2025-04-12 02:34:18] Production.INFO: ProcessCDR(1,14888529,1,1,2) [2025-04-12 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888529', 'tblTempUsageDetail_20' ) start [2025-04-12 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888529', 'tblTempUsageDetail_20' ) end [2025-04-12 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:34:22] Production.INFO: ==11846== Releasing lock... [2025-04-12 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:34:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:35:06 [end_date_ymd] => 2025-04-12 02:35:06 [RateCDR] => 1 ) [2025-04-12 02:35: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-04-11 23:35:06' and `end` < '2025-04-12 02:35: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-04-12 02:35:19] Production.INFO: count ==338 [2025-04-12 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:35:06 - End Time 2025-04-12 02:35:06 [2025-04-12 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888534', 'tblTempUsageDetail_20' ) start [2025-04-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888534', 'tblTempUsageDetail_20' ) end [2025-04-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888534', 'tblTempVendorCDR_20' ) start [2025-04-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888534', 'tblTempVendorCDR_20' ) end [2025-04-12 02:35:19] Production.INFO: ProcessCDR(1,14888534,1,1,2) [2025-04-12 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888534', 'tblTempUsageDetail_20' ) start [2025-04-12 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888534', 'tblTempUsageDetail_20' ) end [2025-04-12 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:35:23] Production.INFO: ==11920== Releasing lock... [2025-04-12 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:35:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:36:06 [end_date_ymd] => 2025-04-12 02:36:06 [RateCDR] => 1 ) [2025-04-12 02:36: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-04-11 23:36:06' and `end` < '2025-04-12 02:36: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-04-12 02:36:19] Production.INFO: count ==339 [2025-04-12 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:36:06 - End Time 2025-04-12 02:36:06 [2025-04-12 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888539', 'tblTempUsageDetail_20' ) start [2025-04-12 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888539', 'tblTempUsageDetail_20' ) end [2025-04-12 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888539', 'tblTempVendorCDR_20' ) start [2025-04-12 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888539', 'tblTempVendorCDR_20' ) end [2025-04-12 02:36:19] Production.INFO: ProcessCDR(1,14888539,1,1,2) [2025-04-12 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888539', 'tblTempUsageDetail_20' ) start [2025-04-12 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888539', 'tblTempUsageDetail_20' ) end [2025-04-12 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:36:24] Production.INFO: ==11989== Releasing lock... [2025-04-12 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:36:24] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:37:06 [end_date_ymd] => 2025-04-12 02:37:06 [RateCDR] => 1 ) [2025-04-12 02:37: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-04-11 23:37:06' and `end` < '2025-04-12 02:37: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-04-12 02:37:19] Production.INFO: count ==339 [2025-04-12 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:37:06 - End Time 2025-04-12 02:37:06 [2025-04-12 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888544', 'tblTempUsageDetail_20' ) start [2025-04-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888544', 'tblTempUsageDetail_20' ) end [2025-04-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888544', 'tblTempVendorCDR_20' ) start [2025-04-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888544', 'tblTempVendorCDR_20' ) end [2025-04-12 02:37:19] Production.INFO: ProcessCDR(1,14888544,1,1,2) [2025-04-12 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888544', 'tblTempUsageDetail_20' ) start [2025-04-12 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888544', 'tblTempUsageDetail_20' ) end [2025-04-12 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:37:23] Production.INFO: ==12069== Releasing lock... [2025-04-12 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:37:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:38:05 [end_date_ymd] => 2025-04-12 02:38:05 [RateCDR] => 1 ) [2025-04-12 02:38: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-04-11 23:38:05' and `end` < '2025-04-12 02:38: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-04-12 02:38:18] Production.INFO: count ==336 [2025-04-12 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:38:05 - End Time 2025-04-12 02:38:05 [2025-04-12 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888549', 'tblTempUsageDetail_20' ) start [2025-04-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888549', 'tblTempUsageDetail_20' ) end [2025-04-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888549', 'tblTempVendorCDR_20' ) start [2025-04-12 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888549', 'tblTempVendorCDR_20' ) end [2025-04-12 02:38:18] Production.INFO: ProcessCDR(1,14888549,1,1,2) [2025-04-12 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888549', 'tblTempUsageDetail_20' ) start [2025-04-12 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888549', 'tblTempUsageDetail_20' ) end [2025-04-12 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:38:22] Production.INFO: ==12141== Releasing lock... [2025-04-12 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:38:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:39:05 [end_date_ymd] => 2025-04-12 02:39:05 [RateCDR] => 1 ) [2025-04-12 02:39: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-04-11 23:39:05' and `end` < '2025-04-12 02:39: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-04-12 02:39:18] Production.INFO: count ==334 [2025-04-12 02:39:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:39:05 - End Time 2025-04-12 02:39:05 [2025-04-12 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888554', 'tblTempUsageDetail_20' ) start [2025-04-12 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888554', 'tblTempUsageDetail_20' ) end [2025-04-12 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888554', 'tblTempVendorCDR_20' ) start [2025-04-12 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888554', 'tblTempVendorCDR_20' ) end [2025-04-12 02:39:19] Production.INFO: ProcessCDR(1,14888554,1,1,2) [2025-04-12 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888554', 'tblTempUsageDetail_20' ) start [2025-04-12 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888554', 'tblTempUsageDetail_20' ) end [2025-04-12 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:39:22] Production.INFO: ==12214== Releasing lock... [2025-04-12 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:39:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:40:07 [end_date_ymd] => 2025-04-12 02:40:07 [RateCDR] => 1 ) [2025-04-12 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 23:40:07' and `end` < '2025-04-12 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 02:40:19] Production.INFO: count ==343 [2025-04-12 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:40:07 - End Time 2025-04-12 02:40:07 [2025-04-12 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888560', 'tblTempUsageDetail_20' ) start [2025-04-12 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888560', 'tblTempUsageDetail_20' ) end [2025-04-12 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888560', 'tblTempVendorCDR_20' ) start [2025-04-12 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888560', 'tblTempVendorCDR_20' ) end [2025-04-12 02:40:20] Production.INFO: ProcessCDR(1,14888560,1,1,2) [2025-04-12 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888560', 'tblTempUsageDetail_20' ) start [2025-04-12 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888560', 'tblTempUsageDetail_20' ) end [2025-04-12 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:40:23] Production.INFO: ==12289== Releasing lock... [2025-04-12 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:40:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:41:05 [end_date_ymd] => 2025-04-12 02:41:05 [RateCDR] => 1 ) [2025-04-12 02:41: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-04-11 23:41:05' and `end` < '2025-04-12 02:41: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-04-12 02:41:18] Production.INFO: count ==355 [2025-04-12 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:41:05 - End Time 2025-04-12 02:41:05 [2025-04-12 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888565', 'tblTempUsageDetail_20' ) start [2025-04-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888565', 'tblTempUsageDetail_20' ) end [2025-04-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888565', 'tblTempVendorCDR_20' ) start [2025-04-12 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888565', 'tblTempVendorCDR_20' ) end [2025-04-12 02:41:18] Production.INFO: ProcessCDR(1,14888565,1,1,2) [2025-04-12 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888565', 'tblTempUsageDetail_20' ) start [2025-04-12 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888565', 'tblTempUsageDetail_20' ) end [2025-04-12 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:41:22] Production.INFO: ==12404== Releasing lock... [2025-04-12 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:42:06 [end_date_ymd] => 2025-04-12 02:42:06 [RateCDR] => 1 ) [2025-04-12 02:42: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-04-11 23:42:06' and `end` < '2025-04-12 02:42: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-04-12 02:42:19] Production.INFO: count ==355 [2025-04-12 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:42:06 - End Time 2025-04-12 02:42:06 [2025-04-12 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888570', 'tblTempUsageDetail_20' ) start [2025-04-12 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888570', 'tblTempUsageDetail_20' ) end [2025-04-12 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888570', 'tblTempVendorCDR_20' ) start [2025-04-12 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888570', 'tblTempVendorCDR_20' ) end [2025-04-12 02:42:19] Production.INFO: ProcessCDR(1,14888570,1,1,2) [2025-04-12 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888570', 'tblTempUsageDetail_20' ) start [2025-04-12 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888570', 'tblTempUsageDetail_20' ) end [2025-04-12 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:42:23] Production.INFO: ==12479== Releasing lock... [2025-04-12 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:42:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:43:06 [end_date_ymd] => 2025-04-12 02:43:06 [RateCDR] => 1 ) [2025-04-12 02:43: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-04-11 23:43:06' and `end` < '2025-04-12 02:43: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-04-12 02:43:18] Production.INFO: count ==355 [2025-04-12 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:43:06 - End Time 2025-04-12 02:43:06 [2025-04-12 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888575', 'tblTempUsageDetail_20' ) start [2025-04-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888575', 'tblTempUsageDetail_20' ) end [2025-04-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888575', 'tblTempVendorCDR_20' ) start [2025-04-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888575', 'tblTempVendorCDR_20' ) end [2025-04-12 02:43:18] Production.INFO: ProcessCDR(1,14888575,1,1,2) [2025-04-12 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888575', 'tblTempUsageDetail_20' ) start [2025-04-12 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888575', 'tblTempUsageDetail_20' ) end [2025-04-12 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:43:22] Production.INFO: ==12555== Releasing lock... [2025-04-12 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:44:06 [end_date_ymd] => 2025-04-12 02:44:06 [RateCDR] => 1 ) [2025-04-12 02:44: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-04-11 23:44:06' and `end` < '2025-04-12 02:44: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-04-12 02:44:19] Production.INFO: count ==355 [2025-04-12 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:44:06 - End Time 2025-04-12 02:44:06 [2025-04-12 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888580', 'tblTempUsageDetail_20' ) start [2025-04-12 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888580', 'tblTempUsageDetail_20' ) end [2025-04-12 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888580', 'tblTempVendorCDR_20' ) start [2025-04-12 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888580', 'tblTempVendorCDR_20' ) end [2025-04-12 02:44:19] Production.INFO: ProcessCDR(1,14888580,1,1,2) [2025-04-12 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888580', 'tblTempUsageDetail_20' ) start [2025-04-12 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888580', 'tblTempUsageDetail_20' ) end [2025-04-12 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:44:23] Production.INFO: ==12627== Releasing lock... [2025-04-12 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:44:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:45:05 [end_date_ymd] => 2025-04-12 02:45:05 [RateCDR] => 1 ) [2025-04-12 02:45: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-04-11 23:45:05' and `end` < '2025-04-12 02:45: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-04-12 02:45:18] Production.INFO: count ==354 [2025-04-12 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:45:05 - End Time 2025-04-12 02:45:05 [2025-04-12 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888585', 'tblTempUsageDetail_20' ) start [2025-04-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888585', 'tblTempUsageDetail_20' ) end [2025-04-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888585', 'tblTempVendorCDR_20' ) start [2025-04-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888585', 'tblTempVendorCDR_20' ) end [2025-04-12 02:45:18] Production.INFO: ProcessCDR(1,14888585,1,1,2) [2025-04-12 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888585', 'tblTempUsageDetail_20' ) start [2025-04-12 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888585', 'tblTempUsageDetail_20' ) end [2025-04-12 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:45:22] Production.INFO: ==12702== Releasing lock... [2025-04-12 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:46:06 [end_date_ymd] => 2025-04-12 02:46:06 [RateCDR] => 1 ) [2025-04-12 02:46: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-04-11 23:46:06' and `end` < '2025-04-12 02:46: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-04-12 02:46:18] Production.INFO: count ==353 [2025-04-12 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:46:06 - End Time 2025-04-12 02:46:06 [2025-04-12 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888590', 'tblTempUsageDetail_20' ) start [2025-04-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888590', 'tblTempUsageDetail_20' ) end [2025-04-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888590', 'tblTempVendorCDR_20' ) start [2025-04-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888590', 'tblTempVendorCDR_20' ) end [2025-04-12 02:46:18] Production.INFO: ProcessCDR(1,14888590,1,1,2) [2025-04-12 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888590', 'tblTempUsageDetail_20' ) start [2025-04-12 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888590', 'tblTempUsageDetail_20' ) end [2025-04-12 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:46:22] Production.INFO: ==12773== Releasing lock... [2025-04-12 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:47:05 [end_date_ymd] => 2025-04-12 02:47:05 [RateCDR] => 1 ) [2025-04-12 02:47: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-04-11 23:47:05' and `end` < '2025-04-12 02:47: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-04-12 02:47:18] Production.INFO: count ==353 [2025-04-12 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:47:05 - End Time 2025-04-12 02:47:05 [2025-04-12 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888595', 'tblTempUsageDetail_20' ) start [2025-04-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888595', 'tblTempUsageDetail_20' ) end [2025-04-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888595', 'tblTempVendorCDR_20' ) start [2025-04-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888595', 'tblTempVendorCDR_20' ) end [2025-04-12 02:47:18] Production.INFO: ProcessCDR(1,14888595,1,1,2) [2025-04-12 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888595', 'tblTempUsageDetail_20' ) start [2025-04-12 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888595', 'tblTempUsageDetail_20' ) end [2025-04-12 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:47:22] Production.INFO: ==12843== Releasing lock... [2025-04-12 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:48:06 [end_date_ymd] => 2025-04-12 02:48:06 [RateCDR] => 1 ) [2025-04-12 02:48: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-04-11 23:48:06' and `end` < '2025-04-12 02:48: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-04-12 02:48:19] Production.INFO: count ==353 [2025-04-12 02:48:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:48:06 - End Time 2025-04-12 02:48:06 [2025-04-12 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888600', 'tblTempUsageDetail_20' ) start [2025-04-12 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888600', 'tblTempUsageDetail_20' ) end [2025-04-12 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888600', 'tblTempVendorCDR_20' ) start [2025-04-12 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888600', 'tblTempVendorCDR_20' ) end [2025-04-12 02:48:19] Production.INFO: ProcessCDR(1,14888600,1,1,2) [2025-04-12 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888600', 'tblTempUsageDetail_20' ) start [2025-04-12 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888600', 'tblTempUsageDetail_20' ) end [2025-04-12 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:48:23] Production.INFO: ==12920== Releasing lock... [2025-04-12 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:49:05 [end_date_ymd] => 2025-04-12 02:49:05 [RateCDR] => 1 ) [2025-04-12 02:49: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-04-11 23:49:05' and `end` < '2025-04-12 02:49: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-04-12 02:49:18] Production.INFO: count ==353 [2025-04-12 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:49:05 - End Time 2025-04-12 02:49:05 [2025-04-12 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888605', 'tblTempUsageDetail_20' ) start [2025-04-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888605', 'tblTempUsageDetail_20' ) end [2025-04-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888605', 'tblTempVendorCDR_20' ) start [2025-04-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888605', 'tblTempVendorCDR_20' ) end [2025-04-12 02:49:18] Production.INFO: ProcessCDR(1,14888605,1,1,2) [2025-04-12 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888605', 'tblTempUsageDetail_20' ) start [2025-04-12 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888605', 'tblTempUsageDetail_20' ) end [2025-04-12 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:49:22] Production.INFO: ==12989== Releasing lock... [2025-04-12 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:50:07 [end_date_ymd] => 2025-04-12 02:50:07 [RateCDR] => 1 ) [2025-04-12 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-11 23:50:07' and `end` < '2025-04-12 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 02:50:19] Production.INFO: count ==360 [2025-04-12 02:50:20] Production.ERROR: pbx CDR StartTime 2025-04-11 23:50:07 - End Time 2025-04-12 02:50:07 [2025-04-12 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888611', 'tblTempUsageDetail_20' ) start [2025-04-12 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888611', 'tblTempUsageDetail_20' ) end [2025-04-12 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888611', 'tblTempVendorCDR_20' ) start [2025-04-12 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888611', 'tblTempVendorCDR_20' ) end [2025-04-12 02:50:20] Production.INFO: ProcessCDR(1,14888611,1,1,2) [2025-04-12 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888611', 'tblTempUsageDetail_20' ) start [2025-04-12 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888611', 'tblTempUsageDetail_20' ) end [2025-04-12 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:50:23] Production.INFO: ==13069== Releasing lock... [2025-04-12 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:51:05 [end_date_ymd] => 2025-04-12 02:51:05 [RateCDR] => 1 ) [2025-04-12 02:51: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-04-11 23:51:05' and `end` < '2025-04-12 02:51: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-04-12 02:51:18] Production.INFO: count ==360 [2025-04-12 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:51:05 - End Time 2025-04-12 02:51:05 [2025-04-12 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888616', 'tblTempUsageDetail_20' ) start [2025-04-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888616', 'tblTempUsageDetail_20' ) end [2025-04-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888616', 'tblTempVendorCDR_20' ) start [2025-04-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888616', 'tblTempVendorCDR_20' ) end [2025-04-12 02:51:18] Production.INFO: ProcessCDR(1,14888616,1,1,2) [2025-04-12 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888616', 'tblTempUsageDetail_20' ) start [2025-04-12 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888616', 'tblTempUsageDetail_20' ) end [2025-04-12 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:51:22] Production.INFO: ==13142== Releasing lock... [2025-04-12 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:52:06 [end_date_ymd] => 2025-04-12 02:52:06 [RateCDR] => 1 ) [2025-04-12 02:52: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-04-11 23:52:06' and `end` < '2025-04-12 02:52: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-04-12 02:52:19] Production.INFO: count ==360 [2025-04-12 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:52:06 - End Time 2025-04-12 02:52:06 [2025-04-12 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888621', 'tblTempUsageDetail_20' ) start [2025-04-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888621', 'tblTempUsageDetail_20' ) end [2025-04-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888621', 'tblTempVendorCDR_20' ) start [2025-04-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888621', 'tblTempVendorCDR_20' ) end [2025-04-12 02:52:19] Production.INFO: ProcessCDR(1,14888621,1,1,2) [2025-04-12 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888621', 'tblTempUsageDetail_20' ) start [2025-04-12 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888621', 'tblTempUsageDetail_20' ) end [2025-04-12 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:52:23] Production.INFO: ==13214== Releasing lock... [2025-04-12 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:53:05 [end_date_ymd] => 2025-04-12 02:53:05 [RateCDR] => 1 ) [2025-04-12 02:53: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-04-11 23:53:05' and `end` < '2025-04-12 02:53: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-04-12 02:53:18] Production.INFO: count ==360 [2025-04-12 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:53:05 - End Time 2025-04-12 02:53:05 [2025-04-12 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888626', 'tblTempUsageDetail_20' ) start [2025-04-12 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888626', 'tblTempUsageDetail_20' ) end [2025-04-12 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888626', 'tblTempVendorCDR_20' ) start [2025-04-12 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888626', 'tblTempVendorCDR_20' ) end [2025-04-12 02:53:18] Production.INFO: ProcessCDR(1,14888626,1,1,2) [2025-04-12 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888626', 'tblTempUsageDetail_20' ) start [2025-04-12 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888626', 'tblTempUsageDetail_20' ) end [2025-04-12 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:53:22] Production.INFO: ==13286== Releasing lock... [2025-04-12 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:54:06 [end_date_ymd] => 2025-04-12 02:54:06 [RateCDR] => 1 ) [2025-04-12 02:54: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-04-11 23:54:06' and `end` < '2025-04-12 02:54: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-04-12 02:54:19] Production.INFO: count ==361 [2025-04-12 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:54:06 - End Time 2025-04-12 02:54:06 [2025-04-12 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888631', 'tblTempUsageDetail_20' ) start [2025-04-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888631', 'tblTempUsageDetail_20' ) end [2025-04-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888631', 'tblTempVendorCDR_20' ) start [2025-04-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888631', 'tblTempVendorCDR_20' ) end [2025-04-12 02:54:19] Production.INFO: ProcessCDR(1,14888631,1,1,2) [2025-04-12 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888631', 'tblTempUsageDetail_20' ) start [2025-04-12 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888631', 'tblTempUsageDetail_20' ) end [2025-04-12 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:54:23] Production.INFO: ==13358== Releasing lock... [2025-04-12 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:54:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:55:06 [end_date_ymd] => 2025-04-12 02:55:06 [RateCDR] => 1 ) [2025-04-12 02:55: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-04-11 23:55:06' and `end` < '2025-04-12 02:55: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-04-12 02:55:19] Production.INFO: count ==361 [2025-04-12 02:55:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:55:06 - End Time 2025-04-12 02:55:06 [2025-04-12 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888636', 'tblTempUsageDetail_20' ) start [2025-04-12 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888636', 'tblTempUsageDetail_20' ) end [2025-04-12 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888636', 'tblTempVendorCDR_20' ) start [2025-04-12 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888636', 'tblTempVendorCDR_20' ) end [2025-04-12 02:55:19] Production.INFO: ProcessCDR(1,14888636,1,1,2) [2025-04-12 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888636', 'tblTempUsageDetail_20' ) start [2025-04-12 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888636', 'tblTempUsageDetail_20' ) end [2025-04-12 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:55:23] Production.INFO: ==13430== Releasing lock... [2025-04-12 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:55:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:56:05 [end_date_ymd] => 2025-04-12 02:56:05 [RateCDR] => 1 ) [2025-04-12 02:56: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-04-11 23:56:05' and `end` < '2025-04-12 02:56: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-04-12 02:56:18] Production.INFO: count ==357 [2025-04-12 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:56:05 - End Time 2025-04-12 02:56:05 [2025-04-12 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888641', 'tblTempUsageDetail_20' ) start [2025-04-12 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888641', 'tblTempUsageDetail_20' ) end [2025-04-12 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888641', 'tblTempVendorCDR_20' ) start [2025-04-12 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888641', 'tblTempVendorCDR_20' ) end [2025-04-12 02:56:18] Production.INFO: ProcessCDR(1,14888641,1,1,2) [2025-04-12 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888641', 'tblTempUsageDetail_20' ) start [2025-04-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888641', 'tblTempUsageDetail_20' ) end [2025-04-12 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:56:22] Production.INFO: ==13506== Releasing lock... [2025-04-12 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:57:06 [end_date_ymd] => 2025-04-12 02:57:06 [RateCDR] => 1 ) [2025-04-12 02:57: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-04-11 23:57:06' and `end` < '2025-04-12 02:57: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-04-12 02:57:19] Production.INFO: count ==355 [2025-04-12 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-11 23:57:06 - End Time 2025-04-12 02:57:06 [2025-04-12 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888646', 'tblTempUsageDetail_20' ) start [2025-04-12 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888646', 'tblTempUsageDetail_20' ) end [2025-04-12 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888646', 'tblTempVendorCDR_20' ) start [2025-04-12 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888646', 'tblTempVendorCDR_20' ) end [2025-04-12 02:57:19] Production.INFO: ProcessCDR(1,14888646,1,1,2) [2025-04-12 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888646', 'tblTempUsageDetail_20' ) start [2025-04-12 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888646', 'tblTempUsageDetail_20' ) end [2025-04-12 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:57:22] Production.INFO: ==13616== Releasing lock... [2025-04-12 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:58:05 [end_date_ymd] => 2025-04-12 02:58:05 [RateCDR] => 1 ) [2025-04-12 02:58: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-04-11 23:58:05' and `end` < '2025-04-12 02:58: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-04-12 02:58:18] Production.INFO: count ==361 [2025-04-12 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:58:05 - End Time 2025-04-12 02:58:05 [2025-04-12 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888651', 'tblTempUsageDetail_20' ) start [2025-04-12 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888651', 'tblTempUsageDetail_20' ) end [2025-04-12 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888651', 'tblTempVendorCDR_20' ) start [2025-04-12 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888651', 'tblTempVendorCDR_20' ) end [2025-04-12 02:58:18] Production.INFO: ProcessCDR(1,14888651,1,1,2) [2025-04-12 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888651', 'tblTempUsageDetail_20' ) start [2025-04-12 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888651', 'tblTempUsageDetail_20' ) end [2025-04-12 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:58:22] Production.INFO: ==13691== Releasing lock... [2025-04-12 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-11 23:59:05 [end_date_ymd] => 2025-04-12 02:59:05 [RateCDR] => 1 ) [2025-04-12 02:59: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-04-11 23:59:05' and `end` < '2025-04-12 02:59: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-04-12 02:59:18] Production.INFO: count ==361 [2025-04-12 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-11 23:59:05 - End Time 2025-04-12 02:59:05 [2025-04-12 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888656', 'tblTempUsageDetail_20' ) start [2025-04-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888656', 'tblTempUsageDetail_20' ) end [2025-04-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888656', 'tblTempVendorCDR_20' ) start [2025-04-12 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888656', 'tblTempVendorCDR_20' ) end [2025-04-12 02:59:18] Production.INFO: ProcessCDR(1,14888656,1,1,2) [2025-04-12 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888656', 'tblTempUsageDetail_20' ) start [2025-04-12 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888656', 'tblTempUsageDetail_20' ) end [2025-04-12 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 02:59:22] Production.INFO: ==13762== Releasing lock... [2025-04-12 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 02:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:00:06 [end_date_ymd] => 2025-04-12 03:00:06 [RateCDR] => 1 ) [2025-04-12 03:00: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-04-12 00:00:06' and `end` < '2025-04-12 03:00: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-04-12 03:00:18] Production.INFO: count ==371 [2025-04-12 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:00:06 - End Time 2025-04-12 03:00:06 [2025-04-12 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888661', 'tblTempUsageDetail_20' ) start [2025-04-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888661', 'tblTempUsageDetail_20' ) end [2025-04-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888661', 'tblTempVendorCDR_20' ) start [2025-04-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888661', 'tblTempVendorCDR_20' ) end [2025-04-12 03:00:18] Production.INFO: ProcessCDR(1,14888661,1,1,2) [2025-04-12 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888661', 'tblTempUsageDetail_20' ) start [2025-04-12 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888661', 'tblTempUsageDetail_20' ) end [2025-04-12 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:00:22] Production.INFO: ==13836== Releasing lock... [2025-04-12 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:01:06 [end_date_ymd] => 2025-04-12 03:01:06 [RateCDR] => 1 ) [2025-04-12 03:01: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-04-12 00:01:06' and `end` < '2025-04-12 03:01: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-04-12 03:01:18] Production.INFO: count ==371 [2025-04-12 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:01:06 - End Time 2025-04-12 03:01:06 [2025-04-12 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888667', 'tblTempUsageDetail_20' ) start [2025-04-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888667', 'tblTempUsageDetail_20' ) end [2025-04-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888667', 'tblTempVendorCDR_20' ) start [2025-04-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888667', 'tblTempVendorCDR_20' ) end [2025-04-12 03:01:18] Production.INFO: ProcessCDR(1,14888667,1,1,2) [2025-04-12 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888667', 'tblTempUsageDetail_20' ) start [2025-04-12 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888667', 'tblTempUsageDetail_20' ) end [2025-04-12 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:01:22] Production.INFO: ==13921== Releasing lock... [2025-04-12 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:02:05 [end_date_ymd] => 2025-04-12 03:02:05 [RateCDR] => 1 ) [2025-04-12 03:02: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-04-12 00:02:05' and `end` < '2025-04-12 03:02: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-04-12 03:02:18] Production.INFO: count ==370 [2025-04-12 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:02:05 - End Time 2025-04-12 03:02:05 [2025-04-12 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888672', 'tblTempUsageDetail_20' ) start [2025-04-12 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888672', 'tblTempUsageDetail_20' ) end [2025-04-12 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888672', 'tblTempVendorCDR_20' ) start [2025-04-12 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888672', 'tblTempVendorCDR_20' ) end [2025-04-12 03:02:18] Production.INFO: ProcessCDR(1,14888672,1,1,2) [2025-04-12 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888672', 'tblTempUsageDetail_20' ) start [2025-04-12 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888672', 'tblTempUsageDetail_20' ) end [2025-04-12 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:02:23] Production.INFO: ==14070== Releasing lock... [2025-04-12 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:03:05 [end_date_ymd] => 2025-04-12 03:03:05 [RateCDR] => 1 ) [2025-04-12 03:03: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-04-12 00:03:05' and `end` < '2025-04-12 03:03: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-04-12 03:03:18] Production.INFO: count ==370 [2025-04-12 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:03:05 - End Time 2025-04-12 03:03:05 [2025-04-12 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888677', 'tblTempUsageDetail_20' ) start [2025-04-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888677', 'tblTempUsageDetail_20' ) end [2025-04-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888677', 'tblTempVendorCDR_20' ) start [2025-04-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888677', 'tblTempVendorCDR_20' ) end [2025-04-12 03:03:18] Production.INFO: ProcessCDR(1,14888677,1,1,2) [2025-04-12 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888677', 'tblTempUsageDetail_20' ) start [2025-04-12 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888677', 'tblTempUsageDetail_20' ) end [2025-04-12 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:03:21] Production.INFO: ==14141== Releasing lock... [2025-04-12 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:04:05 [end_date_ymd] => 2025-04-12 03:04:05 [RateCDR] => 1 ) [2025-04-12 03:04: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-04-12 00:04:05' and `end` < '2025-04-12 03:04: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-04-12 03:04:18] Production.INFO: count ==370 [2025-04-12 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:04:05 - End Time 2025-04-12 03:04:05 [2025-04-12 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888682', 'tblTempUsageDetail_20' ) start [2025-04-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888682', 'tblTempUsageDetail_20' ) end [2025-04-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888682', 'tblTempVendorCDR_20' ) start [2025-04-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888682', 'tblTempVendorCDR_20' ) end [2025-04-12 03:04:18] Production.INFO: ProcessCDR(1,14888682,1,1,2) [2025-04-12 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888682', 'tblTempUsageDetail_20' ) start [2025-04-12 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888682', 'tblTempUsageDetail_20' ) end [2025-04-12 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:04:22] Production.INFO: ==14214== Releasing lock... [2025-04-12 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:05:05 [end_date_ymd] => 2025-04-12 03:05:05 [RateCDR] => 1 ) [2025-04-12 03:05: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-04-12 00:05:05' and `end` < '2025-04-12 03:05: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-04-12 03:05:18] Production.INFO: count ==371 [2025-04-12 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:05:05 - End Time 2025-04-12 03:05:05 [2025-04-12 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888687', 'tblTempUsageDetail_20' ) start [2025-04-12 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888687', 'tblTempUsageDetail_20' ) end [2025-04-12 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888687', 'tblTempVendorCDR_20' ) start [2025-04-12 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888687', 'tblTempVendorCDR_20' ) end [2025-04-12 03:05:18] Production.INFO: ProcessCDR(1,14888687,1,1,2) [2025-04-12 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888687', 'tblTempUsageDetail_20' ) start [2025-04-12 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888687', 'tblTempUsageDetail_20' ) end [2025-04-12 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:05:24] Production.INFO: ==14284== Releasing lock... [2025-04-12 03:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:05:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:06:05 [end_date_ymd] => 2025-04-12 03:06:05 [RateCDR] => 1 ) [2025-04-12 03:06: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-04-12 00:06:05' and `end` < '2025-04-12 03:06: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-04-12 03:06:18] Production.INFO: count ==373 [2025-04-12 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:06:05 - End Time 2025-04-12 03:06:05 [2025-04-12 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888692', 'tblTempUsageDetail_20' ) start [2025-04-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888692', 'tblTempUsageDetail_20' ) end [2025-04-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888692', 'tblTempVendorCDR_20' ) start [2025-04-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888692', 'tblTempVendorCDR_20' ) end [2025-04-12 03:06:18] Production.INFO: ProcessCDR(1,14888692,1,1,2) [2025-04-12 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888692', 'tblTempUsageDetail_20' ) start [2025-04-12 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888692', 'tblTempUsageDetail_20' ) end [2025-04-12 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:06:23] Production.INFO: ==14434== Releasing lock... [2025-04-12 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:07:05 [end_date_ymd] => 2025-04-12 03:07:05 [RateCDR] => 1 ) [2025-04-12 03:07: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-04-12 00:07:05' and `end` < '2025-04-12 03:07: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-04-12 03:07:18] Production.INFO: count ==373 [2025-04-12 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:07:05 - End Time 2025-04-12 03:07:05 [2025-04-12 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888697', 'tblTempUsageDetail_20' ) start [2025-04-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888697', 'tblTempUsageDetail_20' ) end [2025-04-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888697', 'tblTempVendorCDR_20' ) start [2025-04-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888697', 'tblTempVendorCDR_20' ) end [2025-04-12 03:07:18] Production.INFO: ProcessCDR(1,14888697,1,1,2) [2025-04-12 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888697', 'tblTempUsageDetail_20' ) start [2025-04-12 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888697', 'tblTempUsageDetail_20' ) end [2025-04-12 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:07:21] Production.INFO: ==14503== Releasing lock... [2025-04-12 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:08:05 [end_date_ymd] => 2025-04-12 03:08:05 [RateCDR] => 1 ) [2025-04-12 03:08: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-04-12 00:08:05' and `end` < '2025-04-12 03:08: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-04-12 03:08:18] Production.INFO: count ==373 [2025-04-12 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:08:05 - End Time 2025-04-12 03:08:05 [2025-04-12 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888702', 'tblTempUsageDetail_20' ) start [2025-04-12 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888702', 'tblTempUsageDetail_20' ) end [2025-04-12 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888702', 'tblTempVendorCDR_20' ) start [2025-04-12 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888702', 'tblTempVendorCDR_20' ) end [2025-04-12 03:08:18] Production.INFO: ProcessCDR(1,14888702,1,1,2) [2025-04-12 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888702', 'tblTempUsageDetail_20' ) start [2025-04-12 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888702', 'tblTempUsageDetail_20' ) end [2025-04-12 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:08:22] Production.INFO: ==14577== Releasing lock... [2025-04-12 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:09:05 [end_date_ymd] => 2025-04-12 03:09:05 [RateCDR] => 1 ) [2025-04-12 03:09: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-04-12 00:09:05' and `end` < '2025-04-12 03:09: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-04-12 03:09:18] Production.INFO: count ==373 [2025-04-12 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:09:05 - End Time 2025-04-12 03:09:05 [2025-04-12 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888707', 'tblTempUsageDetail_20' ) start [2025-04-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888707', 'tblTempUsageDetail_20' ) end [2025-04-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888707', 'tblTempVendorCDR_20' ) start [2025-04-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888707', 'tblTempVendorCDR_20' ) end [2025-04-12 03:09:18] Production.INFO: ProcessCDR(1,14888707,1,1,2) [2025-04-12 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888707', 'tblTempUsageDetail_20' ) start [2025-04-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888707', 'tblTempUsageDetail_20' ) end [2025-04-12 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:09:21] Production.INFO: ==14741== Releasing lock... [2025-04-12 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:10:05 [end_date_ymd] => 2025-04-12 03:10:05 [RateCDR] => 1 ) [2025-04-12 03:10: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-04-12 00:10:05' and `end` < '2025-04-12 03:10: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-04-12 03:10:18] Production.INFO: count ==365 [2025-04-12 03:10:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:10:05 - End Time 2025-04-12 03:10:05 [2025-04-12 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888712', 'tblTempUsageDetail_20' ) start [2025-04-12 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888712', 'tblTempUsageDetail_20' ) end [2025-04-12 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888712', 'tblTempVendorCDR_20' ) start [2025-04-12 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888712', 'tblTempVendorCDR_20' ) end [2025-04-12 03:10:18] Production.INFO: ProcessCDR(1,14888712,1,1,2) [2025-04-12 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888712', 'tblTempUsageDetail_20' ) start [2025-04-12 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888712', 'tblTempUsageDetail_20' ) end [2025-04-12 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:10:22] Production.INFO: ==14834== Releasing lock... [2025-04-12 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-12 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:11:05 [end_date_ymd] => 2025-04-12 03:11:05 [RateCDR] => 1 ) [2025-04-12 03:11: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-04-12 00:11:05' and `end` < '2025-04-12 03:11: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-04-12 03:11:18] Production.INFO: count ==345 [2025-04-12 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:11:05 - End Time 2025-04-12 03:11:05 [2025-04-12 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888718', 'tblTempUsageDetail_20' ) start [2025-04-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888718', 'tblTempUsageDetail_20' ) end [2025-04-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888718', 'tblTempVendorCDR_20' ) start [2025-04-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888718', 'tblTempVendorCDR_20' ) end [2025-04-12 03:11:18] Production.INFO: ProcessCDR(1,14888718,1,1,2) [2025-04-12 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888718', 'tblTempUsageDetail_20' ) start [2025-04-12 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888718', 'tblTempUsageDetail_20' ) end [2025-04-12 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:11:22] Production.INFO: ==14911== Releasing lock... [2025-04-12 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:11:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:12:05 [end_date_ymd] => 2025-04-12 03:12:05 [RateCDR] => 1 ) [2025-04-12 03:12: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-04-12 00:12:05' and `end` < '2025-04-12 03:12: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-04-12 03:12:18] Production.INFO: count ==345 [2025-04-12 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:12:05 - End Time 2025-04-12 03:12:05 [2025-04-12 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888723', 'tblTempUsageDetail_20' ) start [2025-04-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888723', 'tblTempUsageDetail_20' ) end [2025-04-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888723', 'tblTempVendorCDR_20' ) start [2025-04-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888723', 'tblTempVendorCDR_20' ) end [2025-04-12 03:12:18] Production.INFO: ProcessCDR(1,14888723,1,1,2) [2025-04-12 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888723', 'tblTempUsageDetail_20' ) start [2025-04-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888723', 'tblTempUsageDetail_20' ) end [2025-04-12 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:12:21] Production.INFO: ==15020== Releasing lock... [2025-04-12 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:13:05 [end_date_ymd] => 2025-04-12 03:13:05 [RateCDR] => 1 ) [2025-04-12 03:13: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-04-12 00:13:05' and `end` < '2025-04-12 03:13: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-04-12 03:13:18] Production.INFO: count ==345 [2025-04-12 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:13:05 - End Time 2025-04-12 03:13:05 [2025-04-12 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888728', 'tblTempUsageDetail_20' ) start [2025-04-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888728', 'tblTempUsageDetail_20' ) end [2025-04-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888728', 'tblTempVendorCDR_20' ) start [2025-04-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888728', 'tblTempVendorCDR_20' ) end [2025-04-12 03:13:18] Production.INFO: ProcessCDR(1,14888728,1,1,2) [2025-04-12 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888728', 'tblTempUsageDetail_20' ) start [2025-04-12 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888728', 'tblTempUsageDetail_20' ) end [2025-04-12 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:13:22] Production.INFO: ==15170== Releasing lock... [2025-04-12 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:14:05 [end_date_ymd] => 2025-04-12 03:14:05 [RateCDR] => 1 ) [2025-04-12 03:14: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-04-12 00:14:05' and `end` < '2025-04-12 03:14: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-04-12 03:14:18] Production.INFO: count ==344 [2025-04-12 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:14:05 - End Time 2025-04-12 03:14:05 [2025-04-12 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888733', 'tblTempUsageDetail_20' ) start [2025-04-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888733', 'tblTempUsageDetail_20' ) end [2025-04-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888733', 'tblTempVendorCDR_20' ) start [2025-04-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888733', 'tblTempVendorCDR_20' ) end [2025-04-12 03:14:18] Production.INFO: ProcessCDR(1,14888733,1,1,2) [2025-04-12 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888733', 'tblTempUsageDetail_20' ) start [2025-04-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888733', 'tblTempUsageDetail_20' ) end [2025-04-12 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:14:21] Production.INFO: ==15240== Releasing lock... [2025-04-12 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:14:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:15:05 [end_date_ymd] => 2025-04-12 03:15:05 [RateCDR] => 1 ) [2025-04-12 03:15: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-04-12 00:15:05' and `end` < '2025-04-12 03:15: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-04-12 03:15:18] Production.INFO: count ==344 [2025-04-12 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:15:05 - End Time 2025-04-12 03:15:05 [2025-04-12 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888738', 'tblTempUsageDetail_20' ) start [2025-04-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888738', 'tblTempUsageDetail_20' ) end [2025-04-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888738', 'tblTempVendorCDR_20' ) start [2025-04-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888738', 'tblTempVendorCDR_20' ) end [2025-04-12 03:15:18] Production.INFO: ProcessCDR(1,14888738,1,1,2) [2025-04-12 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888738', 'tblTempUsageDetail_20' ) start [2025-04-12 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888738', 'tblTempUsageDetail_20' ) end [2025-04-12 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:15:21] Production.INFO: ==15321== Releasing lock... [2025-04-12 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:16:05 [end_date_ymd] => 2025-04-12 03:16:05 [RateCDR] => 1 ) [2025-04-12 03:16: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-04-12 00:16:05' and `end` < '2025-04-12 03:16: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-04-12 03:16:18] Production.INFO: count ==345 [2025-04-12 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:16:05 - End Time 2025-04-12 03:16:05 [2025-04-12 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888743', 'tblTempUsageDetail_20' ) start [2025-04-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888743', 'tblTempUsageDetail_20' ) end [2025-04-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888743', 'tblTempVendorCDR_20' ) start [2025-04-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888743', 'tblTempVendorCDR_20' ) end [2025-04-12 03:16:18] Production.INFO: ProcessCDR(1,14888743,1,1,2) [2025-04-12 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888743', 'tblTempUsageDetail_20' ) start [2025-04-12 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888743', 'tblTempUsageDetail_20' ) end [2025-04-12 03:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:16:23] Production.INFO: ==15395== Releasing lock... [2025-04-12 03:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:16:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:17:05 [end_date_ymd] => 2025-04-12 03:17:05 [RateCDR] => 1 ) [2025-04-12 03:17: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-04-12 00:17:05' and `end` < '2025-04-12 03:17: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-04-12 03:17:18] Production.INFO: count ==346 [2025-04-12 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:17:05 - End Time 2025-04-12 03:17:05 [2025-04-12 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888748', 'tblTempUsageDetail_20' ) start [2025-04-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888748', 'tblTempUsageDetail_20' ) end [2025-04-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888748', 'tblTempVendorCDR_20' ) start [2025-04-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888748', 'tblTempVendorCDR_20' ) end [2025-04-12 03:17:18] Production.INFO: ProcessCDR(1,14888748,1,1,2) [2025-04-12 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888748', 'tblTempUsageDetail_20' ) start [2025-04-12 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888748', 'tblTempUsageDetail_20' ) end [2025-04-12 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:17:22] Production.INFO: ==15551== Releasing lock... [2025-04-12 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:17:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:18:05 [end_date_ymd] => 2025-04-12 03:18:05 [RateCDR] => 1 ) [2025-04-12 03:18: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-04-12 00:18:05' and `end` < '2025-04-12 03:18: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-04-12 03:18:18] Production.INFO: count ==346 [2025-04-12 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:18:05 - End Time 2025-04-12 03:18:05 [2025-04-12 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888753', 'tblTempUsageDetail_20' ) start [2025-04-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888753', 'tblTempUsageDetail_20' ) end [2025-04-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888753', 'tblTempVendorCDR_20' ) start [2025-04-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888753', 'tblTempVendorCDR_20' ) end [2025-04-12 03:18:18] Production.INFO: ProcessCDR(1,14888753,1,1,2) [2025-04-12 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888753', 'tblTempUsageDetail_20' ) start [2025-04-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888753', 'tblTempUsageDetail_20' ) end [2025-04-12 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:18:22] Production.INFO: ==15623== Releasing lock... [2025-04-12 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:18:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:19:04 [end_date_ymd] => 2025-04-12 03:19:04 [RateCDR] => 1 ) [2025-04-12 03:19: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-04-12 00:19:04' and `end` < '2025-04-12 03:19: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-04-12 03:19:17] Production.INFO: count ==346 [2025-04-12 03:19:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:19:04 - End Time 2025-04-12 03:19:04 [2025-04-12 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888758', 'tblTempUsageDetail_20' ) start [2025-04-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888758', 'tblTempUsageDetail_20' ) end [2025-04-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888758', 'tblTempVendorCDR_20' ) start [2025-04-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888758', 'tblTempVendorCDR_20' ) end [2025-04-12 03:19:17] Production.INFO: ProcessCDR(1,14888758,1,1,2) [2025-04-12 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888758', 'tblTempUsageDetail_20' ) start [2025-04-12 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888758', 'tblTempUsageDetail_20' ) end [2025-04-12 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:19:21] Production.INFO: ==15697== Releasing lock... [2025-04-12 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:19:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:20:06 [end_date_ymd] => 2025-04-12 03:20:06 [RateCDR] => 1 ) [2025-04-12 03:20: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-04-12 00:20:06' and `end` < '2025-04-12 03:20: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-04-12 03:20:19] Production.INFO: count ==344 [2025-04-12 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:20:06 - End Time 2025-04-12 03:20:06 [2025-04-12 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888764', 'tblTempUsageDetail_20' ) start [2025-04-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888764', 'tblTempUsageDetail_20' ) end [2025-04-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888764', 'tblTempVendorCDR_20' ) start [2025-04-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888764', 'tblTempVendorCDR_20' ) end [2025-04-12 03:20:19] Production.INFO: ProcessCDR(1,14888764,1,1,2) [2025-04-12 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888764', 'tblTempUsageDetail_20' ) start [2025-04-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888764', 'tblTempUsageDetail_20' ) end [2025-04-12 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:20:22] Production.INFO: ==15769== Releasing lock... [2025-04-12 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:20:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:21:05 [end_date_ymd] => 2025-04-12 03:21:05 [RateCDR] => 1 ) [2025-04-12 03:21: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-04-12 00:21:05' and `end` < '2025-04-12 03:21: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-04-12 03:21:17] Production.INFO: count ==340 [2025-04-12 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:21:05 - End Time 2025-04-12 03:21:05 [2025-04-12 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888769', 'tblTempUsageDetail_20' ) start [2025-04-12 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888769', 'tblTempUsageDetail_20' ) end [2025-04-12 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888769', 'tblTempVendorCDR_20' ) start [2025-04-12 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888769', 'tblTempVendorCDR_20' ) end [2025-04-12 03:21:17] Production.INFO: ProcessCDR(1,14888769,1,1,2) [2025-04-12 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888769', 'tblTempUsageDetail_20' ) start [2025-04-12 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888769', 'tblTempUsageDetail_20' ) end [2025-04-12 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:21:21] Production.INFO: ==15845== Releasing lock... [2025-04-12 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:22:06 [end_date_ymd] => 2025-04-12 03:22:06 [RateCDR] => 1 ) [2025-04-12 03:22: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-04-12 00:22:06' and `end` < '2025-04-12 03:22: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-04-12 03:22:19] Production.INFO: count ==340 [2025-04-12 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:22:06 - End Time 2025-04-12 03:22:06 [2025-04-12 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888774', 'tblTempUsageDetail_20' ) start [2025-04-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888774', 'tblTempUsageDetail_20' ) end [2025-04-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888774', 'tblTempVendorCDR_20' ) start [2025-04-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888774', 'tblTempVendorCDR_20' ) end [2025-04-12 03:22:19] Production.INFO: ProcessCDR(1,14888774,1,1,2) [2025-04-12 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888774', 'tblTempUsageDetail_20' ) start [2025-04-12 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888774', 'tblTempUsageDetail_20' ) end [2025-04-12 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:22:22] Production.INFO: ==15918== Releasing lock... [2025-04-12 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:22:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:23:05 [end_date_ymd] => 2025-04-12 03:23:05 [RateCDR] => 1 ) [2025-04-12 03:23: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-04-12 00:23:05' and `end` < '2025-04-12 03:23: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-04-12 03:23:18] Production.INFO: count ==340 [2025-04-12 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:23:05 - End Time 2025-04-12 03:23:05 [2025-04-12 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888779', 'tblTempUsageDetail_20' ) start [2025-04-12 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888779', 'tblTempUsageDetail_20' ) end [2025-04-12 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888779', 'tblTempVendorCDR_20' ) start [2025-04-12 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888779', 'tblTempVendorCDR_20' ) end [2025-04-12 03:23:18] Production.INFO: ProcessCDR(1,14888779,1,1,2) [2025-04-12 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888779', 'tblTempUsageDetail_20' ) start [2025-04-12 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888779', 'tblTempUsageDetail_20' ) end [2025-04-12 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:23:21] Production.INFO: ==15988== Releasing lock... [2025-04-12 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:24:05 [end_date_ymd] => 2025-04-12 03:24:05 [RateCDR] => 1 ) [2025-04-12 03:24: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-04-12 00:24:05' and `end` < '2025-04-12 03:24: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-04-12 03:24:18] Production.INFO: count ==339 [2025-04-12 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:24:05 - End Time 2025-04-12 03:24:05 [2025-04-12 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888784', 'tblTempUsageDetail_20' ) start [2025-04-12 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888784', 'tblTempUsageDetail_20' ) end [2025-04-12 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888784', 'tblTempVendorCDR_20' ) start [2025-04-12 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888784', 'tblTempVendorCDR_20' ) end [2025-04-12 03:24:18] Production.INFO: ProcessCDR(1,14888784,1,1,2) [2025-04-12 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888784', 'tblTempUsageDetail_20' ) start [2025-04-12 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888784', 'tblTempUsageDetail_20' ) end [2025-04-12 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:24:22] Production.INFO: ==16061== Releasing lock... [2025-04-12 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:24:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:25:05 [end_date_ymd] => 2025-04-12 03:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 00:25:05' and `end` < '2025-04-12 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-04-12 03:25:17] Production.INFO: count ==337 [2025-04-12 03:25:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:25:05 - End Time 2025-04-12 03:25:05 [2025-04-12 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888789', 'tblTempUsageDetail_20' ) start [2025-04-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888789', 'tblTempUsageDetail_20' ) end [2025-04-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888789', 'tblTempVendorCDR_20' ) start [2025-04-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888789', 'tblTempVendorCDR_20' ) end [2025-04-12 03:25:17] Production.INFO: ProcessCDR(1,14888789,1,1,2) [2025-04-12 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888789', 'tblTempUsageDetail_20' ) start [2025-04-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888789', 'tblTempUsageDetail_20' ) end [2025-04-12 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:25:21] Production.INFO: ==16133== Releasing lock... [2025-04-12 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:26:05 [end_date_ymd] => 2025-04-12 03:26:05 [RateCDR] => 1 ) [2025-04-12 03:26: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-04-12 00:26:05' and `end` < '2025-04-12 03:26: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-04-12 03:26:18] Production.INFO: count ==339 [2025-04-12 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:26:05 - End Time 2025-04-12 03:26:05 [2025-04-12 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888794', 'tblTempUsageDetail_20' ) start [2025-04-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888794', 'tblTempUsageDetail_20' ) end [2025-04-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888794', 'tblTempVendorCDR_20' ) start [2025-04-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888794', 'tblTempVendorCDR_20' ) end [2025-04-12 03:26:18] Production.INFO: ProcessCDR(1,14888794,1,1,2) [2025-04-12 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888794', 'tblTempUsageDetail_20' ) start [2025-04-12 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888794', 'tblTempUsageDetail_20' ) end [2025-04-12 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:26:22] Production.INFO: ==16208== Releasing lock... [2025-04-12 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:26:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:27:05 [end_date_ymd] => 2025-04-12 03:27:05 [RateCDR] => 1 ) [2025-04-12 03:27: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-04-12 00:27:05' and `end` < '2025-04-12 03:27: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-04-12 03:27:18] Production.INFO: count ==341 [2025-04-12 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:27:05 - End Time 2025-04-12 03:27:05 [2025-04-12 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888799', 'tblTempUsageDetail_20' ) start [2025-04-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888799', 'tblTempUsageDetail_20' ) end [2025-04-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888799', 'tblTempVendorCDR_20' ) start [2025-04-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888799', 'tblTempVendorCDR_20' ) end [2025-04-12 03:27:18] Production.INFO: ProcessCDR(1,14888799,1,1,2) [2025-04-12 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888799', 'tblTempUsageDetail_20' ) start [2025-04-12 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888799', 'tblTempUsageDetail_20' ) end [2025-04-12 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:27:22] Production.INFO: ==16284== Releasing lock... [2025-04-12 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:28:06 [end_date_ymd] => 2025-04-12 03:28:06 [RateCDR] => 1 ) [2025-04-12 03:28: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-04-12 00:28:06' and `end` < '2025-04-12 03:28: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-04-12 03:28:18] Production.INFO: count ==341 [2025-04-12 03:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:28:06 - End Time 2025-04-12 03:28:06 [2025-04-12 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888804', 'tblTempUsageDetail_20' ) start [2025-04-12 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888804', 'tblTempUsageDetail_20' ) end [2025-04-12 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888804', 'tblTempVendorCDR_20' ) start [2025-04-12 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888804', 'tblTempVendorCDR_20' ) end [2025-04-12 03:28:19] Production.INFO: ProcessCDR(1,14888804,1,1,2) [2025-04-12 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888804', 'tblTempUsageDetail_20' ) start [2025-04-12 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888804', 'tblTempUsageDetail_20' ) end [2025-04-12 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:28:22] Production.INFO: ==16360== Releasing lock... [2025-04-12 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:28:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:29:05 [end_date_ymd] => 2025-04-12 03:29:05 [RateCDR] => 1 ) [2025-04-12 03:29: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-04-12 00:29:05' and `end` < '2025-04-12 03:29: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-04-12 03:29:18] Production.INFO: count ==342 [2025-04-12 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:29:05 - End Time 2025-04-12 03:29:05 [2025-04-12 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888809', 'tblTempUsageDetail_20' ) start [2025-04-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888809', 'tblTempUsageDetail_20' ) end [2025-04-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888809', 'tblTempVendorCDR_20' ) start [2025-04-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888809', 'tblTempVendorCDR_20' ) end [2025-04-12 03:29:18] Production.INFO: ProcessCDR(1,14888809,1,1,2) [2025-04-12 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888809', 'tblTempUsageDetail_20' ) start [2025-04-12 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888809', 'tblTempUsageDetail_20' ) end [2025-04-12 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:29:23] Production.INFO: ==16471== Releasing lock... [2025-04-12 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:29:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:30:06 [end_date_ymd] => 2025-04-12 03:30:06 [RateCDR] => 1 ) [2025-04-12 03:30: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-04-12 00:30:06' and `end` < '2025-04-12 03:30: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-04-12 03:30:19] Production.INFO: count ==340 [2025-04-12 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:30:06 - End Time 2025-04-12 03:30:06 [2025-04-12 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888815', 'tblTempUsageDetail_20' ) start [2025-04-12 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888815', 'tblTempUsageDetail_20' ) end [2025-04-12 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888815', 'tblTempVendorCDR_20' ) start [2025-04-12 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888815', 'tblTempVendorCDR_20' ) end [2025-04-12 03:30:19] Production.INFO: ProcessCDR(1,14888815,1,1,2) [2025-04-12 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888815', 'tblTempUsageDetail_20' ) start [2025-04-12 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888815', 'tblTempUsageDetail_20' ) end [2025-04-12 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:30:23] Production.INFO: ==16543== Releasing lock... [2025-04-12 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:30:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:31:05 [end_date_ymd] => 2025-04-12 03:31:05 [RateCDR] => 1 ) [2025-04-12 03:31: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-04-12 00:31:05' and `end` < '2025-04-12 03:31: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-04-12 03:31:18] Production.INFO: count ==336 [2025-04-12 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:31:05 - End Time 2025-04-12 03:31:05 [2025-04-12 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888820', 'tblTempUsageDetail_20' ) start [2025-04-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888820', 'tblTempUsageDetail_20' ) end [2025-04-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888820', 'tblTempVendorCDR_20' ) start [2025-04-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888820', 'tblTempVendorCDR_20' ) end [2025-04-12 03:31:18] Production.INFO: ProcessCDR(1,14888820,1,1,2) [2025-04-12 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888820', 'tblTempUsageDetail_20' ) start [2025-04-12 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888820', 'tblTempUsageDetail_20' ) end [2025-04-12 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:31:22] Production.INFO: ==16624== Releasing lock... [2025-04-12 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:31:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:32:06 [end_date_ymd] => 2025-04-12 03:32:06 [RateCDR] => 1 ) [2025-04-12 03:32: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-04-12 00:32:06' and `end` < '2025-04-12 03:32: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-04-12 03:32:18] Production.INFO: count ==338 [2025-04-12 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:32:06 - End Time 2025-04-12 03:32:06 [2025-04-12 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888825', 'tblTempUsageDetail_20' ) start [2025-04-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888825', 'tblTempUsageDetail_20' ) end [2025-04-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888825', 'tblTempVendorCDR_20' ) start [2025-04-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888825', 'tblTempVendorCDR_20' ) end [2025-04-12 03:32:18] Production.INFO: ProcessCDR(1,14888825,1,1,2) [2025-04-12 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888825', 'tblTempUsageDetail_20' ) start [2025-04-12 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888825', 'tblTempUsageDetail_20' ) end [2025-04-12 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:32:22] Production.INFO: ==16695== Releasing lock... [2025-04-12 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:32:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:33:05 [end_date_ymd] => 2025-04-12 03:33:05 [RateCDR] => 1 ) [2025-04-12 03:33: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-04-12 00:33:05' and `end` < '2025-04-12 03:33: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-04-12 03:33:18] Production.INFO: count ==338 [2025-04-12 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:33:05 - End Time 2025-04-12 03:33:05 [2025-04-12 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888830', 'tblTempUsageDetail_20' ) start [2025-04-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888830', 'tblTempUsageDetail_20' ) end [2025-04-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888830', 'tblTempVendorCDR_20' ) start [2025-04-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888830', 'tblTempVendorCDR_20' ) end [2025-04-12 03:33:18] Production.INFO: ProcessCDR(1,14888830,1,1,2) [2025-04-12 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888830', 'tblTempUsageDetail_20' ) start [2025-04-12 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888830', 'tblTempUsageDetail_20' ) end [2025-04-12 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:33:22] Production.INFO: ==16769== Releasing lock... [2025-04-12 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:33:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:34:05 [end_date_ymd] => 2025-04-12 03:34:05 [RateCDR] => 1 ) [2025-04-12 03:34: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-04-12 00:34:05' and `end` < '2025-04-12 03:34: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-04-12 03:34:18] Production.INFO: count ==338 [2025-04-12 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:34:05 - End Time 2025-04-12 03:34:05 [2025-04-12 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888835', 'tblTempUsageDetail_20' ) start [2025-04-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888835', 'tblTempUsageDetail_20' ) end [2025-04-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888835', 'tblTempVendorCDR_20' ) start [2025-04-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888835', 'tblTempVendorCDR_20' ) end [2025-04-12 03:34:18] Production.INFO: ProcessCDR(1,14888835,1,1,2) [2025-04-12 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888835', 'tblTempUsageDetail_20' ) start [2025-04-12 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888835', 'tblTempUsageDetail_20' ) end [2025-04-12 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:34:22] Production.INFO: ==16841== Releasing lock... [2025-04-12 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:34:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:35:05 [end_date_ymd] => 2025-04-12 03:35:05 [RateCDR] => 1 ) [2025-04-12 03:35: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-04-12 00:35:05' and `end` < '2025-04-12 03:35: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-04-12 03:35:18] Production.INFO: count ==338 [2025-04-12 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:35:05 - End Time 2025-04-12 03:35:05 [2025-04-12 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888840', 'tblTempUsageDetail_20' ) start [2025-04-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888840', 'tblTempUsageDetail_20' ) end [2025-04-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888840', 'tblTempVendorCDR_20' ) start [2025-04-12 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888840', 'tblTempVendorCDR_20' ) end [2025-04-12 03:35:18] Production.INFO: ProcessCDR(1,14888840,1,1,2) [2025-04-12 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888840', 'tblTempUsageDetail_20' ) start [2025-04-12 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888840', 'tblTempUsageDetail_20' ) end [2025-04-12 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:35:21] Production.INFO: ==16911== Releasing lock... [2025-04-12 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:35:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:36:05 [end_date_ymd] => 2025-04-12 03:36:05 [RateCDR] => 1 ) [2025-04-12 03:36: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-04-12 00:36:05' and `end` < '2025-04-12 03:36: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-04-12 03:36:18] Production.INFO: count ==338 [2025-04-12 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:36:05 - End Time 2025-04-12 03:36:05 [2025-04-12 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888845', 'tblTempUsageDetail_20' ) start [2025-04-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888845', 'tblTempUsageDetail_20' ) end [2025-04-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888845', 'tblTempVendorCDR_20' ) start [2025-04-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888845', 'tblTempVendorCDR_20' ) end [2025-04-12 03:36:18] Production.INFO: ProcessCDR(1,14888845,1,1,2) [2025-04-12 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888845', 'tblTempUsageDetail_20' ) start [2025-04-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888845', 'tblTempUsageDetail_20' ) end [2025-04-12 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:36:21] Production.INFO: ==16981== Releasing lock... [2025-04-12 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:36:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:37:05 [end_date_ymd] => 2025-04-12 03:37:05 [RateCDR] => 1 ) [2025-04-12 03:37: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-04-12 00:37:05' and `end` < '2025-04-12 03:37: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-04-12 03:37:18] Production.INFO: count ==336 [2025-04-12 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:37:05 - End Time 2025-04-12 03:37:05 [2025-04-12 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888850', 'tblTempUsageDetail_20' ) start [2025-04-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888850', 'tblTempUsageDetail_20' ) end [2025-04-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888850', 'tblTempVendorCDR_20' ) start [2025-04-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888850', 'tblTempVendorCDR_20' ) end [2025-04-12 03:37:18] Production.INFO: ProcessCDR(1,14888850,1,1,2) [2025-04-12 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888850', 'tblTempUsageDetail_20' ) start [2025-04-12 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888850', 'tblTempUsageDetail_20' ) end [2025-04-12 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:37:21] Production.INFO: ==17055== Releasing lock... [2025-04-12 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:37:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:38:05 [end_date_ymd] => 2025-04-12 03:38:05 [RateCDR] => 1 ) [2025-04-12 03:38: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-04-12 00:38:05' and `end` < '2025-04-12 03:38: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-04-12 03:38:17] Production.INFO: count ==336 [2025-04-12 03:38:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:38:05 - End Time 2025-04-12 03:38:05 [2025-04-12 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888855', 'tblTempUsageDetail_20' ) start [2025-04-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888855', 'tblTempUsageDetail_20' ) end [2025-04-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888855', 'tblTempVendorCDR_20' ) start [2025-04-12 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888855', 'tblTempVendorCDR_20' ) end [2025-04-12 03:38:17] Production.INFO: ProcessCDR(1,14888855,1,1,2) [2025-04-12 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888855', 'tblTempUsageDetail_20' ) start [2025-04-12 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888855', 'tblTempUsageDetail_20' ) end [2025-04-12 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:38:21] Production.INFO: ==17130== Releasing lock... [2025-04-12 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:38:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:39:05 [end_date_ymd] => 2025-04-12 03:39:05 [RateCDR] => 1 ) [2025-04-12 03:39: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-04-12 00:39:05' and `end` < '2025-04-12 03:39: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-04-12 03:39:18] Production.INFO: count ==336 [2025-04-12 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:39:05 - End Time 2025-04-12 03:39:05 [2025-04-12 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888860', 'tblTempUsageDetail_20' ) start [2025-04-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888860', 'tblTempUsageDetail_20' ) end [2025-04-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888860', 'tblTempVendorCDR_20' ) start [2025-04-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888860', 'tblTempVendorCDR_20' ) end [2025-04-12 03:39:18] Production.INFO: ProcessCDR(1,14888860,1,1,2) [2025-04-12 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888860', 'tblTempUsageDetail_20' ) start [2025-04-12 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888860', 'tblTempUsageDetail_20' ) end [2025-04-12 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:39:22] Production.INFO: ==17203== Releasing lock... [2025-04-12 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:39:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:40:07 [end_date_ymd] => 2025-04-12 03:40:07 [RateCDR] => 1 ) [2025-04-12 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 00:40:07' and `end` < '2025-04-12 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 03:40:19] Production.INFO: count ==321 [2025-04-12 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:40:07 - End Time 2025-04-12 03:40:07 [2025-04-12 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888866', 'tblTempUsageDetail_20' ) start [2025-04-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888866', 'tblTempUsageDetail_20' ) end [2025-04-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888866', 'tblTempVendorCDR_20' ) start [2025-04-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888866', 'tblTempVendorCDR_20' ) end [2025-04-12 03:40:19] Production.INFO: ProcessCDR(1,14888866,1,1,2) [2025-04-12 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888866', 'tblTempUsageDetail_20' ) start [2025-04-12 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888866', 'tblTempUsageDetail_20' ) end [2025-04-12 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:40:25] Production.INFO: ==17278== Releasing lock... [2025-04-12 03:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:40:25] Production.INFO: 30 MB #Memory Used# [2025-04-12 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:41:05 [end_date_ymd] => 2025-04-12 03:41:05 [RateCDR] => 1 ) [2025-04-12 03:41: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-04-12 00:41:05' and `end` < '2025-04-12 03:41: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-04-12 03:41:18] Production.INFO: count ==307 [2025-04-12 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:41:05 - End Time 2025-04-12 03:41:05 [2025-04-12 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888871', 'tblTempUsageDetail_20' ) start [2025-04-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888871', 'tblTempUsageDetail_20' ) end [2025-04-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888871', 'tblTempVendorCDR_20' ) start [2025-04-12 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888871', 'tblTempVendorCDR_20' ) end [2025-04-12 03:41:18] Production.INFO: ProcessCDR(1,14888871,1,1,2) [2025-04-12 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888871', 'tblTempUsageDetail_20' ) start [2025-04-12 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888871', 'tblTempUsageDetail_20' ) end [2025-04-12 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:41:22] Production.INFO: ==17351== Releasing lock... [2025-04-12 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:42:05 [end_date_ymd] => 2025-04-12 03:42:05 [RateCDR] => 1 ) [2025-04-12 03:42: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-04-12 00:42:05' and `end` < '2025-04-12 03:42: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-04-12 03:42:18] Production.INFO: count ==307 [2025-04-12 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:42:05 - End Time 2025-04-12 03:42:05 [2025-04-12 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888876', 'tblTempUsageDetail_20' ) start [2025-04-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888876', 'tblTempUsageDetail_20' ) end [2025-04-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888876', 'tblTempVendorCDR_20' ) start [2025-04-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888876', 'tblTempVendorCDR_20' ) end [2025-04-12 03:42:18] Production.INFO: ProcessCDR(1,14888876,1,1,2) [2025-04-12 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888876', 'tblTempUsageDetail_20' ) start [2025-04-12 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888876', 'tblTempUsageDetail_20' ) end [2025-04-12 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:42:22] Production.INFO: ==17426== Releasing lock... [2025-04-12 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:43:05 [end_date_ymd] => 2025-04-12 03:43:05 [RateCDR] => 1 ) [2025-04-12 03:43: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-04-12 00:43:05' and `end` < '2025-04-12 03:43: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-04-12 03:43:18] Production.INFO: count ==307 [2025-04-12 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:43:05 - End Time 2025-04-12 03:43:05 [2025-04-12 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888881', 'tblTempUsageDetail_20' ) start [2025-04-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888881', 'tblTempUsageDetail_20' ) end [2025-04-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888881', 'tblTempVendorCDR_20' ) start [2025-04-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888881', 'tblTempVendorCDR_20' ) end [2025-04-12 03:43:18] Production.INFO: ProcessCDR(1,14888881,1,1,2) [2025-04-12 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888881', 'tblTempUsageDetail_20' ) start [2025-04-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888881', 'tblTempUsageDetail_20' ) end [2025-04-12 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:43:22] Production.INFO: ==17500== Releasing lock... [2025-04-12 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:44:05 [end_date_ymd] => 2025-04-12 03:44:05 [RateCDR] => 1 ) [2025-04-12 03:44: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-04-12 00:44:05' and `end` < '2025-04-12 03:44: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-04-12 03:44:18] Production.INFO: count ==307 [2025-04-12 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:44:05 - End Time 2025-04-12 03:44:05 [2025-04-12 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888886', 'tblTempUsageDetail_20' ) start [2025-04-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888886', 'tblTempUsageDetail_20' ) end [2025-04-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888886', 'tblTempVendorCDR_20' ) start [2025-04-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888886', 'tblTempVendorCDR_20' ) end [2025-04-12 03:44:18] Production.INFO: ProcessCDR(1,14888886,1,1,2) [2025-04-12 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888886', 'tblTempUsageDetail_20' ) start [2025-04-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888886', 'tblTempUsageDetail_20' ) end [2025-04-12 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:44:21] Production.INFO: ==17571== Releasing lock... [2025-04-12 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:45:05 [end_date_ymd] => 2025-04-12 03:45:05 [RateCDR] => 1 ) [2025-04-12 03:45: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-04-12 00:45:05' and `end` < '2025-04-12 03:45: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-04-12 03:45:18] Production.INFO: count ==306 [2025-04-12 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:45:05 - End Time 2025-04-12 03:45:05 [2025-04-12 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888891', 'tblTempUsageDetail_20' ) start [2025-04-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888891', 'tblTempUsageDetail_20' ) end [2025-04-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888891', 'tblTempVendorCDR_20' ) start [2025-04-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888891', 'tblTempVendorCDR_20' ) end [2025-04-12 03:45:18] Production.INFO: ProcessCDR(1,14888891,1,1,2) [2025-04-12 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888891', 'tblTempUsageDetail_20' ) start [2025-04-12 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888891', 'tblTempUsageDetail_20' ) end [2025-04-12 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:45:21] Production.INFO: ==17685== Releasing lock... [2025-04-12 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:46:05 [end_date_ymd] => 2025-04-12 03:46:05 [RateCDR] => 1 ) [2025-04-12 03:46: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-04-12 00:46:05' and `end` < '2025-04-12 03:46: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-04-12 03:46:18] Production.INFO: count ==306 [2025-04-12 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:46:05 - End Time 2025-04-12 03:46:05 [2025-04-12 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888896', 'tblTempUsageDetail_20' ) start [2025-04-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888896', 'tblTempUsageDetail_20' ) end [2025-04-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888896', 'tblTempVendorCDR_20' ) start [2025-04-12 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888896', 'tblTempVendorCDR_20' ) end [2025-04-12 03:46:18] Production.INFO: ProcessCDR(1,14888896,1,1,2) [2025-04-12 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888896', 'tblTempUsageDetail_20' ) start [2025-04-12 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888896', 'tblTempUsageDetail_20' ) end [2025-04-12 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:46:21] Production.INFO: ==17758== Releasing lock... [2025-04-12 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:47:05 [end_date_ymd] => 2025-04-12 03:47:05 [RateCDR] => 1 ) [2025-04-12 03:47: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-04-12 00:47:05' and `end` < '2025-04-12 03:47: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-04-12 03:47:18] Production.INFO: count ==306 [2025-04-12 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:47:05 - End Time 2025-04-12 03:47:05 [2025-04-12 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888901', 'tblTempUsageDetail_20' ) start [2025-04-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888901', 'tblTempUsageDetail_20' ) end [2025-04-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888901', 'tblTempVendorCDR_20' ) start [2025-04-12 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888901', 'tblTempVendorCDR_20' ) end [2025-04-12 03:47:18] Production.INFO: ProcessCDR(1,14888901,1,1,2) [2025-04-12 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888901', 'tblTempUsageDetail_20' ) start [2025-04-12 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888901', 'tblTempUsageDetail_20' ) end [2025-04-12 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:47:21] Production.INFO: ==17828== Releasing lock... [2025-04-12 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:48:05 [end_date_ymd] => 2025-04-12 03:48:05 [RateCDR] => 1 ) [2025-04-12 03:48: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-04-12 00:48:05' and `end` < '2025-04-12 03:48: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-04-12 03:48:18] Production.INFO: count ==304 [2025-04-12 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:48:05 - End Time 2025-04-12 03:48:05 [2025-04-12 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888906', 'tblTempUsageDetail_20' ) start [2025-04-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888906', 'tblTempUsageDetail_20' ) end [2025-04-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888906', 'tblTempVendorCDR_20' ) start [2025-04-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888906', 'tblTempVendorCDR_20' ) end [2025-04-12 03:48:18] Production.INFO: ProcessCDR(1,14888906,1,1,2) [2025-04-12 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888906', 'tblTempUsageDetail_20' ) start [2025-04-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888906', 'tblTempUsageDetail_20' ) end [2025-04-12 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:48:21] Production.INFO: ==17899== Releasing lock... [2025-04-12 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:49:05 [end_date_ymd] => 2025-04-12 03:49:05 [RateCDR] => 1 ) [2025-04-12 03:49: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-04-12 00:49:05' and `end` < '2025-04-12 03:49: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-04-12 03:49:18] Production.INFO: count ==304 [2025-04-12 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:49:05 - End Time 2025-04-12 03:49:05 [2025-04-12 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888911', 'tblTempUsageDetail_20' ) start [2025-04-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888911', 'tblTempUsageDetail_20' ) end [2025-04-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888911', 'tblTempVendorCDR_20' ) start [2025-04-12 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888911', 'tblTempVendorCDR_20' ) end [2025-04-12 03:49:18] Production.INFO: ProcessCDR(1,14888911,1,1,2) [2025-04-12 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888911', 'tblTempUsageDetail_20' ) start [2025-04-12 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888911', 'tblTempUsageDetail_20' ) end [2025-04-12 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:49:21] Production.INFO: ==17974== Releasing lock... [2025-04-12 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:50:06 [end_date_ymd] => 2025-04-12 03:50:06 [RateCDR] => 1 ) [2025-04-12 03:50: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-04-12 00:50:06' and `end` < '2025-04-12 03:50: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-04-12 03:50:19] Production.INFO: count ==297 [2025-04-12 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:50:06 - End Time 2025-04-12 03:50:06 [2025-04-12 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888917', 'tblTempUsageDetail_20' ) start [2025-04-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888917', 'tblTempUsageDetail_20' ) end [2025-04-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888917', 'tblTempVendorCDR_20' ) start [2025-04-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888917', 'tblTempVendorCDR_20' ) end [2025-04-12 03:50:19] Production.INFO: ProcessCDR(1,14888917,1,1,2) [2025-04-12 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888917', 'tblTempUsageDetail_20' ) start [2025-04-12 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888917', 'tblTempUsageDetail_20' ) end [2025-04-12 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:50:24] Production.INFO: ==18049== Releasing lock... [2025-04-12 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:50:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:51:05 [end_date_ymd] => 2025-04-12 03:51:05 [RateCDR] => 1 ) [2025-04-12 03:51: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-04-12 00:51:05' and `end` < '2025-04-12 03:51: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-04-12 03:51:17] Production.INFO: count ==279 [2025-04-12 03:51:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:51:05 - End Time 2025-04-12 03:51:05 [2025-04-12 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888922', 'tblTempUsageDetail_20' ) start [2025-04-12 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888922', 'tblTempUsageDetail_20' ) end [2025-04-12 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888922', 'tblTempVendorCDR_20' ) start [2025-04-12 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888922', 'tblTempVendorCDR_20' ) end [2025-04-12 03:51:17] Production.INFO: ProcessCDR(1,14888922,1,1,2) [2025-04-12 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888922', 'tblTempUsageDetail_20' ) start [2025-04-12 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888922', 'tblTempUsageDetail_20' ) end [2025-04-12 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:51:21] Production.INFO: ==18122== Releasing lock... [2025-04-12 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:52:05 [end_date_ymd] => 2025-04-12 03:52:05 [RateCDR] => 1 ) [2025-04-12 03:52: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-04-12 00:52:05' and `end` < '2025-04-12 03:52: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-04-12 03:52:18] Production.INFO: count ==279 [2025-04-12 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:52:05 - End Time 2025-04-12 03:52:05 [2025-04-12 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888927', 'tblTempUsageDetail_20' ) start [2025-04-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888927', 'tblTempUsageDetail_20' ) end [2025-04-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888927', 'tblTempVendorCDR_20' ) start [2025-04-12 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888927', 'tblTempVendorCDR_20' ) end [2025-04-12 03:52:18] Production.INFO: ProcessCDR(1,14888927,1,1,2) [2025-04-12 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888927', 'tblTempUsageDetail_20' ) start [2025-04-12 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888927', 'tblTempUsageDetail_20' ) end [2025-04-12 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:52:21] Production.INFO: ==18196== Releasing lock... [2025-04-12 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:53:05 [end_date_ymd] => 2025-04-12 03:53:05 [RateCDR] => 1 ) [2025-04-12 03:53: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-04-12 00:53:05' and `end` < '2025-04-12 03:53: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-04-12 03:53:18] Production.INFO: count ==278 [2025-04-12 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:53:05 - End Time 2025-04-12 03:53:05 [2025-04-12 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888932', 'tblTempUsageDetail_20' ) start [2025-04-12 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888932', 'tblTempUsageDetail_20' ) end [2025-04-12 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888932', 'tblTempVendorCDR_20' ) start [2025-04-12 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888932', 'tblTempVendorCDR_20' ) end [2025-04-12 03:53:18] Production.INFO: ProcessCDR(1,14888932,1,1,2) [2025-04-12 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888932', 'tblTempUsageDetail_20' ) start [2025-04-12 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888932', 'tblTempUsageDetail_20' ) end [2025-04-12 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:53:22] Production.INFO: ==18269== Releasing lock... [2025-04-12 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:54:06 [end_date_ymd] => 2025-04-12 03:54:06 [RateCDR] => 1 ) [2025-04-12 03:54: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-04-12 00:54:06' and `end` < '2025-04-12 03:54: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-04-12 03:54:19] Production.INFO: count ==277 [2025-04-12 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:54:06 - End Time 2025-04-12 03:54:06 [2025-04-12 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888937', 'tblTempUsageDetail_20' ) start [2025-04-12 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888937', 'tblTempUsageDetail_20' ) end [2025-04-12 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888937', 'tblTempVendorCDR_20' ) start [2025-04-12 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888937', 'tblTempVendorCDR_20' ) end [2025-04-12 03:54:19] Production.INFO: ProcessCDR(1,14888937,1,1,2) [2025-04-12 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888937', 'tblTempUsageDetail_20' ) start [2025-04-12 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888937', 'tblTempUsageDetail_20' ) end [2025-04-12 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:54:22] Production.INFO: ==18342== Releasing lock... [2025-04-12 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:55:04 [end_date_ymd] => 2025-04-12 03:55:04 [RateCDR] => 1 ) [2025-04-12 03:55: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-04-12 00:55:04' and `end` < '2025-04-12 03:55: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-04-12 03:55:17] Production.INFO: count ==277 [2025-04-12 03:55:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:55:04 - End Time 2025-04-12 03:55:04 [2025-04-12 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888942', 'tblTempUsageDetail_20' ) start [2025-04-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888942', 'tblTempUsageDetail_20' ) end [2025-04-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888942', 'tblTempVendorCDR_20' ) start [2025-04-12 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888942', 'tblTempVendorCDR_20' ) end [2025-04-12 03:55:17] Production.INFO: ProcessCDR(1,14888942,1,1,2) [2025-04-12 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888942', 'tblTempUsageDetail_20' ) start [2025-04-12 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888942', 'tblTempUsageDetail_20' ) end [2025-04-12 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:55:21] Production.INFO: ==18414== Releasing lock... [2025-04-12 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:56:05 [end_date_ymd] => 2025-04-12 03:56:05 [RateCDR] => 1 ) [2025-04-12 03:56: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-04-12 00:56:05' and `end` < '2025-04-12 03:56: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-04-12 03:56:18] Production.INFO: count ==276 [2025-04-12 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:56:05 - End Time 2025-04-12 03:56:05 [2025-04-12 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888947', 'tblTempUsageDetail_20' ) start [2025-04-12 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888947', 'tblTempUsageDetail_20' ) end [2025-04-12 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888947', 'tblTempVendorCDR_20' ) start [2025-04-12 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888947', 'tblTempVendorCDR_20' ) end [2025-04-12 03:56:18] Production.INFO: ProcessCDR(1,14888947,1,1,2) [2025-04-12 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888947', 'tblTempUsageDetail_20' ) start [2025-04-12 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888947', 'tblTempUsageDetail_20' ) end [2025-04-12 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:56:22] Production.INFO: ==18489== Releasing lock... [2025-04-12 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:57:04 [end_date_ymd] => 2025-04-12 03:57:04 [RateCDR] => 1 ) [2025-04-12 03:57: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-04-12 00:57:04' and `end` < '2025-04-12 03:57: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-04-12 03:57:17] Production.INFO: count ==275 [2025-04-12 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-12 00:57:04 - End Time 2025-04-12 03:57:04 [2025-04-12 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888952', 'tblTempUsageDetail_20' ) start [2025-04-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888952', 'tblTempUsageDetail_20' ) end [2025-04-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888952', 'tblTempVendorCDR_20' ) start [2025-04-12 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888952', 'tblTempVendorCDR_20' ) end [2025-04-12 03:57:17] Production.INFO: ProcessCDR(1,14888952,1,1,2) [2025-04-12 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888952', 'tblTempUsageDetail_20' ) start [2025-04-12 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888952', 'tblTempUsageDetail_20' ) end [2025-04-12 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:57:21] Production.INFO: ==18562== Releasing lock... [2025-04-12 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:58:05 [end_date_ymd] => 2025-04-12 03:58:05 [RateCDR] => 1 ) [2025-04-12 03:58: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-04-12 00:58:05' and `end` < '2025-04-12 03:58: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-04-12 03:58:18] Production.INFO: count ==275 [2025-04-12 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 00:58:05 - End Time 2025-04-12 03:58:05 [2025-04-12 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888957', 'tblTempUsageDetail_20' ) start [2025-04-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888957', 'tblTempUsageDetail_20' ) end [2025-04-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888957', 'tblTempVendorCDR_20' ) start [2025-04-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888957', 'tblTempVendorCDR_20' ) end [2025-04-12 03:58:18] Production.INFO: ProcessCDR(1,14888957,1,1,2) [2025-04-12 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888957', 'tblTempUsageDetail_20' ) start [2025-04-12 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888957', 'tblTempUsageDetail_20' ) end [2025-04-12 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:58:22] Production.INFO: ==18636== Releasing lock... [2025-04-12 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 00:59:06 [end_date_ymd] => 2025-04-12 03:59:06 [RateCDR] => 1 ) [2025-04-12 03:59: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-04-12 00:59:06' and `end` < '2025-04-12 03:59: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-04-12 03:59:19] Production.INFO: count ==275 [2025-04-12 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 00:59:06 - End Time 2025-04-12 03:59:06 [2025-04-12 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888962', 'tblTempUsageDetail_20' ) start [2025-04-12 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888962', 'tblTempUsageDetail_20' ) end [2025-04-12 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888962', 'tblTempVendorCDR_20' ) start [2025-04-12 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888962', 'tblTempVendorCDR_20' ) end [2025-04-12 03:59:19] Production.INFO: ProcessCDR(1,14888962,1,1,2) [2025-04-12 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888962', 'tblTempUsageDetail_20' ) start [2025-04-12 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888962', 'tblTempUsageDetail_20' ) end [2025-04-12 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 03:59:22] Production.INFO: ==18716== Releasing lock... [2025-04-12 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 03:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:00:06 [end_date_ymd] => 2025-04-12 04:00:06 [RateCDR] => 1 ) [2025-04-12 04:00: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-04-12 01:00:06' and `end` < '2025-04-12 04:00: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-04-12 04:00:18] Production.INFO: count ==269 [2025-04-12 04:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:00:06 - End Time 2025-04-12 04:00:06 [2025-04-12 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888968', 'tblTempUsageDetail_20' ) start [2025-04-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888968', 'tblTempUsageDetail_20' ) end [2025-04-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888968', 'tblTempVendorCDR_20' ) start [2025-04-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888968', 'tblTempVendorCDR_20' ) end [2025-04-12 04:00:18] Production.INFO: ProcessCDR(1,14888968,1,1,2) [2025-04-12 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888968', 'tblTempUsageDetail_20' ) start [2025-04-12 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888968', 'tblTempUsageDetail_20' ) end [2025-04-12 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:00:22] Production.INFO: ==18831== Releasing lock... [2025-04-12 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:01:06 [end_date_ymd] => 2025-04-12 04:01:06 [RateCDR] => 1 ) [2025-04-12 04:01: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-04-12 01:01:06' and `end` < '2025-04-12 04:01: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-04-12 04:01:19] Production.INFO: count ==257 [2025-04-12 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:01:06 - End Time 2025-04-12 04:01:06 [2025-04-12 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888974', 'tblTempUsageDetail_20' ) start [2025-04-12 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888974', 'tblTempUsageDetail_20' ) end [2025-04-12 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888974', 'tblTempVendorCDR_20' ) start [2025-04-12 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888974', 'tblTempVendorCDR_20' ) end [2025-04-12 04:01:19] Production.INFO: ProcessCDR(1,14888974,1,1,2) [2025-04-12 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888974', 'tblTempUsageDetail_20' ) start [2025-04-12 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888974', 'tblTempUsageDetail_20' ) end [2025-04-12 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:01:23] Production.INFO: ==18918== Releasing lock... [2025-04-12 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:01:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:02:05 [end_date_ymd] => 2025-04-12 04:02:05 [RateCDR] => 1 ) [2025-04-12 04:02: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-04-12 01:02:05' and `end` < '2025-04-12 04:02: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-04-12 04:02:18] Production.INFO: count ==256 [2025-04-12 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:02:05 - End Time 2025-04-12 04:02:05 [2025-04-12 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888979', 'tblTempUsageDetail_20' ) start [2025-04-12 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888979', 'tblTempUsageDetail_20' ) end [2025-04-12 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888979', 'tblTempVendorCDR_20' ) start [2025-04-12 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888979', 'tblTempVendorCDR_20' ) end [2025-04-12 04:02:18] Production.INFO: ProcessCDR(1,14888979,1,1,2) [2025-04-12 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888979', 'tblTempUsageDetail_20' ) start [2025-04-12 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888979', 'tblTempUsageDetail_20' ) end [2025-04-12 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:02:22] Production.INFO: ==18990== Releasing lock... [2025-04-12 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:03:06 [end_date_ymd] => 2025-04-12 04:03:06 [RateCDR] => 1 ) [2025-04-12 04:03: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-04-12 01:03:06' and `end` < '2025-04-12 04:03: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-04-12 04:03:18] Production.INFO: count ==256 [2025-04-12 04:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:03:06 - End Time 2025-04-12 04:03:06 [2025-04-12 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888984', 'tblTempUsageDetail_20' ) start [2025-04-12 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888984', 'tblTempUsageDetail_20' ) end [2025-04-12 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888984', 'tblTempVendorCDR_20' ) start [2025-04-12 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888984', 'tblTempVendorCDR_20' ) end [2025-04-12 04:03:19] Production.INFO: ProcessCDR(1,14888984,1,1,2) [2025-04-12 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888984', 'tblTempUsageDetail_20' ) start [2025-04-12 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888984', 'tblTempUsageDetail_20' ) end [2025-04-12 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:03:22] Production.INFO: ==19062== Releasing lock... [2025-04-12 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:04:05 [end_date_ymd] => 2025-04-12 04:04:05 [RateCDR] => 1 ) [2025-04-12 04:04: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-04-12 01:04:05' and `end` < '2025-04-12 04:04: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-04-12 04:04:18] Production.INFO: count ==256 [2025-04-12 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:04:05 - End Time 2025-04-12 04:04:05 [2025-04-12 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888989', 'tblTempUsageDetail_20' ) start [2025-04-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888989', 'tblTempUsageDetail_20' ) end [2025-04-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888989', 'tblTempVendorCDR_20' ) start [2025-04-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888989', 'tblTempVendorCDR_20' ) end [2025-04-12 04:04:18] Production.INFO: ProcessCDR(1,14888989,1,1,2) [2025-04-12 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888989', 'tblTempUsageDetail_20' ) start [2025-04-12 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888989', 'tblTempUsageDetail_20' ) end [2025-04-12 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:04:22] Production.INFO: ==19135== Releasing lock... [2025-04-12 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:05:06 [end_date_ymd] => 2025-04-12 04:05:06 [RateCDR] => 1 ) [2025-04-12 04:05: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-04-12 01:05:06' and `end` < '2025-04-12 04:05: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-04-12 04:05:18] Production.INFO: count ==256 [2025-04-12 04:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:05:06 - End Time 2025-04-12 04:05:06 [2025-04-12 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888994', 'tblTempUsageDetail_20' ) start [2025-04-12 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888994', 'tblTempUsageDetail_20' ) end [2025-04-12 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888994', 'tblTempVendorCDR_20' ) start [2025-04-12 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888994', 'tblTempVendorCDR_20' ) end [2025-04-12 04:05:19] Production.INFO: ProcessCDR(1,14888994,1,1,2) [2025-04-12 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888994', 'tblTempUsageDetail_20' ) start [2025-04-12 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888994', 'tblTempUsageDetail_20' ) end [2025-04-12 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:05:22] Production.INFO: ==19209== Releasing lock... [2025-04-12 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:06:05 [end_date_ymd] => 2025-04-12 04:06:05 [RateCDR] => 1 ) [2025-04-12 04:06: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-04-12 01:06:05' and `end` < '2025-04-12 04:06: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-04-12 04:06:18] Production.INFO: count ==256 [2025-04-12 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:06:05 - End Time 2025-04-12 04:06:05 [2025-04-12 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888999', 'tblTempUsageDetail_20' ) start [2025-04-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14888999', 'tblTempUsageDetail_20' ) end [2025-04-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888999', 'tblTempVendorCDR_20' ) start [2025-04-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14888999', 'tblTempVendorCDR_20' ) end [2025-04-12 04:06:18] Production.INFO: ProcessCDR(1,14888999,1,1,2) [2025-04-12 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14888999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14888999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14888999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14888999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888999', 'tblTempUsageDetail_20' ) start [2025-04-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14888999', 'tblTempUsageDetail_20' ) end [2025-04-12 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:06:21] Production.INFO: ==19279== Releasing lock... [2025-04-12 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:07:05 [end_date_ymd] => 2025-04-12 04:07:05 [RateCDR] => 1 ) [2025-04-12 04:07: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-04-12 01:07:05' and `end` < '2025-04-12 04:07: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-04-12 04:07:18] Production.INFO: count ==256 [2025-04-12 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:07:05 - End Time 2025-04-12 04:07:05 [2025-04-12 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889004', 'tblTempUsageDetail_20' ) start [2025-04-12 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889004', 'tblTempUsageDetail_20' ) end [2025-04-12 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889004', 'tblTempVendorCDR_20' ) start [2025-04-12 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889004', 'tblTempVendorCDR_20' ) end [2025-04-12 04:07:18] Production.INFO: ProcessCDR(1,14889004,1,1,2) [2025-04-12 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889004', 'tblTempUsageDetail_20' ) start [2025-04-12 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889004', 'tblTempUsageDetail_20' ) end [2025-04-12 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:07:22] Production.INFO: ==19351== Releasing lock... [2025-04-12 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:08:05 [end_date_ymd] => 2025-04-12 04:08:05 [RateCDR] => 1 ) [2025-04-12 04:08: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-04-12 01:08:05' and `end` < '2025-04-12 04:08: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-04-12 04:08:18] Production.INFO: count ==255 [2025-04-12 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:08:05 - End Time 2025-04-12 04:08:05 [2025-04-12 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889009', 'tblTempUsageDetail_20' ) start [2025-04-12 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889009', 'tblTempUsageDetail_20' ) end [2025-04-12 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889009', 'tblTempVendorCDR_20' ) start [2025-04-12 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889009', 'tblTempVendorCDR_20' ) end [2025-04-12 04:08:18] Production.INFO: ProcessCDR(1,14889009,1,1,2) [2025-04-12 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889009', 'tblTempUsageDetail_20' ) start [2025-04-12 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889009', 'tblTempUsageDetail_20' ) end [2025-04-12 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:08:22] Production.INFO: ==19428== Releasing lock... [2025-04-12 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:09:06 [end_date_ymd] => 2025-04-12 04:09:06 [RateCDR] => 1 ) [2025-04-12 04:09: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-04-12 01:09:06' and `end` < '2025-04-12 04:09: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-04-12 04:09:18] Production.INFO: count ==260 [2025-04-12 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:09:06 - End Time 2025-04-12 04:09:06 [2025-04-12 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889014', 'tblTempUsageDetail_20' ) start [2025-04-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889014', 'tblTempUsageDetail_20' ) end [2025-04-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889014', 'tblTempVendorCDR_20' ) start [2025-04-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889014', 'tblTempVendorCDR_20' ) end [2025-04-12 04:09:18] Production.INFO: ProcessCDR(1,14889014,1,1,2) [2025-04-12 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889014', 'tblTempUsageDetail_20' ) start [2025-04-12 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889014', 'tblTempUsageDetail_20' ) end [2025-04-12 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:09:22] Production.INFO: ==19501== Releasing lock... [2025-04-12 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:10:06 [end_date_ymd] => 2025-04-12 04:10:06 [RateCDR] => 1 ) [2025-04-12 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 01:10:06' and `end` < '2025-04-12 04:10: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-04-12 04:10:19] Production.INFO: count ==259 [2025-04-12 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:10:06 - End Time 2025-04-12 04:10:06 [2025-04-12 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889019', 'tblTempUsageDetail_20' ) start [2025-04-12 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889019', 'tblTempUsageDetail_20' ) end [2025-04-12 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889019', 'tblTempVendorCDR_20' ) start [2025-04-12 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889019', 'tblTempVendorCDR_20' ) end [2025-04-12 04:10:19] Production.INFO: ProcessCDR(1,14889019,1,1,2) [2025-04-12 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889019', 'tblTempUsageDetail_20' ) start [2025-04-12 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889019', 'tblTempUsageDetail_20' ) end [2025-04-12 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:10:23] Production.INFO: ==19575== Releasing lock... [2025-04-12 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:11:05 [end_date_ymd] => 2025-04-12 04:11:05 [RateCDR] => 1 ) [2025-04-12 04:11: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-04-12 01:11:05' and `end` < '2025-04-12 04:11: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-04-12 04:11:18] Production.INFO: count ==255 [2025-04-12 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:11:05 - End Time 2025-04-12 04:11:05 [2025-04-12 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889025', 'tblTempUsageDetail_20' ) start [2025-04-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889025', 'tblTempUsageDetail_20' ) end [2025-04-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889025', 'tblTempVendorCDR_20' ) start [2025-04-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889025', 'tblTempVendorCDR_20' ) end [2025-04-12 04:11:18] Production.INFO: ProcessCDR(1,14889025,1,1,2) [2025-04-12 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889025', 'tblTempUsageDetail_20' ) start [2025-04-12 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889025', 'tblTempUsageDetail_20' ) end [2025-04-12 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:11:22] Production.INFO: ==19652== Releasing lock... [2025-04-12 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:12:04 [end_date_ymd] => 2025-04-12 04:12:04 [RateCDR] => 1 ) [2025-04-12 04:12: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-04-12 01:12:04' and `end` < '2025-04-12 04:12: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-04-12 04:12:17] Production.INFO: count ==255 [2025-04-12 04:12:17] Production.ERROR: pbx CDR StartTime 2025-04-12 01:12:04 - End Time 2025-04-12 04:12:04 [2025-04-12 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889030', 'tblTempUsageDetail_20' ) start [2025-04-12 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889030', 'tblTempUsageDetail_20' ) end [2025-04-12 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889030', 'tblTempVendorCDR_20' ) start [2025-04-12 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889030', 'tblTempVendorCDR_20' ) end [2025-04-12 04:12:17] Production.INFO: ProcessCDR(1,14889030,1,1,2) [2025-04-12 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889030', 'tblTempUsageDetail_20' ) start [2025-04-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889030', 'tblTempUsageDetail_20' ) end [2025-04-12 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:12:21] Production.INFO: ==19733== Releasing lock... [2025-04-12 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:13:05 [end_date_ymd] => 2025-04-12 04:13:05 [RateCDR] => 1 ) [2025-04-12 04:13: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-04-12 01:13:05' and `end` < '2025-04-12 04:13: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-04-12 04:13:18] Production.INFO: count ==257 [2025-04-12 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:13:05 - End Time 2025-04-12 04:13:05 [2025-04-12 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889035', 'tblTempUsageDetail_20' ) start [2025-04-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889035', 'tblTempUsageDetail_20' ) end [2025-04-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889035', 'tblTempVendorCDR_20' ) start [2025-04-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889035', 'tblTempVendorCDR_20' ) end [2025-04-12 04:13:18] Production.INFO: ProcessCDR(1,14889035,1,1,2) [2025-04-12 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889035', 'tblTempUsageDetail_20' ) start [2025-04-12 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889035', 'tblTempUsageDetail_20' ) end [2025-04-12 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:13:21] Production.INFO: ==19804== Releasing lock... [2025-04-12 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:14:06 [end_date_ymd] => 2025-04-12 04:14:06 [RateCDR] => 1 ) [2025-04-12 04:14: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-04-12 01:14:06' and `end` < '2025-04-12 04:14: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-04-12 04:14:18] Production.INFO: count ==258 [2025-04-12 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:14:06 - End Time 2025-04-12 04:14:06 [2025-04-12 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889040', 'tblTempUsageDetail_20' ) start [2025-04-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889040', 'tblTempUsageDetail_20' ) end [2025-04-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889040', 'tblTempVendorCDR_20' ) start [2025-04-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889040', 'tblTempVendorCDR_20' ) end [2025-04-12 04:14:18] Production.INFO: ProcessCDR(1,14889040,1,1,2) [2025-04-12 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889040', 'tblTempUsageDetail_20' ) start [2025-04-12 04:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889040', 'tblTempUsageDetail_20' ) end [2025-04-12 04:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:14:24] Production.INFO: ==19875== Releasing lock... [2025-04-12 04:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:14:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:15:05 [end_date_ymd] => 2025-04-12 04:15:05 [RateCDR] => 1 ) [2025-04-12 04:15: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-04-12 01:15:05' and `end` < '2025-04-12 04:15: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-04-12 04:15:18] Production.INFO: count ==259 [2025-04-12 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:15:05 - End Time 2025-04-12 04:15:05 [2025-04-12 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889045', 'tblTempUsageDetail_20' ) start [2025-04-12 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889045', 'tblTempUsageDetail_20' ) end [2025-04-12 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889045', 'tblTempVendorCDR_20' ) start [2025-04-12 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889045', 'tblTempVendorCDR_20' ) end [2025-04-12 04:15:18] Production.INFO: ProcessCDR(1,14889045,1,1,2) [2025-04-12 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889045', 'tblTempUsageDetail_20' ) start [2025-04-12 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889045', 'tblTempUsageDetail_20' ) end [2025-04-12 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:15:23] Production.INFO: ==19947== Releasing lock... [2025-04-12 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:15:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:16:06 [end_date_ymd] => 2025-04-12 04:16:06 [RateCDR] => 1 ) [2025-04-12 04:16: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-04-12 01:16:06' and `end` < '2025-04-12 04:16: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-04-12 04:16:19] Production.INFO: count ==259 [2025-04-12 04:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:16:06 - End Time 2025-04-12 04:16:06 [2025-04-12 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889050', 'tblTempUsageDetail_20' ) start [2025-04-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889050', 'tblTempUsageDetail_20' ) end [2025-04-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889050', 'tblTempVendorCDR_20' ) start [2025-04-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889050', 'tblTempVendorCDR_20' ) end [2025-04-12 04:16:19] Production.INFO: ProcessCDR(1,14889050,1,1,2) [2025-04-12 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889050', 'tblTempUsageDetail_20' ) start [2025-04-12 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889050', 'tblTempUsageDetail_20' ) end [2025-04-12 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:16:22] Production.INFO: ==20056== Releasing lock... [2025-04-12 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:17:05 [end_date_ymd] => 2025-04-12 04:17:05 [RateCDR] => 1 ) [2025-04-12 04:17: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-04-12 01:17:05' and `end` < '2025-04-12 04:17: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-04-12 04:17:18] Production.INFO: count ==259 [2025-04-12 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:17:05 - End Time 2025-04-12 04:17:05 [2025-04-12 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889055', 'tblTempUsageDetail_20' ) start [2025-04-12 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889055', 'tblTempUsageDetail_20' ) end [2025-04-12 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889055', 'tblTempVendorCDR_20' ) start [2025-04-12 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889055', 'tblTempVendorCDR_20' ) end [2025-04-12 04:17:18] Production.INFO: ProcessCDR(1,14889055,1,1,2) [2025-04-12 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889055', 'tblTempUsageDetail_20' ) start [2025-04-12 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889055', 'tblTempUsageDetail_20' ) end [2025-04-12 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:17:21] Production.INFO: ==20130== Releasing lock... [2025-04-12 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:18:06 [end_date_ymd] => 2025-04-12 04:18:06 [RateCDR] => 1 ) [2025-04-12 04:18: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-04-12 01:18:06' and `end` < '2025-04-12 04:18: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-04-12 04:18:18] Production.INFO: count ==258 [2025-04-12 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:18:06 - End Time 2025-04-12 04:18:06 [2025-04-12 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889060', 'tblTempUsageDetail_20' ) start [2025-04-12 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889060', 'tblTempUsageDetail_20' ) end [2025-04-12 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889060', 'tblTempVendorCDR_20' ) start [2025-04-12 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889060', 'tblTempVendorCDR_20' ) end [2025-04-12 04:18:18] Production.INFO: ProcessCDR(1,14889060,1,1,2) [2025-04-12 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889060', 'tblTempUsageDetail_20' ) start [2025-04-12 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889060', 'tblTempUsageDetail_20' ) end [2025-04-12 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:18:22] Production.INFO: ==20203== Releasing lock... [2025-04-12 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:19:05 [end_date_ymd] => 2025-04-12 04:19:05 [RateCDR] => 1 ) [2025-04-12 04:19: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-04-12 01:19:05' and `end` < '2025-04-12 04:19: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-04-12 04:19:18] Production.INFO: count ==258 [2025-04-12 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:19:05 - End Time 2025-04-12 04:19:05 [2025-04-12 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889065', 'tblTempUsageDetail_20' ) start [2025-04-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889065', 'tblTempUsageDetail_20' ) end [2025-04-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889065', 'tblTempVendorCDR_20' ) start [2025-04-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889065', 'tblTempVendorCDR_20' ) end [2025-04-12 04:19:18] Production.INFO: ProcessCDR(1,14889065,1,1,2) [2025-04-12 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889065', 'tblTempUsageDetail_20' ) start [2025-04-12 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889065', 'tblTempUsageDetail_20' ) end [2025-04-12 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:19:21] Production.INFO: ==20273== Releasing lock... [2025-04-12 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:20:06 [end_date_ymd] => 2025-04-12 04:20:06 [RateCDR] => 1 ) [2025-04-12 04:20: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-04-12 01:20:06' and `end` < '2025-04-12 04:20: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-04-12 04:20:19] Production.INFO: count ==248 [2025-04-12 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:20:06 - End Time 2025-04-12 04:20:06 [2025-04-12 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889071', 'tblTempUsageDetail_20' ) start [2025-04-12 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889071', 'tblTempUsageDetail_20' ) end [2025-04-12 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889071', 'tblTempVendorCDR_20' ) start [2025-04-12 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889071', 'tblTempVendorCDR_20' ) end [2025-04-12 04:20:19] Production.INFO: ProcessCDR(1,14889071,1,1,2) [2025-04-12 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889071', 'tblTempUsageDetail_20' ) start [2025-04-12 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889071', 'tblTempUsageDetail_20' ) end [2025-04-12 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:20:22] Production.INFO: ==20352== Releasing lock... [2025-04-12 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:21:05 [end_date_ymd] => 2025-04-12 04:21:05 [RateCDR] => 1 ) [2025-04-12 04:21: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-04-12 01:21:05' and `end` < '2025-04-12 04:21: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-04-12 04:21:18] Production.INFO: count ==227 [2025-04-12 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:21:05 - End Time 2025-04-12 04:21:05 [2025-04-12 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889076', 'tblTempUsageDetail_20' ) start [2025-04-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889076', 'tblTempUsageDetail_20' ) end [2025-04-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889076', 'tblTempVendorCDR_20' ) start [2025-04-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889076', 'tblTempVendorCDR_20' ) end [2025-04-12 04:21:18] Production.INFO: ProcessCDR(1,14889076,1,1,2) [2025-04-12 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889076', 'tblTempUsageDetail_20' ) start [2025-04-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889076', 'tblTempUsageDetail_20' ) end [2025-04-12 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:21:21] Production.INFO: ==20427== Releasing lock... [2025-04-12 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:22:05 [end_date_ymd] => 2025-04-12 04:22:05 [RateCDR] => 1 ) [2025-04-12 04:22: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-04-12 01:22:05' and `end` < '2025-04-12 04:22: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-04-12 04:22:18] Production.INFO: count ==227 [2025-04-12 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:22:05 - End Time 2025-04-12 04:22:05 [2025-04-12 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889081', 'tblTempUsageDetail_20' ) start [2025-04-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889081', 'tblTempUsageDetail_20' ) end [2025-04-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889081', 'tblTempVendorCDR_20' ) start [2025-04-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889081', 'tblTempVendorCDR_20' ) end [2025-04-12 04:22:18] Production.INFO: ProcessCDR(1,14889081,1,1,2) [2025-04-12 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889081', 'tblTempUsageDetail_20' ) start [2025-04-12 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889081', 'tblTempUsageDetail_20' ) end [2025-04-12 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:22:21] Production.INFO: ==20498== Releasing lock... [2025-04-12 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:23:05 [end_date_ymd] => 2025-04-12 04:23:05 [RateCDR] => 1 ) [2025-04-12 04:23: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-04-12 01:23:05' and `end` < '2025-04-12 04:23: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-04-12 04:23:18] Production.INFO: count ==227 [2025-04-12 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:23:05 - End Time 2025-04-12 04:23:05 [2025-04-12 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889086', 'tblTempUsageDetail_20' ) start [2025-04-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889086', 'tblTempUsageDetail_20' ) end [2025-04-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889086', 'tblTempVendorCDR_20' ) start [2025-04-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889086', 'tblTempVendorCDR_20' ) end [2025-04-12 04:23:18] Production.INFO: ProcessCDR(1,14889086,1,1,2) [2025-04-12 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889086', 'tblTempUsageDetail_20' ) start [2025-04-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889086', 'tblTempUsageDetail_20' ) end [2025-04-12 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:23:21] Production.INFO: ==20568== Releasing lock... [2025-04-12 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:24:06 [end_date_ymd] => 2025-04-12 04:24:06 [RateCDR] => 1 ) [2025-04-12 04:24: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-04-12 01:24:06' and `end` < '2025-04-12 04:24: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-04-12 04:24:19] Production.INFO: count ==227 [2025-04-12 04:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:24:06 - End Time 2025-04-12 04:24:06 [2025-04-12 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889091', 'tblTempUsageDetail_20' ) start [2025-04-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889091', 'tblTempUsageDetail_20' ) end [2025-04-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889091', 'tblTempVendorCDR_20' ) start [2025-04-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889091', 'tblTempVendorCDR_20' ) end [2025-04-12 04:24:19] Production.INFO: ProcessCDR(1,14889091,1,1,2) [2025-04-12 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889091', 'tblTempUsageDetail_20' ) start [2025-04-12 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889091', 'tblTempUsageDetail_20' ) end [2025-04-12 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:24:22] Production.INFO: ==20641== Releasing lock... [2025-04-12 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:25:06 [end_date_ymd] => 2025-04-12 04:25:06 [RateCDR] => 1 ) [2025-04-12 04: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-04-12 01:25:06' and `end` < '2025-04-12 04: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-04-12 04:25:18] Production.INFO: count ==228 [2025-04-12 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:25:06 - End Time 2025-04-12 04:25:06 [2025-04-12 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889096', 'tblTempUsageDetail_20' ) start [2025-04-12 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889096', 'tblTempUsageDetail_20' ) end [2025-04-12 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889096', 'tblTempVendorCDR_20' ) start [2025-04-12 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889096', 'tblTempVendorCDR_20' ) end [2025-04-12 04:25:18] Production.INFO: ProcessCDR(1,14889096,1,1,2) [2025-04-12 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889096', 'tblTempUsageDetail_20' ) start [2025-04-12 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889096', 'tblTempUsageDetail_20' ) end [2025-04-12 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:25:23] Production.INFO: ==20714== Releasing lock... [2025-04-12 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:26:06 [end_date_ymd] => 2025-04-12 04:26:06 [RateCDR] => 1 ) [2025-04-12 04:26: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-04-12 01:26:06' and `end` < '2025-04-12 04:26: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-04-12 04:26:18] Production.INFO: count ==230 [2025-04-12 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:26:06 - End Time 2025-04-12 04:26:06 [2025-04-12 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889101', 'tblTempUsageDetail_20' ) start [2025-04-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889101', 'tblTempUsageDetail_20' ) end [2025-04-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889101', 'tblTempVendorCDR_20' ) start [2025-04-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889101', 'tblTempVendorCDR_20' ) end [2025-04-12 04:26:18] Production.INFO: ProcessCDR(1,14889101,1,1,2) [2025-04-12 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889101', 'tblTempUsageDetail_20' ) start [2025-04-12 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889101', 'tblTempUsageDetail_20' ) end [2025-04-12 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:26:22] Production.INFO: ==20790== Releasing lock... [2025-04-12 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:26:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:27:05 [end_date_ymd] => 2025-04-12 04:27:05 [RateCDR] => 1 ) [2025-04-12 04:27: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-04-12 01:27:05' and `end` < '2025-04-12 04:27: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-04-12 04:27:18] Production.INFO: count ==230 [2025-04-12 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:27:05 - End Time 2025-04-12 04:27:05 [2025-04-12 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889106', 'tblTempUsageDetail_20' ) start [2025-04-12 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889106', 'tblTempUsageDetail_20' ) end [2025-04-12 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889106', 'tblTempVendorCDR_20' ) start [2025-04-12 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889106', 'tblTempVendorCDR_20' ) end [2025-04-12 04:27:18] Production.INFO: ProcessCDR(1,14889106,1,1,2) [2025-04-12 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889106', 'tblTempUsageDetail_20' ) start [2025-04-12 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889106', 'tblTempUsageDetail_20' ) end [2025-04-12 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:27:22] Production.INFO: ==20866== Releasing lock... [2025-04-12 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:27:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:28:05 [end_date_ymd] => 2025-04-12 04:28:05 [RateCDR] => 1 ) [2025-04-12 04:28: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-04-12 01:28:05' and `end` < '2025-04-12 04:28: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-04-12 04:28:18] Production.INFO: count ==229 [2025-04-12 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:28:05 - End Time 2025-04-12 04:28:05 [2025-04-12 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889111', 'tblTempUsageDetail_20' ) start [2025-04-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889111', 'tblTempUsageDetail_20' ) end [2025-04-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889111', 'tblTempVendorCDR_20' ) start [2025-04-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889111', 'tblTempVendorCDR_20' ) end [2025-04-12 04:28:18] Production.INFO: ProcessCDR(1,14889111,1,1,2) [2025-04-12 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889111', 'tblTempUsageDetail_20' ) start [2025-04-12 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889111', 'tblTempUsageDetail_20' ) end [2025-04-12 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:28:21] Production.INFO: ==20938== Releasing lock... [2025-04-12 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:29:05 [end_date_ymd] => 2025-04-12 04:29:05 [RateCDR] => 1 ) [2025-04-12 04:29: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-04-12 01:29:05' and `end` < '2025-04-12 04:29: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-04-12 04:29:18] Production.INFO: count ==229 [2025-04-12 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:29:05 - End Time 2025-04-12 04:29:05 [2025-04-12 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889116', 'tblTempUsageDetail_20' ) start [2025-04-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889116', 'tblTempUsageDetail_20' ) end [2025-04-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889116', 'tblTempVendorCDR_20' ) start [2025-04-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889116', 'tblTempVendorCDR_20' ) end [2025-04-12 04:29:18] Production.INFO: ProcessCDR(1,14889116,1,1,2) [2025-04-12 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889116', 'tblTempUsageDetail_20' ) start [2025-04-12 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889116', 'tblTempUsageDetail_20' ) end [2025-04-12 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:29:22] Production.INFO: ==21010== Releasing lock... [2025-04-12 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:30:06 [end_date_ymd] => 2025-04-12 04:30:06 [RateCDR] => 1 ) [2025-04-12 04:30: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-04-12 01:30:06' and `end` < '2025-04-12 04:30: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-04-12 04:30:19] Production.INFO: count ==222 [2025-04-12 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:30:06 - End Time 2025-04-12 04:30:06 [2025-04-12 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889123', 'tblTempUsageDetail_20' ) start [2025-04-12 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889123', 'tblTempUsageDetail_20' ) end [2025-04-12 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889123', 'tblTempVendorCDR_20' ) start [2025-04-12 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889123', 'tblTempVendorCDR_20' ) end [2025-04-12 04:30:19] Production.INFO: ProcessCDR(1,14889123,1,1,2) [2025-04-12 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889123', 'tblTempUsageDetail_20' ) start [2025-04-12 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889123', 'tblTempUsageDetail_20' ) end [2025-04-12 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:30:23] Production.INFO: ==21087== Releasing lock... [2025-04-12 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:31:05 [end_date_ymd] => 2025-04-12 04:31:05 [RateCDR] => 1 ) [2025-04-12 04:31: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-04-12 01:31:05' and `end` < '2025-04-12 04:31: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-04-12 04:31:18] Production.INFO: count ==222 [2025-04-12 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:31:05 - End Time 2025-04-12 04:31:05 [2025-04-12 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889128', 'tblTempUsageDetail_20' ) start [2025-04-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889128', 'tblTempUsageDetail_20' ) end [2025-04-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889128', 'tblTempVendorCDR_20' ) start [2025-04-12 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889128', 'tblTempVendorCDR_20' ) end [2025-04-12 04:31:18] Production.INFO: ProcessCDR(1,14889128,1,1,2) [2025-04-12 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889128', 'tblTempUsageDetail_20' ) start [2025-04-12 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889128', 'tblTempUsageDetail_20' ) end [2025-04-12 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:31:21] Production.INFO: ==21235== Releasing lock... [2025-04-12 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:32:05 [end_date_ymd] => 2025-04-12 04:32:05 [RateCDR] => 1 ) [2025-04-12 04:32: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-04-12 01:32:05' and `end` < '2025-04-12 04:32: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-04-12 04:32:17] Production.INFO: count ==222 [2025-04-12 04:32:17] Production.ERROR: pbx CDR StartTime 2025-04-12 01:32:05 - End Time 2025-04-12 04:32:05 [2025-04-12 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889133', 'tblTempUsageDetail_20' ) start [2025-04-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889133', 'tblTempUsageDetail_20' ) end [2025-04-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889133', 'tblTempVendorCDR_20' ) start [2025-04-12 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889133', 'tblTempVendorCDR_20' ) end [2025-04-12 04:32:17] Production.INFO: ProcessCDR(1,14889133,1,1,2) [2025-04-12 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889133', 'tblTempUsageDetail_20' ) start [2025-04-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889133', 'tblTempUsageDetail_20' ) end [2025-04-12 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:32:21] Production.INFO: ==21306== Releasing lock... [2025-04-12 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:33:05 [end_date_ymd] => 2025-04-12 04:33:05 [RateCDR] => 1 ) [2025-04-12 04:33: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-04-12 01:33:05' and `end` < '2025-04-12 04:33: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-04-12 04:33:18] Production.INFO: count ==222 [2025-04-12 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:33:05 - End Time 2025-04-12 04:33:05 [2025-04-12 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889138', 'tblTempUsageDetail_20' ) start [2025-04-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889138', 'tblTempUsageDetail_20' ) end [2025-04-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889138', 'tblTempVendorCDR_20' ) start [2025-04-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889138', 'tblTempVendorCDR_20' ) end [2025-04-12 04:33:18] Production.INFO: ProcessCDR(1,14889138,1,1,2) [2025-04-12 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889138', 'tblTempUsageDetail_20' ) start [2025-04-12 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889138', 'tblTempUsageDetail_20' ) end [2025-04-12 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:33:21] Production.INFO: ==21378== Releasing lock... [2025-04-12 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:34:05 [end_date_ymd] => 2025-04-12 04:34:05 [RateCDR] => 1 ) [2025-04-12 04:34: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-04-12 01:34:05' and `end` < '2025-04-12 04:34: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-04-12 04:34:18] Production.INFO: count ==222 [2025-04-12 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:34:05 - End Time 2025-04-12 04:34:05 [2025-04-12 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889143', 'tblTempUsageDetail_20' ) start [2025-04-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889143', 'tblTempUsageDetail_20' ) end [2025-04-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889143', 'tblTempVendorCDR_20' ) start [2025-04-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889143', 'tblTempVendorCDR_20' ) end [2025-04-12 04:34:18] Production.INFO: ProcessCDR(1,14889143,1,1,2) [2025-04-12 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889143', 'tblTempUsageDetail_20' ) start [2025-04-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889143', 'tblTempUsageDetail_20' ) end [2025-04-12 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:34:21] Production.INFO: ==21448== Releasing lock... [2025-04-12 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:35:05 [end_date_ymd] => 2025-04-12 04:35:05 [RateCDR] => 1 ) [2025-04-12 04:35: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-04-12 01:35:05' and `end` < '2025-04-12 04:35: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-04-12 04:35:18] Production.INFO: count ==222 [2025-04-12 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:35:05 - End Time 2025-04-12 04:35:05 [2025-04-12 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889148', 'tblTempUsageDetail_20' ) start [2025-04-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889148', 'tblTempUsageDetail_20' ) end [2025-04-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889148', 'tblTempVendorCDR_20' ) start [2025-04-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889148', 'tblTempVendorCDR_20' ) end [2025-04-12 04:35:18] Production.INFO: ProcessCDR(1,14889148,1,1,2) [2025-04-12 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889148', 'tblTempUsageDetail_20' ) start [2025-04-12 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889148', 'tblTempUsageDetail_20' ) end [2025-04-12 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:35:21] Production.INFO: ==21520== Releasing lock... [2025-04-12 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:36:05 [end_date_ymd] => 2025-04-12 04:36:05 [RateCDR] => 1 ) [2025-04-12 04:36: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-04-12 01:36:05' and `end` < '2025-04-12 04:36: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-04-12 04:36:17] Production.INFO: count ==221 [2025-04-12 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:36:05 - End Time 2025-04-12 04:36:05 [2025-04-12 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889153', 'tblTempUsageDetail_20' ) start [2025-04-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889153', 'tblTempUsageDetail_20' ) end [2025-04-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889153', 'tblTempVendorCDR_20' ) start [2025-04-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889153', 'tblTempVendorCDR_20' ) end [2025-04-12 04:36:18] Production.INFO: ProcessCDR(1,14889153,1,1,2) [2025-04-12 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889153', 'tblTempUsageDetail_20' ) start [2025-04-12 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889153', 'tblTempUsageDetail_20' ) end [2025-04-12 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:36:21] Production.INFO: ==21591== Releasing lock... [2025-04-12 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:36:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:37:05 [end_date_ymd] => 2025-04-12 04:37:05 [RateCDR] => 1 ) [2025-04-12 04:37: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-04-12 01:37:05' and `end` < '2025-04-12 04:37: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-04-12 04:37:18] Production.INFO: count ==222 [2025-04-12 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:37:05 - End Time 2025-04-12 04:37:05 [2025-04-12 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889158', 'tblTempUsageDetail_20' ) start [2025-04-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889158', 'tblTempUsageDetail_20' ) end [2025-04-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889158', 'tblTempVendorCDR_20' ) start [2025-04-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889158', 'tblTempVendorCDR_20' ) end [2025-04-12 04:37:18] Production.INFO: ProcessCDR(1,14889158,1,1,2) [2025-04-12 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889158', 'tblTempUsageDetail_20' ) start [2025-04-12 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889158', 'tblTempUsageDetail_20' ) end [2025-04-12 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:37:21] Production.INFO: ==21662== Releasing lock... [2025-04-12 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:38:06 [end_date_ymd] => 2025-04-12 04:38:06 [RateCDR] => 1 ) [2025-04-12 04:38: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-04-12 01:38:06' and `end` < '2025-04-12 04:38: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-04-12 04:38:18] Production.INFO: count ==225 [2025-04-12 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:38:06 - End Time 2025-04-12 04:38:06 [2025-04-12 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889163', 'tblTempUsageDetail_20' ) start [2025-04-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889163', 'tblTempUsageDetail_20' ) end [2025-04-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889163', 'tblTempVendorCDR_20' ) start [2025-04-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889163', 'tblTempVendorCDR_20' ) end [2025-04-12 04:38:18] Production.INFO: ProcessCDR(1,14889163,1,1,2) [2025-04-12 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889163', 'tblTempUsageDetail_20' ) start [2025-04-12 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889163', 'tblTempUsageDetail_20' ) end [2025-04-12 04:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:38:23] Production.INFO: ==21732== Releasing lock... [2025-04-12 04:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:38:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:39:05 [end_date_ymd] => 2025-04-12 04:39:05 [RateCDR] => 1 ) [2025-04-12 04:39: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-04-12 01:39:05' and `end` < '2025-04-12 04:39: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-04-12 04:39:17] Production.INFO: count ==225 [2025-04-12 04:39:17] Production.ERROR: pbx CDR StartTime 2025-04-12 01:39:05 - End Time 2025-04-12 04:39:05 [2025-04-12 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889168', 'tblTempUsageDetail_20' ) start [2025-04-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889168', 'tblTempUsageDetail_20' ) end [2025-04-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889168', 'tblTempVendorCDR_20' ) start [2025-04-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889168', 'tblTempVendorCDR_20' ) end [2025-04-12 04:39:18] Production.INFO: ProcessCDR(1,14889168,1,1,2) [2025-04-12 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889168', 'tblTempUsageDetail_20' ) start [2025-04-12 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889168', 'tblTempUsageDetail_20' ) end [2025-04-12 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:39:21] Production.INFO: ==21808== Releasing lock... [2025-04-12 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:40:06 [end_date_ymd] => 2025-04-12 04:40:06 [RateCDR] => 1 ) [2025-04-12 04:40: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-04-12 01:40:06' and `end` < '2025-04-12 04:40: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-04-12 04:40:19] Production.INFO: count ==227 [2025-04-12 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:40:06 - End Time 2025-04-12 04:40:06 [2025-04-12 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889174', 'tblTempUsageDetail_20' ) start [2025-04-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889174', 'tblTempUsageDetail_20' ) end [2025-04-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889174', 'tblTempVendorCDR_20' ) start [2025-04-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889174', 'tblTempVendorCDR_20' ) end [2025-04-12 04:40:19] Production.INFO: ProcessCDR(1,14889174,1,1,2) [2025-04-12 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889174', 'tblTempUsageDetail_20' ) start [2025-04-12 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889174', 'tblTempUsageDetail_20' ) end [2025-04-12 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:40:22] Production.INFO: ==21882== Releasing lock... [2025-04-12 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:41:05 [end_date_ymd] => 2025-04-12 04:41:05 [RateCDR] => 1 ) [2025-04-12 04:41: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-04-12 01:41:05' and `end` < '2025-04-12 04:41: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-04-12 04:41:18] Production.INFO: count ==226 [2025-04-12 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:41:05 - End Time 2025-04-12 04:41:05 [2025-04-12 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889179', 'tblTempUsageDetail_20' ) start [2025-04-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889179', 'tblTempUsageDetail_20' ) end [2025-04-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889179', 'tblTempVendorCDR_20' ) start [2025-04-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889179', 'tblTempVendorCDR_20' ) end [2025-04-12 04:41:18] Production.INFO: ProcessCDR(1,14889179,1,1,2) [2025-04-12 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889179', 'tblTempUsageDetail_20' ) start [2025-04-12 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889179', 'tblTempUsageDetail_20' ) end [2025-04-12 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:41:21] Production.INFO: ==21957== Releasing lock... [2025-04-12 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:42:05 [end_date_ymd] => 2025-04-12 04:42:05 [RateCDR] => 1 ) [2025-04-12 04:42: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-04-12 01:42:05' and `end` < '2025-04-12 04:42: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-04-12 04:42:18] Production.INFO: count ==225 [2025-04-12 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:42:05 - End Time 2025-04-12 04:42:05 [2025-04-12 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889184', 'tblTempUsageDetail_20' ) start [2025-04-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889184', 'tblTempUsageDetail_20' ) end [2025-04-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889184', 'tblTempVendorCDR_20' ) start [2025-04-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889184', 'tblTempVendorCDR_20' ) end [2025-04-12 04:42:18] Production.INFO: ProcessCDR(1,14889184,1,1,2) [2025-04-12 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889184', 'tblTempUsageDetail_20' ) start [2025-04-12 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889184', 'tblTempUsageDetail_20' ) end [2025-04-12 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:42:22] Production.INFO: ==22035== Releasing lock... [2025-04-12 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:42:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:43:05 [end_date_ymd] => 2025-04-12 04:43:05 [RateCDR] => 1 ) [2025-04-12 04:43: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-04-12 01:43:05' and `end` < '2025-04-12 04:43: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-04-12 04:43:18] Production.INFO: count ==224 [2025-04-12 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:43:05 - End Time 2025-04-12 04:43:05 [2025-04-12 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889189', 'tblTempUsageDetail_20' ) start [2025-04-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889189', 'tblTempUsageDetail_20' ) end [2025-04-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889189', 'tblTempVendorCDR_20' ) start [2025-04-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889189', 'tblTempVendorCDR_20' ) end [2025-04-12 04:43:18] Production.INFO: ProcessCDR(1,14889189,1,1,2) [2025-04-12 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889189', 'tblTempUsageDetail_20' ) start [2025-04-12 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889189', 'tblTempUsageDetail_20' ) end [2025-04-12 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:43:22] Production.INFO: ==22105== Releasing lock... [2025-04-12 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:44:05 [end_date_ymd] => 2025-04-12 04:44:05 [RateCDR] => 1 ) [2025-04-12 04:44: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-04-12 01:44:05' and `end` < '2025-04-12 04:44: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-04-12 04:44:18] Production.INFO: count ==224 [2025-04-12 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:44:05 - End Time 2025-04-12 04:44:05 [2025-04-12 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889194', 'tblTempUsageDetail_20' ) start [2025-04-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889194', 'tblTempUsageDetail_20' ) end [2025-04-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889194', 'tblTempVendorCDR_20' ) start [2025-04-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889194', 'tblTempVendorCDR_20' ) end [2025-04-12 04:44:18] Production.INFO: ProcessCDR(1,14889194,1,1,2) [2025-04-12 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889194', 'tblTempUsageDetail_20' ) start [2025-04-12 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889194', 'tblTempUsageDetail_20' ) end [2025-04-12 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:44:22] Production.INFO: ==22176== Releasing lock... [2025-04-12 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:45:05 [end_date_ymd] => 2025-04-12 04:45:05 [RateCDR] => 1 ) [2025-04-12 04:45: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-04-12 01:45:05' and `end` < '2025-04-12 04:45: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-04-12 04:45:18] Production.INFO: count ==223 [2025-04-12 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:45:05 - End Time 2025-04-12 04:45:05 [2025-04-12 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889199', 'tblTempUsageDetail_20' ) start [2025-04-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889199', 'tblTempUsageDetail_20' ) end [2025-04-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889199', 'tblTempVendorCDR_20' ) start [2025-04-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889199', 'tblTempVendorCDR_20' ) end [2025-04-12 04:45:18] Production.INFO: ProcessCDR(1,14889199,1,1,2) [2025-04-12 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889199', 'tblTempUsageDetail_20' ) start [2025-04-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889199', 'tblTempUsageDetail_20' ) end [2025-04-12 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:45:21] Production.INFO: ==22250== Releasing lock... [2025-04-12 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:46:05 [end_date_ymd] => 2025-04-12 04:46:05 [RateCDR] => 1 ) [2025-04-12 04:46: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-04-12 01:46:05' and `end` < '2025-04-12 04:46: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-04-12 04:46:18] Production.INFO: count ==222 [2025-04-12 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:46:05 - End Time 2025-04-12 04:46:05 [2025-04-12 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889204', 'tblTempUsageDetail_20' ) start [2025-04-12 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889204', 'tblTempUsageDetail_20' ) end [2025-04-12 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889204', 'tblTempVendorCDR_20' ) start [2025-04-12 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889204', 'tblTempVendorCDR_20' ) end [2025-04-12 04:46:18] Production.INFO: ProcessCDR(1,14889204,1,1,2) [2025-04-12 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889204', 'tblTempUsageDetail_20' ) start [2025-04-12 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889204', 'tblTempUsageDetail_20' ) end [2025-04-12 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:46:22] Production.INFO: ==22365== Releasing lock... [2025-04-12 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:46:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:47:05 [end_date_ymd] => 2025-04-12 04:47:05 [RateCDR] => 1 ) [2025-04-12 04:47: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-04-12 01:47:05' and `end` < '2025-04-12 04:47: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-04-12 04:47:18] Production.INFO: count ==222 [2025-04-12 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:47:05 - End Time 2025-04-12 04:47:05 [2025-04-12 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889209', 'tblTempUsageDetail_20' ) start [2025-04-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889209', 'tblTempUsageDetail_20' ) end [2025-04-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889209', 'tblTempVendorCDR_20' ) start [2025-04-12 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889209', 'tblTempVendorCDR_20' ) end [2025-04-12 04:47:18] Production.INFO: ProcessCDR(1,14889209,1,1,2) [2025-04-12 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889209', 'tblTempUsageDetail_20' ) start [2025-04-12 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889209', 'tblTempUsageDetail_20' ) end [2025-04-12 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:47:22] Production.INFO: ==22441== Releasing lock... [2025-04-12 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:47:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:48:05 [end_date_ymd] => 2025-04-12 04:48:05 [RateCDR] => 1 ) [2025-04-12 04:48: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-04-12 01:48:05' and `end` < '2025-04-12 04:48: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-04-12 04:48:18] Production.INFO: count ==223 [2025-04-12 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:48:05 - End Time 2025-04-12 04:48:05 [2025-04-12 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889214', 'tblTempUsageDetail_20' ) start [2025-04-12 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889214', 'tblTempUsageDetail_20' ) end [2025-04-12 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889214', 'tblTempVendorCDR_20' ) start [2025-04-12 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889214', 'tblTempVendorCDR_20' ) end [2025-04-12 04:48:18] Production.INFO: ProcessCDR(1,14889214,1,1,2) [2025-04-12 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889214', 'tblTempUsageDetail_20' ) start [2025-04-12 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889214', 'tblTempUsageDetail_20' ) end [2025-04-12 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:48:22] Production.INFO: ==22512== Releasing lock... [2025-04-12 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:48:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:49:05 [end_date_ymd] => 2025-04-12 04:49:05 [RateCDR] => 1 ) [2025-04-12 04:49: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-04-12 01:49:05' and `end` < '2025-04-12 04:49: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-04-12 04:49:18] Production.INFO: count ==223 [2025-04-12 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:49:05 - End Time 2025-04-12 04:49:05 [2025-04-12 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889219', 'tblTempUsageDetail_20' ) start [2025-04-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889219', 'tblTempUsageDetail_20' ) end [2025-04-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889219', 'tblTempVendorCDR_20' ) start [2025-04-12 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889219', 'tblTempVendorCDR_20' ) end [2025-04-12 04:49:18] Production.INFO: ProcessCDR(1,14889219,1,1,2) [2025-04-12 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889219', 'tblTempUsageDetail_20' ) start [2025-04-12 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889219', 'tblTempUsageDetail_20' ) end [2025-04-12 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:49:21] Production.INFO: ==22584== Releasing lock... [2025-04-12 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:49:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:50:06 [end_date_ymd] => 2025-04-12 04:50:06 [RateCDR] => 1 ) [2025-04-12 04:50: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-04-12 01:50:06' and `end` < '2025-04-12 04:50: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-04-12 04:50:21] Production.INFO: count ==212 [2025-04-12 04:50:21] Production.ERROR: pbx CDR StartTime 2025-04-12 01:50:06 - End Time 2025-04-12 04:50:06 [2025-04-12 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889225', 'tblTempUsageDetail_20' ) start [2025-04-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889225', 'tblTempUsageDetail_20' ) end [2025-04-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889225', 'tblTempVendorCDR_20' ) start [2025-04-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889225', 'tblTempVendorCDR_20' ) end [2025-04-12 04:50:21] Production.INFO: ProcessCDR(1,14889225,1,1,2) [2025-04-12 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889225', 'tblTempUsageDetail_20' ) start [2025-04-12 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889225', 'tblTempUsageDetail_20' ) end [2025-04-12 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:50:24] Production.INFO: ==22659== Releasing lock... [2025-04-12 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:50:24] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:51:05 [end_date_ymd] => 2025-04-12 04:51:05 [RateCDR] => 1 ) [2025-04-12 04:51: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-04-12 01:51:05' and `end` < '2025-04-12 04:51: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-04-12 04:51:19] Production.INFO: count ==203 [2025-04-12 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:51:05 - End Time 2025-04-12 04:51:05 [2025-04-12 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889230', 'tblTempUsageDetail_20' ) start [2025-04-12 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889230', 'tblTempUsageDetail_20' ) end [2025-04-12 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889230', 'tblTempVendorCDR_20' ) start [2025-04-12 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889230', 'tblTempVendorCDR_20' ) end [2025-04-12 04:51:19] Production.INFO: ProcessCDR(1,14889230,1,1,2) [2025-04-12 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889230', 'tblTempUsageDetail_20' ) start [2025-04-12 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889230', 'tblTempUsageDetail_20' ) end [2025-04-12 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:51:22] Production.INFO: ==22732== Releasing lock... [2025-04-12 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:51:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:52:05 [end_date_ymd] => 2025-04-12 04:52:05 [RateCDR] => 1 ) [2025-04-12 04:52: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-04-12 01:52:05' and `end` < '2025-04-12 04:52: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-04-12 04:52:19] Production.INFO: count ==204 [2025-04-12 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:52:05 - End Time 2025-04-12 04:52:05 [2025-04-12 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889235', 'tblTempUsageDetail_20' ) start [2025-04-12 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889235', 'tblTempUsageDetail_20' ) end [2025-04-12 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889235', 'tblTempVendorCDR_20' ) start [2025-04-12 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889235', 'tblTempVendorCDR_20' ) end [2025-04-12 04:52:19] Production.INFO: ProcessCDR(1,14889235,1,1,2) [2025-04-12 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889235', 'tblTempUsageDetail_20' ) start [2025-04-12 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889235', 'tblTempUsageDetail_20' ) end [2025-04-12 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:52:24] Production.INFO: ==22804== Releasing lock... [2025-04-12 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:52:24] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:53:06 [end_date_ymd] => 2025-04-12 04:53:06 [RateCDR] => 1 ) [2025-04-12 04:53: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-04-12 01:53:06' and `end` < '2025-04-12 04:53: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-04-12 04:53:21] Production.INFO: count ==203 [2025-04-12 04:53:21] Production.ERROR: pbx CDR StartTime 2025-04-12 01:53:06 - End Time 2025-04-12 04:53:06 [2025-04-12 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889240', 'tblTempUsageDetail_20' ) start [2025-04-12 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889240', 'tblTempUsageDetail_20' ) end [2025-04-12 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889240', 'tblTempVendorCDR_20' ) start [2025-04-12 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889240', 'tblTempVendorCDR_20' ) end [2025-04-12 04:53:21] Production.INFO: ProcessCDR(1,14889240,1,1,2) [2025-04-12 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889240', 'tblTempUsageDetail_20' ) start [2025-04-12 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889240', 'tblTempUsageDetail_20' ) end [2025-04-12 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:53:24] Production.INFO: ==22884== Releasing lock... [2025-04-12 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:53:24] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:54:05 [end_date_ymd] => 2025-04-12 04:54:05 [RateCDR] => 1 ) [2025-04-12 04:54: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-04-12 01:54:05' and `end` < '2025-04-12 04:54: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-04-12 04:54:19] Production.INFO: count ==203 [2025-04-12 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:54:05 - End Time 2025-04-12 04:54:05 [2025-04-12 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889245', 'tblTempUsageDetail_20' ) start [2025-04-12 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889245', 'tblTempUsageDetail_20' ) end [2025-04-12 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889245', 'tblTempVendorCDR_20' ) start [2025-04-12 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889245', 'tblTempVendorCDR_20' ) end [2025-04-12 04:54:19] Production.INFO: ProcessCDR(1,14889245,1,1,2) [2025-04-12 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889245', 'tblTempUsageDetail_20' ) start [2025-04-12 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889245', 'tblTempUsageDetail_20' ) end [2025-04-12 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:54:23] Production.INFO: ==22954== Releasing lock... [2025-04-12 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:54:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:55:04 [end_date_ymd] => 2025-04-12 04:55:04 [RateCDR] => 1 ) [2025-04-12 04:55: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-04-12 01:55:04' and `end` < '2025-04-12 04:55: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-04-12 04:55:17] Production.INFO: count ==203 [2025-04-12 04:55:17] Production.ERROR: pbx CDR StartTime 2025-04-12 01:55:04 - End Time 2025-04-12 04:55:04 [2025-04-12 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889250', 'tblTempUsageDetail_20' ) start [2025-04-12 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889250', 'tblTempUsageDetail_20' ) end [2025-04-12 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889250', 'tblTempVendorCDR_20' ) start [2025-04-12 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889250', 'tblTempVendorCDR_20' ) end [2025-04-12 04:55:17] Production.INFO: ProcessCDR(1,14889250,1,1,2) [2025-04-12 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889250', 'tblTempUsageDetail_20' ) start [2025-04-12 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889250', 'tblTempUsageDetail_20' ) end [2025-04-12 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:55:21] Production.INFO: ==23026== Releasing lock... [2025-04-12 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:55:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:56:05 [end_date_ymd] => 2025-04-12 04:56:05 [RateCDR] => 1 ) [2025-04-12 04:56: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-04-12 01:56:05' and `end` < '2025-04-12 04:56: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-04-12 04:56:18] Production.INFO: count ==203 [2025-04-12 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:56:05 - End Time 2025-04-12 04:56:05 [2025-04-12 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889255', 'tblTempUsageDetail_20' ) start [2025-04-12 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889255', 'tblTempUsageDetail_20' ) end [2025-04-12 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889255', 'tblTempVendorCDR_20' ) start [2025-04-12 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889255', 'tblTempVendorCDR_20' ) end [2025-04-12 04:56:18] Production.INFO: ProcessCDR(1,14889255,1,1,2) [2025-04-12 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889255', 'tblTempUsageDetail_20' ) start [2025-04-12 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889255', 'tblTempUsageDetail_20' ) end [2025-04-12 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:56:22] Production.INFO: ==23099== Releasing lock... [2025-04-12 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:56:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:57:05 [end_date_ymd] => 2025-04-12 04:57:05 [RateCDR] => 1 ) [2025-04-12 04:57: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-04-12 01:57:05' and `end` < '2025-04-12 04:57: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-04-12 04:57:18] Production.INFO: count ==204 [2025-04-12 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:57:05 - End Time 2025-04-12 04:57:05 [2025-04-12 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889260', 'tblTempUsageDetail_20' ) start [2025-04-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889260', 'tblTempUsageDetail_20' ) end [2025-04-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889260', 'tblTempVendorCDR_20' ) start [2025-04-12 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889260', 'tblTempVendorCDR_20' ) end [2025-04-12 04:57:18] Production.INFO: ProcessCDR(1,14889260,1,1,2) [2025-04-12 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889260', 'tblTempUsageDetail_20' ) start [2025-04-12 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889260', 'tblTempUsageDetail_20' ) end [2025-04-12 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:57:21] Production.INFO: ==23171== Releasing lock... [2025-04-12 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:57:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:58:05 [end_date_ymd] => 2025-04-12 04:58:05 [RateCDR] => 1 ) [2025-04-12 04:58: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-04-12 01:58:05' and `end` < '2025-04-12 04:58: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-04-12 04:58:19] Production.INFO: count ==204 [2025-04-12 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 01:58:05 - End Time 2025-04-12 04:58:05 [2025-04-12 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889265', 'tblTempUsageDetail_20' ) start [2025-04-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889265', 'tblTempUsageDetail_20' ) end [2025-04-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889265', 'tblTempVendorCDR_20' ) start [2025-04-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889265', 'tblTempVendorCDR_20' ) end [2025-04-12 04:58:19] Production.INFO: ProcessCDR(1,14889265,1,1,2) [2025-04-12 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889265', 'tblTempUsageDetail_20' ) start [2025-04-12 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889265', 'tblTempUsageDetail_20' ) end [2025-04-12 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:58:23] Production.INFO: ==23247== Releasing lock... [2025-04-12 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:58:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 01:59:05 [end_date_ymd] => 2025-04-12 04:59:05 [RateCDR] => 1 ) [2025-04-12 04:59: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-04-12 01:59:05' and `end` < '2025-04-12 04:59: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-04-12 04:59:18] Production.INFO: count ==203 [2025-04-12 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 01:59:05 - End Time 2025-04-12 04:59:05 [2025-04-12 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889270', 'tblTempUsageDetail_20' ) start [2025-04-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889270', 'tblTempUsageDetail_20' ) end [2025-04-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889270', 'tblTempVendorCDR_20' ) start [2025-04-12 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889270', 'tblTempVendorCDR_20' ) end [2025-04-12 04:59:18] Production.INFO: ProcessCDR(1,14889270,1,1,2) [2025-04-12 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889270', 'tblTempUsageDetail_20' ) start [2025-04-12 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889270', 'tblTempUsageDetail_20' ) end [2025-04-12 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 04:59:21] Production.INFO: ==23318== Releasing lock... [2025-04-12 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 04:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:00:05 [end_date_ymd] => 2025-04-12 05:00:05 [RateCDR] => 1 ) [2025-04-12 05:00: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-04-12 02:00:05' and `end` < '2025-04-12 05:00: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-04-12 05:00:18] Production.INFO: count ==198 [2025-04-12 05:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:00:05 - End Time 2025-04-12 05:00:05 [2025-04-12 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889276', 'tblTempUsageDetail_20' ) start [2025-04-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889276', 'tblTempUsageDetail_20' ) end [2025-04-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889276', 'tblTempVendorCDR_20' ) start [2025-04-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889276', 'tblTempVendorCDR_20' ) end [2025-04-12 05:00:18] Production.INFO: ProcessCDR(1,14889276,1,1,2) [2025-04-12 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889276', 'tblTempUsageDetail_20' ) start [2025-04-12 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889276', 'tblTempUsageDetail_20' ) end [2025-04-12 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:00:22] Production.INFO: ==23391== Releasing lock... [2025-04-12 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:01:05 [end_date_ymd] => 2025-04-12 05:01:05 [RateCDR] => 1 ) [2025-04-12 05:01: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-04-12 02:01:05' and `end` < '2025-04-12 05:01: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-04-12 05:01:19] Production.INFO: count ==198 [2025-04-12 05:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:01:05 - End Time 2025-04-12 05:01:05 [2025-04-12 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889281', 'tblTempUsageDetail_20' ) start [2025-04-12 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889281', 'tblTempUsageDetail_20' ) end [2025-04-12 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889281', 'tblTempVendorCDR_20' ) start [2025-04-12 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889281', 'tblTempVendorCDR_20' ) end [2025-04-12 05:01:19] Production.INFO: ProcessCDR(1,14889281,1,1,2) [2025-04-12 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889281', 'tblTempUsageDetail_20' ) start [2025-04-12 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889281', 'tblTempUsageDetail_20' ) end [2025-04-12 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:01:22] Production.INFO: ==23479== Releasing lock... [2025-04-12 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:01:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:02:05 [end_date_ymd] => 2025-04-12 05:02:05 [RateCDR] => 1 ) [2025-04-12 05:02: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-04-12 02:02:05' and `end` < '2025-04-12 05:02: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-04-12 05:02:18] Production.INFO: count ==198 [2025-04-12 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:02:05 - End Time 2025-04-12 05:02:05 [2025-04-12 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889286', 'tblTempUsageDetail_20' ) start [2025-04-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889286', 'tblTempUsageDetail_20' ) end [2025-04-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889286', 'tblTempVendorCDR_20' ) start [2025-04-12 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889286', 'tblTempVendorCDR_20' ) end [2025-04-12 05:02:18] Production.INFO: ProcessCDR(1,14889286,1,1,2) [2025-04-12 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889286', 'tblTempUsageDetail_20' ) start [2025-04-12 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889286', 'tblTempUsageDetail_20' ) end [2025-04-12 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:02:21] Production.INFO: ==23591== Releasing lock... [2025-04-12 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:03:05 [end_date_ymd] => 2025-04-12 05:03:05 [RateCDR] => 1 ) [2025-04-12 05:03: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-04-12 02:03:05' and `end` < '2025-04-12 05:03: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-04-12 05:03:18] Production.INFO: count ==197 [2025-04-12 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:03:05 - End Time 2025-04-12 05:03:05 [2025-04-12 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889291', 'tblTempUsageDetail_20' ) start [2025-04-12 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889291', 'tblTempUsageDetail_20' ) end [2025-04-12 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889291', 'tblTempVendorCDR_20' ) start [2025-04-12 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889291', 'tblTempVendorCDR_20' ) end [2025-04-12 05:03:18] Production.INFO: ProcessCDR(1,14889291,1,1,2) [2025-04-12 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889291', 'tblTempUsageDetail_20' ) start [2025-04-12 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889291', 'tblTempUsageDetail_20' ) end [2025-04-12 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:03:22] Production.INFO: ==23665== Releasing lock... [2025-04-12 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:03:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:04:05 [end_date_ymd] => 2025-04-12 05:04:05 [RateCDR] => 1 ) [2025-04-12 05:04: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-04-12 02:04:05' and `end` < '2025-04-12 05:04: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-04-12 05:04:18] Production.INFO: count ==196 [2025-04-12 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:04:05 - End Time 2025-04-12 05:04:05 [2025-04-12 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889296', 'tblTempUsageDetail_20' ) start [2025-04-12 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889296', 'tblTempUsageDetail_20' ) end [2025-04-12 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889296', 'tblTempVendorCDR_20' ) start [2025-04-12 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889296', 'tblTempVendorCDR_20' ) end [2025-04-12 05:04:18] Production.INFO: ProcessCDR(1,14889296,1,1,2) [2025-04-12 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889296', 'tblTempUsageDetail_20' ) start [2025-04-12 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889296', 'tblTempUsageDetail_20' ) end [2025-04-12 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:04:21] Production.INFO: ==23735== Releasing lock... [2025-04-12 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:05:05 [end_date_ymd] => 2025-04-12 05:05:05 [RateCDR] => 1 ) [2025-04-12 05:05: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-04-12 02:05:05' and `end` < '2025-04-12 05:05: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-04-12 05:05:18] Production.INFO: count ==197 [2025-04-12 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:05:05 - End Time 2025-04-12 05:05:05 [2025-04-12 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889301', 'tblTempUsageDetail_20' ) start [2025-04-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889301', 'tblTempUsageDetail_20' ) end [2025-04-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889301', 'tblTempVendorCDR_20' ) start [2025-04-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889301', 'tblTempVendorCDR_20' ) end [2025-04-12 05:05:18] Production.INFO: ProcessCDR(1,14889301,1,1,2) [2025-04-12 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889301', 'tblTempUsageDetail_20' ) start [2025-04-12 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889301', 'tblTempUsageDetail_20' ) end [2025-04-12 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:05:22] Production.INFO: ==23811== Releasing lock... [2025-04-12 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:05:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:06:05 [end_date_ymd] => 2025-04-12 05:06:05 [RateCDR] => 1 ) [2025-04-12 05:06: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-04-12 02:06:05' and `end` < '2025-04-12 05:06: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-04-12 05:06:19] Production.INFO: count ==200 [2025-04-12 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:06:05 - End Time 2025-04-12 05:06:05 [2025-04-12 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889306', 'tblTempUsageDetail_20' ) start [2025-04-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889306', 'tblTempUsageDetail_20' ) end [2025-04-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889306', 'tblTempVendorCDR_20' ) start [2025-04-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889306', 'tblTempVendorCDR_20' ) end [2025-04-12 05:06:19] Production.INFO: ProcessCDR(1,14889306,1,1,2) [2025-04-12 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889306', 'tblTempUsageDetail_20' ) start [2025-04-12 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889306', 'tblTempUsageDetail_20' ) end [2025-04-12 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:06:23] Production.INFO: ==23888== Releasing lock... [2025-04-12 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:06:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:07:05 [end_date_ymd] => 2025-04-12 05:07:05 [RateCDR] => 1 ) [2025-04-12 05:07: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-04-12 02:07:05' and `end` < '2025-04-12 05:07: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-04-12 05:07:19] Production.INFO: count ==200 [2025-04-12 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:07:05 - End Time 2025-04-12 05:07:05 [2025-04-12 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889311', 'tblTempUsageDetail_20' ) start [2025-04-12 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889311', 'tblTempUsageDetail_20' ) end [2025-04-12 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889311', 'tblTempVendorCDR_20' ) start [2025-04-12 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889311', 'tblTempVendorCDR_20' ) end [2025-04-12 05:07:19] Production.INFO: ProcessCDR(1,14889311,1,1,2) [2025-04-12 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889311', 'tblTempUsageDetail_20' ) start [2025-04-12 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889311', 'tblTempUsageDetail_20' ) end [2025-04-12 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:07:22] Production.INFO: ==23958== Releasing lock... [2025-04-12 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:07:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:08:05 [end_date_ymd] => 2025-04-12 05:08:05 [RateCDR] => 1 ) [2025-04-12 05:08: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-04-12 02:08:05' and `end` < '2025-04-12 05:08: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-04-12 05:08:18] Production.INFO: count ==200 [2025-04-12 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:08:05 - End Time 2025-04-12 05:08:05 [2025-04-12 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889316', 'tblTempUsageDetail_20' ) start [2025-04-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889316', 'tblTempUsageDetail_20' ) end [2025-04-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889316', 'tblTempVendorCDR_20' ) start [2025-04-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889316', 'tblTempVendorCDR_20' ) end [2025-04-12 05:08:18] Production.INFO: ProcessCDR(1,14889316,1,1,2) [2025-04-12 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889316', 'tblTempUsageDetail_20' ) start [2025-04-12 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889316', 'tblTempUsageDetail_20' ) end [2025-04-12 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:08:22] Production.INFO: ==24033== Releasing lock... [2025-04-12 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:08:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:09:05 [end_date_ymd] => 2025-04-12 05:09:05 [RateCDR] => 1 ) [2025-04-12 05:09: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-04-12 02:09:05' and `end` < '2025-04-12 05:09: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-04-12 05:09:18] Production.INFO: count ==200 [2025-04-12 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:09:05 - End Time 2025-04-12 05:09:05 [2025-04-12 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889321', 'tblTempUsageDetail_20' ) start [2025-04-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889321', 'tblTempUsageDetail_20' ) end [2025-04-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889321', 'tblTempVendorCDR_20' ) start [2025-04-12 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889321', 'tblTempVendorCDR_20' ) end [2025-04-12 05:09:18] Production.INFO: ProcessCDR(1,14889321,1,1,2) [2025-04-12 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889321', 'tblTempUsageDetail_20' ) start [2025-04-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889321', 'tblTempUsageDetail_20' ) end [2025-04-12 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:09:21] Production.INFO: ==24104== Releasing lock... [2025-04-12 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:10:06 [end_date_ymd] => 2025-04-12 05:10:06 [RateCDR] => 1 ) [2025-04-12 05:10: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-04-12 02:10:06' and `end` < '2025-04-12 05:10: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-04-12 05:10:19] Production.INFO: count ==200 [2025-04-12 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:10:06 - End Time 2025-04-12 05:10:06 [2025-04-12 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889326', 'tblTempUsageDetail_20' ) start [2025-04-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889326', 'tblTempUsageDetail_20' ) end [2025-04-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889326', 'tblTempVendorCDR_20' ) start [2025-04-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889326', 'tblTempVendorCDR_20' ) end [2025-04-12 05:10:19] Production.INFO: ProcessCDR(1,14889326,1,1,2) [2025-04-12 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889326', 'tblTempUsageDetail_20' ) start [2025-04-12 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889326', 'tblTempUsageDetail_20' ) end [2025-04-12 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:10:22] Production.INFO: ==24178== Releasing lock... [2025-04-12 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:10:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:11:04 [end_date_ymd] => 2025-04-12 05:11:04 [RateCDR] => 1 ) [2025-04-12 05:11: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-04-12 02:11:04' and `end` < '2025-04-12 05:11: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-04-12 05:11:17] Production.INFO: count ==197 [2025-04-12 05:11:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:11:04 - End Time 2025-04-12 05:11:04 [2025-04-12 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889331', 'tblTempUsageDetail_20' ) start [2025-04-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889331', 'tblTempUsageDetail_20' ) end [2025-04-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889331', 'tblTempVendorCDR_20' ) start [2025-04-12 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889331', 'tblTempVendorCDR_20' ) end [2025-04-12 05:11:17] Production.INFO: ProcessCDR(1,14889331,1,1,2) [2025-04-12 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889331', 'tblTempUsageDetail_20' ) start [2025-04-12 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889331', 'tblTempUsageDetail_20' ) end [2025-04-12 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:11:20] Production.INFO: ==24249== Releasing lock... [2025-04-12 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:11:20] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:12:05 [end_date_ymd] => 2025-04-12 05:12:05 [RateCDR] => 1 ) [2025-04-12 05:12: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-04-12 02:12:05' and `end` < '2025-04-12 05:12: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-04-12 05:12:18] Production.INFO: count ==197 [2025-04-12 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:12:05 - End Time 2025-04-12 05:12:05 [2025-04-12 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889337', 'tblTempUsageDetail_20' ) start [2025-04-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889337', 'tblTempUsageDetail_20' ) end [2025-04-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889337', 'tblTempVendorCDR_20' ) start [2025-04-12 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889337', 'tblTempVendorCDR_20' ) end [2025-04-12 05:12:18] Production.INFO: ProcessCDR(1,14889337,1,1,2) [2025-04-12 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889337', 'tblTempUsageDetail_20' ) start [2025-04-12 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889337', 'tblTempUsageDetail_20' ) end [2025-04-12 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:12:21] Production.INFO: ==24330== Releasing lock... [2025-04-12 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:12:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:13:06 [end_date_ymd] => 2025-04-12 05:13:06 [RateCDR] => 1 ) [2025-04-12 05:13: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-04-12 02:13:06' and `end` < '2025-04-12 05:13: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-04-12 05:13:18] Production.INFO: count ==197 [2025-04-12 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:13:06 - End Time 2025-04-12 05:13:06 [2025-04-12 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889342', 'tblTempUsageDetail_20' ) start [2025-04-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889342', 'tblTempUsageDetail_20' ) end [2025-04-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889342', 'tblTempVendorCDR_20' ) start [2025-04-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889342', 'tblTempVendorCDR_20' ) end [2025-04-12 05:13:18] Production.INFO: ProcessCDR(1,14889342,1,1,2) [2025-04-12 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889342', 'tblTempUsageDetail_20' ) start [2025-04-12 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889342', 'tblTempUsageDetail_20' ) end [2025-04-12 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:13:22] Production.INFO: ==24403== Releasing lock... [2025-04-12 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:13:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:14:05 [end_date_ymd] => 2025-04-12 05:14:05 [RateCDR] => 1 ) [2025-04-12 05:14: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-04-12 02:14:05' and `end` < '2025-04-12 05:14: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-04-12 05:14:18] Production.INFO: count ==197 [2025-04-12 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:14:05 - End Time 2025-04-12 05:14:05 [2025-04-12 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889347', 'tblTempUsageDetail_20' ) start [2025-04-12 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889347', 'tblTempUsageDetail_20' ) end [2025-04-12 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889347', 'tblTempVendorCDR_20' ) start [2025-04-12 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889347', 'tblTempVendorCDR_20' ) end [2025-04-12 05:14:18] Production.INFO: ProcessCDR(1,14889347,1,1,2) [2025-04-12 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889347', 'tblTempUsageDetail_20' ) start [2025-04-12 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889347', 'tblTempUsageDetail_20' ) end [2025-04-12 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:14:21] Production.INFO: ==24475== Releasing lock... [2025-04-12 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:14:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:15:04 [end_date_ymd] => 2025-04-12 05:15:04 [RateCDR] => 1 ) [2025-04-12 05:15: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-04-12 02:15:04' and `end` < '2025-04-12 05:15: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-04-12 05:15:17] Production.INFO: count ==199 [2025-04-12 05:15:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:15:04 - End Time 2025-04-12 05:15:04 [2025-04-12 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889352', 'tblTempUsageDetail_20' ) start [2025-04-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889352', 'tblTempUsageDetail_20' ) end [2025-04-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889352', 'tblTempVendorCDR_20' ) start [2025-04-12 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889352', 'tblTempVendorCDR_20' ) end [2025-04-12 05:15:17] Production.INFO: ProcessCDR(1,14889352,1,1,2) [2025-04-12 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889352', 'tblTempUsageDetail_20' ) start [2025-04-12 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889352', 'tblTempUsageDetail_20' ) end [2025-04-12 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:15:20] Production.INFO: ==24546== Releasing lock... [2025-04-12 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:15:20] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:16:05 [end_date_ymd] => 2025-04-12 05:16:05 [RateCDR] => 1 ) [2025-04-12 05:16: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-04-12 02:16:05' and `end` < '2025-04-12 05:16: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-04-12 05:16:18] Production.INFO: count ==199 [2025-04-12 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:16:05 - End Time 2025-04-12 05:16:05 [2025-04-12 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889357', 'tblTempUsageDetail_20' ) start [2025-04-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889357', 'tblTempUsageDetail_20' ) end [2025-04-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889357', 'tblTempVendorCDR_20' ) start [2025-04-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889357', 'tblTempVendorCDR_20' ) end [2025-04-12 05:16:18] Production.INFO: ProcessCDR(1,14889357,1,1,2) [2025-04-12 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889357', 'tblTempUsageDetail_20' ) start [2025-04-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889357', 'tblTempUsageDetail_20' ) end [2025-04-12 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:16:21] Production.INFO: ==24617== Releasing lock... [2025-04-12 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:16:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:17:06 [end_date_ymd] => 2025-04-12 05:17:06 [RateCDR] => 1 ) [2025-04-12 05:17: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-04-12 02:17:06' and `end` < '2025-04-12 05:17: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-04-12 05:17:18] Production.INFO: count ==198 [2025-04-12 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:17:06 - End Time 2025-04-12 05:17:06 [2025-04-12 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889362', 'tblTempUsageDetail_20' ) start [2025-04-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889362', 'tblTempUsageDetail_20' ) end [2025-04-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889362', 'tblTempVendorCDR_20' ) start [2025-04-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889362', 'tblTempVendorCDR_20' ) end [2025-04-12 05:17:18] Production.INFO: ProcessCDR(1,14889362,1,1,2) [2025-04-12 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889362', 'tblTempUsageDetail_20' ) start [2025-04-12 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889362', 'tblTempUsageDetail_20' ) end [2025-04-12 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:17:22] Production.INFO: ==24728== Releasing lock... [2025-04-12 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:17:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:18:05 [end_date_ymd] => 2025-04-12 05:18:05 [RateCDR] => 1 ) [2025-04-12 05:18: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-04-12 02:18:05' and `end` < '2025-04-12 05:18: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-04-12 05:18:18] Production.INFO: count ==198 [2025-04-12 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:18:05 - End Time 2025-04-12 05:18:05 [2025-04-12 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889367', 'tblTempUsageDetail_20' ) start [2025-04-12 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889367', 'tblTempUsageDetail_20' ) end [2025-04-12 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889367', 'tblTempVendorCDR_20' ) start [2025-04-12 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889367', 'tblTempVendorCDR_20' ) end [2025-04-12 05:18:18] Production.INFO: ProcessCDR(1,14889367,1,1,2) [2025-04-12 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889367', 'tblTempUsageDetail_20' ) start [2025-04-12 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889367', 'tblTempUsageDetail_20' ) end [2025-04-12 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:18:21] Production.INFO: ==24811== Releasing lock... [2025-04-12 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:19:05 [end_date_ymd] => 2025-04-12 05:19:05 [RateCDR] => 1 ) [2025-04-12 05:19: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-04-12 02:19:05' and `end` < '2025-04-12 05:19: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-04-12 05:19:18] Production.INFO: count ==197 [2025-04-12 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:19:05 - End Time 2025-04-12 05:19:05 [2025-04-12 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889372', 'tblTempUsageDetail_20' ) start [2025-04-12 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889372', 'tblTempUsageDetail_20' ) end [2025-04-12 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889372', 'tblTempVendorCDR_20' ) start [2025-04-12 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889372', 'tblTempVendorCDR_20' ) end [2025-04-12 05:19:18] Production.INFO: ProcessCDR(1,14889372,1,1,2) [2025-04-12 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889372', 'tblTempUsageDetail_20' ) start [2025-04-12 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889372', 'tblTempUsageDetail_20' ) end [2025-04-12 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:19:22] Production.INFO: ==24882== Releasing lock... [2025-04-12 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:19:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:20:06 [end_date_ymd] => 2025-04-12 05:20:06 [RateCDR] => 1 ) [2025-04-12 05:20: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-04-12 02:20:06' and `end` < '2025-04-12 05:20: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-04-12 05:20:18] Production.INFO: count ==187 [2025-04-12 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:20:06 - End Time 2025-04-12 05:20:06 [2025-04-12 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889378', 'tblTempUsageDetail_20' ) start [2025-04-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889378', 'tblTempUsageDetail_20' ) end [2025-04-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889378', 'tblTempVendorCDR_20' ) start [2025-04-12 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889378', 'tblTempVendorCDR_20' ) end [2025-04-12 05:20:18] Production.INFO: ProcessCDR(1,14889378,1,1,2) [2025-04-12 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889378', 'tblTempUsageDetail_20' ) start [2025-04-12 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889378', 'tblTempUsageDetail_20' ) end [2025-04-12 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:20:22] Production.INFO: ==24959== Releasing lock... [2025-04-12 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:20:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:21:05 [end_date_ymd] => 2025-04-12 05:21:05 [RateCDR] => 1 ) [2025-04-12 05:21: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-04-12 02:21:05' and `end` < '2025-04-12 05:21: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-04-12 05:21:18] Production.INFO: count ==177 [2025-04-12 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:21:05 - End Time 2025-04-12 05:21:05 [2025-04-12 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889383', 'tblTempUsageDetail_20' ) start [2025-04-12 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889383', 'tblTempUsageDetail_20' ) end [2025-04-12 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889383', 'tblTempVendorCDR_20' ) start [2025-04-12 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889383', 'tblTempVendorCDR_20' ) end [2025-04-12 05:21:18] Production.INFO: ProcessCDR(1,14889383,1,1,2) [2025-04-12 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889383', 'tblTempUsageDetail_20' ) start [2025-04-12 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889383', 'tblTempUsageDetail_20' ) end [2025-04-12 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:21:21] Production.INFO: ==25030== Releasing lock... [2025-04-12 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:22:05 [end_date_ymd] => 2025-04-12 05:22:05 [RateCDR] => 1 ) [2025-04-12 05:22: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-04-12 02:22:05' and `end` < '2025-04-12 05:22: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-04-12 05:22:18] Production.INFO: count ==177 [2025-04-12 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:22:05 - End Time 2025-04-12 05:22:05 [2025-04-12 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889388', 'tblTempUsageDetail_20' ) start [2025-04-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889388', 'tblTempUsageDetail_20' ) end [2025-04-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889388', 'tblTempVendorCDR_20' ) start [2025-04-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889388', 'tblTempVendorCDR_20' ) end [2025-04-12 05:22:18] Production.INFO: ProcessCDR(1,14889388,1,1,2) [2025-04-12 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889388', 'tblTempUsageDetail_20' ) start [2025-04-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889388', 'tblTempUsageDetail_20' ) end [2025-04-12 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:22:21] Production.INFO: ==25105== Releasing lock... [2025-04-12 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:23:05 [end_date_ymd] => 2025-04-12 05:23:05 [RateCDR] => 1 ) [2025-04-12 05:23: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-04-12 02:23:05' and `end` < '2025-04-12 05:23: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-04-12 05:23:18] Production.INFO: count ==176 [2025-04-12 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:23:05 - End Time 2025-04-12 05:23:05 [2025-04-12 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889393', 'tblTempUsageDetail_20' ) start [2025-04-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889393', 'tblTempUsageDetail_20' ) end [2025-04-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889393', 'tblTempVendorCDR_20' ) start [2025-04-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889393', 'tblTempVendorCDR_20' ) end [2025-04-12 05:23:18] Production.INFO: ProcessCDR(1,14889393,1,1,2) [2025-04-12 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889393', 'tblTempUsageDetail_20' ) start [2025-04-12 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889393', 'tblTempUsageDetail_20' ) end [2025-04-12 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:23:22] Production.INFO: ==25178== Releasing lock... [2025-04-12 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:23:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:24:06 [end_date_ymd] => 2025-04-12 05:24:06 [RateCDR] => 1 ) [2025-04-12 05:24: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-04-12 02:24:06' and `end` < '2025-04-12 05:24: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-04-12 05:24:18] Production.INFO: count ==175 [2025-04-12 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:24:06 - End Time 2025-04-12 05:24:06 [2025-04-12 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889398', 'tblTempUsageDetail_20' ) start [2025-04-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889398', 'tblTempUsageDetail_20' ) end [2025-04-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889398', 'tblTempVendorCDR_20' ) start [2025-04-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889398', 'tblTempVendorCDR_20' ) end [2025-04-12 05:24:18] Production.INFO: ProcessCDR(1,14889398,1,1,2) [2025-04-12 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889398', 'tblTempUsageDetail_20' ) start [2025-04-12 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889398', 'tblTempUsageDetail_20' ) end [2025-04-12 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:24:22] Production.INFO: ==25249== Releasing lock... [2025-04-12 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:24:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:25:06 [end_date_ymd] => 2025-04-12 05:25:06 [RateCDR] => 1 ) [2025-04-12 05: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-04-12 02:25:06' and `end` < '2025-04-12 05: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-04-12 05:25:18] Production.INFO: count ==184 [2025-04-12 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:25:06 - End Time 2025-04-12 05:25:06 [2025-04-12 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889403', 'tblTempUsageDetail_20' ) start [2025-04-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889403', 'tblTempUsageDetail_20' ) end [2025-04-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889403', 'tblTempVendorCDR_20' ) start [2025-04-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889403', 'tblTempVendorCDR_20' ) end [2025-04-12 05:25:18] Production.INFO: ProcessCDR(1,14889403,1,1,2) [2025-04-12 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889403', 'tblTempUsageDetail_20' ) start [2025-04-12 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889403', 'tblTempUsageDetail_20' ) end [2025-04-12 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:25:22] Production.INFO: ==25320== Releasing lock... [2025-04-12 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:26:05 [end_date_ymd] => 2025-04-12 05:26:05 [RateCDR] => 1 ) [2025-04-12 05:26: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-04-12 02:26:05' and `end` < '2025-04-12 05:26: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-04-12 05:26:18] Production.INFO: count ==184 [2025-04-12 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:26:05 - End Time 2025-04-12 05:26:05 [2025-04-12 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889408', 'tblTempUsageDetail_20' ) start [2025-04-12 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889408', 'tblTempUsageDetail_20' ) end [2025-04-12 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889408', 'tblTempVendorCDR_20' ) start [2025-04-12 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889408', 'tblTempVendorCDR_20' ) end [2025-04-12 05:26:18] Production.INFO: ProcessCDR(1,14889408,1,1,2) [2025-04-12 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889408', 'tblTempUsageDetail_20' ) start [2025-04-12 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889408', 'tblTempUsageDetail_20' ) end [2025-04-12 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:26:21] Production.INFO: ==25393== Releasing lock... [2025-04-12 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:27:05 [end_date_ymd] => 2025-04-12 05:27:05 [RateCDR] => 1 ) [2025-04-12 05:27: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-04-12 02:27:05' and `end` < '2025-04-12 05:27: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-04-12 05:27:18] Production.INFO: count ==182 [2025-04-12 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:27:05 - End Time 2025-04-12 05:27:05 [2025-04-12 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889413', 'tblTempUsageDetail_20' ) start [2025-04-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889413', 'tblTempUsageDetail_20' ) end [2025-04-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889413', 'tblTempVendorCDR_20' ) start [2025-04-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889413', 'tblTempVendorCDR_20' ) end [2025-04-12 05:27:18] Production.INFO: ProcessCDR(1,14889413,1,1,2) [2025-04-12 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889413', 'tblTempUsageDetail_20' ) start [2025-04-12 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889413', 'tblTempUsageDetail_20' ) end [2025-04-12 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:27:22] Production.INFO: ==25469== Releasing lock... [2025-04-12 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:28:05 [end_date_ymd] => 2025-04-12 05:28:05 [RateCDR] => 1 ) [2025-04-12 05:28: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-04-12 02:28:05' and `end` < '2025-04-12 05:28: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-04-12 05:28:18] Production.INFO: count ==180 [2025-04-12 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:28:05 - End Time 2025-04-12 05:28:05 [2025-04-12 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889418', 'tblTempUsageDetail_20' ) start [2025-04-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889418', 'tblTempUsageDetail_20' ) end [2025-04-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889418', 'tblTempVendorCDR_20' ) start [2025-04-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889418', 'tblTempVendorCDR_20' ) end [2025-04-12 05:28:18] Production.INFO: ProcessCDR(1,14889418,1,1,2) [2025-04-12 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889418', 'tblTempUsageDetail_20' ) start [2025-04-12 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889418', 'tblTempUsageDetail_20' ) end [2025-04-12 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:28:21] Production.INFO: ==25545== Releasing lock... [2025-04-12 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:29:05 [end_date_ymd] => 2025-04-12 05:29:05 [RateCDR] => 1 ) [2025-04-12 05:29: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-04-12 02:29:05' and `end` < '2025-04-12 05:29: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-04-12 05:29:18] Production.INFO: count ==180 [2025-04-12 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:29:05 - End Time 2025-04-12 05:29:05 [2025-04-12 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889423', 'tblTempUsageDetail_20' ) start [2025-04-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889423', 'tblTempUsageDetail_20' ) end [2025-04-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889423', 'tblTempVendorCDR_20' ) start [2025-04-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889423', 'tblTempVendorCDR_20' ) end [2025-04-12 05:29:18] Production.INFO: ProcessCDR(1,14889423,1,1,2) [2025-04-12 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889423', 'tblTempUsageDetail_20' ) start [2025-04-12 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889423', 'tblTempUsageDetail_20' ) end [2025-04-12 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:29:21] Production.INFO: ==25616== Releasing lock... [2025-04-12 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:30:06 [end_date_ymd] => 2025-04-12 05:30:06 [RateCDR] => 1 ) [2025-04-12 05:30: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-04-12 02:30:06' and `end` < '2025-04-12 05:30: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-04-12 05:30:18] Production.INFO: count ==169 [2025-04-12 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:30:06 - End Time 2025-04-12 05:30:06 [2025-04-12 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889429', 'tblTempUsageDetail_20' ) start [2025-04-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889429', 'tblTempUsageDetail_20' ) end [2025-04-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889429', 'tblTempVendorCDR_20' ) start [2025-04-12 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889429', 'tblTempVendorCDR_20' ) end [2025-04-12 05:30:18] Production.INFO: ProcessCDR(1,14889429,1,1,2) [2025-04-12 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889429', 'tblTempUsageDetail_20' ) start [2025-04-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889429', 'tblTempUsageDetail_20' ) end [2025-04-12 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:30:22] Production.INFO: ==25688== Releasing lock... [2025-04-12 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:31:05 [end_date_ymd] => 2025-04-12 05:31:05 [RateCDR] => 1 ) [2025-04-12 05:31: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-04-12 02:31:05' and `end` < '2025-04-12 05:31: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-04-12 05:31:18] Production.INFO: count ==169 [2025-04-12 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:31:05 - End Time 2025-04-12 05:31:05 [2025-04-12 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889434', 'tblTempUsageDetail_20' ) start [2025-04-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889434', 'tblTempUsageDetail_20' ) end [2025-04-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889434', 'tblTempVendorCDR_20' ) start [2025-04-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889434', 'tblTempVendorCDR_20' ) end [2025-04-12 05:31:18] Production.INFO: ProcessCDR(1,14889434,1,1,2) [2025-04-12 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889434', 'tblTempUsageDetail_20' ) start [2025-04-12 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889434', 'tblTempUsageDetail_20' ) end [2025-04-12 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:31:22] Production.INFO: ==25761== Releasing lock... [2025-04-12 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:31:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:32:04 [end_date_ymd] => 2025-04-12 05:32:04 [RateCDR] => 1 ) [2025-04-12 05:32: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-04-12 02:32:04' and `end` < '2025-04-12 05:32: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-04-12 05:32:17] Production.INFO: count ==169 [2025-04-12 05:32:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:32:04 - End Time 2025-04-12 05:32:04 [2025-04-12 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889439', 'tblTempUsageDetail_20' ) start [2025-04-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889439', 'tblTempUsageDetail_20' ) end [2025-04-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889439', 'tblTempVendorCDR_20' ) start [2025-04-12 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889439', 'tblTempVendorCDR_20' ) end [2025-04-12 05:32:17] Production.INFO: ProcessCDR(1,14889439,1,1,2) [2025-04-12 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889439', 'tblTempUsageDetail_20' ) start [2025-04-12 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889439', 'tblTempUsageDetail_20' ) end [2025-04-12 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:32:21] Production.INFO: ==25832== Releasing lock... [2025-04-12 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:33:05 [end_date_ymd] => 2025-04-12 05:33:05 [RateCDR] => 1 ) [2025-04-12 05:33: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-04-12 02:33:05' and `end` < '2025-04-12 05:33: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-04-12 05:33:18] Production.INFO: count ==169 [2025-04-12 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:33:05 - End Time 2025-04-12 05:33:05 [2025-04-12 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889444', 'tblTempUsageDetail_20' ) start [2025-04-12 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889444', 'tblTempUsageDetail_20' ) end [2025-04-12 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889444', 'tblTempVendorCDR_20' ) start [2025-04-12 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889444', 'tblTempVendorCDR_20' ) end [2025-04-12 05:33:18] Production.INFO: ProcessCDR(1,14889444,1,1,2) [2025-04-12 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889444', 'tblTempUsageDetail_20' ) start [2025-04-12 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889444', 'tblTempUsageDetail_20' ) end [2025-04-12 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:33:21] Production.INFO: ==25944== Releasing lock... [2025-04-12 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:34:05 [end_date_ymd] => 2025-04-12 05:34:05 [RateCDR] => 1 ) [2025-04-12 05:34: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-04-12 02:34:05' and `end` < '2025-04-12 05:34: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-04-12 05:34:18] Production.INFO: count ==169 [2025-04-12 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:34:05 - End Time 2025-04-12 05:34:05 [2025-04-12 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889449', 'tblTempUsageDetail_20' ) start [2025-04-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889449', 'tblTempUsageDetail_20' ) end [2025-04-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889449', 'tblTempVendorCDR_20' ) start [2025-04-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889449', 'tblTempVendorCDR_20' ) end [2025-04-12 05:34:18] Production.INFO: ProcessCDR(1,14889449,1,1,2) [2025-04-12 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889449', 'tblTempUsageDetail_20' ) start [2025-04-12 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889449', 'tblTempUsageDetail_20' ) end [2025-04-12 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:34:22] Production.INFO: ==26020== Releasing lock... [2025-04-12 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:35:04 [end_date_ymd] => 2025-04-12 05:35:04 [RateCDR] => 1 ) [2025-04-12 05:35: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-04-12 02:35:04' and `end` < '2025-04-12 05:35: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-04-12 05:35:17] Production.INFO: count ==169 [2025-04-12 05:35:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:35:04 - End Time 2025-04-12 05:35:04 [2025-04-12 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889454', 'tblTempUsageDetail_20' ) start [2025-04-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889454', 'tblTempUsageDetail_20' ) end [2025-04-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889454', 'tblTempVendorCDR_20' ) start [2025-04-12 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889454', 'tblTempVendorCDR_20' ) end [2025-04-12 05:35:17] Production.INFO: ProcessCDR(1,14889454,1,1,2) [2025-04-12 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889454', 'tblTempUsageDetail_20' ) start [2025-04-12 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889454', 'tblTempUsageDetail_20' ) end [2025-04-12 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:35:21] Production.INFO: ==26095== Releasing lock... [2025-04-12 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:35:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:36:06 [end_date_ymd] => 2025-04-12 05:36:06 [RateCDR] => 1 ) [2025-04-12 05:36: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-04-12 02:36:06' and `end` < '2025-04-12 05:36: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-04-12 05:36:18] Production.INFO: count ==168 [2025-04-12 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:36:06 - End Time 2025-04-12 05:36:06 [2025-04-12 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889459', 'tblTempUsageDetail_20' ) start [2025-04-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889459', 'tblTempUsageDetail_20' ) end [2025-04-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889459', 'tblTempVendorCDR_20' ) start [2025-04-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889459', 'tblTempVendorCDR_20' ) end [2025-04-12 05:36:18] Production.INFO: ProcessCDR(1,14889459,1,1,2) [2025-04-12 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889459', 'tblTempUsageDetail_20' ) start [2025-04-12 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889459', 'tblTempUsageDetail_20' ) end [2025-04-12 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:36:22] Production.INFO: ==26166== Releasing lock... [2025-04-12 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:36:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:37:05 [end_date_ymd] => 2025-04-12 05:37:05 [RateCDR] => 1 ) [2025-04-12 05:37: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-04-12 02:37:05' and `end` < '2025-04-12 05:37: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-04-12 05:37:18] Production.INFO: count ==168 [2025-04-12 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:37:05 - End Time 2025-04-12 05:37:05 [2025-04-12 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889464', 'tblTempUsageDetail_20' ) start [2025-04-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889464', 'tblTempUsageDetail_20' ) end [2025-04-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889464', 'tblTempVendorCDR_20' ) start [2025-04-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889464', 'tblTempVendorCDR_20' ) end [2025-04-12 05:37:18] Production.INFO: ProcessCDR(1,14889464,1,1,2) [2025-04-12 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889464', 'tblTempUsageDetail_20' ) start [2025-04-12 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889464', 'tblTempUsageDetail_20' ) end [2025-04-12 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:37:22] Production.INFO: ==26237== Releasing lock... [2025-04-12 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:37:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:38:05 [end_date_ymd] => 2025-04-12 05:38:05 [RateCDR] => 1 ) [2025-04-12 05:38: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-04-12 02:38:05' and `end` < '2025-04-12 05:38: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-04-12 05:38:18] Production.INFO: count ==169 [2025-04-12 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:38:05 - End Time 2025-04-12 05:38:05 [2025-04-12 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889469', 'tblTempUsageDetail_20' ) start [2025-04-12 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889469', 'tblTempUsageDetail_20' ) end [2025-04-12 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889469', 'tblTempVendorCDR_20' ) start [2025-04-12 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889469', 'tblTempVendorCDR_20' ) end [2025-04-12 05:38:18] Production.INFO: ProcessCDR(1,14889469,1,1,2) [2025-04-12 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889469', 'tblTempUsageDetail_20' ) start [2025-04-12 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889469', 'tblTempUsageDetail_20' ) end [2025-04-12 05:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:38:23] Production.INFO: ==26315== Releasing lock... [2025-04-12 05:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:38:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:39:04 [end_date_ymd] => 2025-04-12 05:39:04 [RateCDR] => 1 ) [2025-04-12 05:39: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-04-12 02:39:04' and `end` < '2025-04-12 05:39: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-04-12 05:39:17] Production.INFO: count ==169 [2025-04-12 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:39:04 - End Time 2025-04-12 05:39:04 [2025-04-12 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889474', 'tblTempUsageDetail_20' ) start [2025-04-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889474', 'tblTempUsageDetail_20' ) end [2025-04-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889474', 'tblTempVendorCDR_20' ) start [2025-04-12 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889474', 'tblTempVendorCDR_20' ) end [2025-04-12 05:39:17] Production.INFO: ProcessCDR(1,14889474,1,1,2) [2025-04-12 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889474', 'tblTempUsageDetail_20' ) start [2025-04-12 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889474', 'tblTempUsageDetail_20' ) end [2025-04-12 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:39:21] Production.INFO: ==26385== Releasing lock... [2025-04-12 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:39:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:40:06 [end_date_ymd] => 2025-04-12 05:40:06 [RateCDR] => 1 ) [2025-04-12 05:40: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-04-12 02:40:06' and `end` < '2025-04-12 05:40: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-04-12 05:40:18] Production.INFO: count ==161 [2025-04-12 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:40:06 - End Time 2025-04-12 05:40:06 [2025-04-12 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889480', 'tblTempUsageDetail_20' ) start [2025-04-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889480', 'tblTempUsageDetail_20' ) end [2025-04-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889480', 'tblTempVendorCDR_20' ) start [2025-04-12 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889480', 'tblTempVendorCDR_20' ) end [2025-04-12 05:40:18] Production.INFO: ProcessCDR(1,14889480,1,1,2) [2025-04-12 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889480', 'tblTempUsageDetail_20' ) start [2025-04-12 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889480', 'tblTempUsageDetail_20' ) end [2025-04-12 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:40:22] Production.INFO: ==26457== Releasing lock... [2025-04-12 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:40:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:41:04 [end_date_ymd] => 2025-04-12 05:41:04 [RateCDR] => 1 ) [2025-04-12 05:41: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-04-12 02:41:04' and `end` < '2025-04-12 05:41: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-04-12 05:41:17] Production.INFO: count ==147 [2025-04-12 05:41:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:41:04 - End Time 2025-04-12 05:41:04 [2025-04-12 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889485', 'tblTempUsageDetail_20' ) start [2025-04-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889485', 'tblTempUsageDetail_20' ) end [2025-04-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889485', 'tblTempVendorCDR_20' ) start [2025-04-12 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889485', 'tblTempVendorCDR_20' ) end [2025-04-12 05:41:17] Production.INFO: ProcessCDR(1,14889485,1,1,2) [2025-04-12 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889485', 'tblTempUsageDetail_20' ) start [2025-04-12 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889485', 'tblTempUsageDetail_20' ) end [2025-04-12 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:41:21] Production.INFO: ==26530== Releasing lock... [2025-04-12 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:41:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:42:05 [end_date_ymd] => 2025-04-12 05:42:05 [RateCDR] => 1 ) [2025-04-12 05:42: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-04-12 02:42:05' and `end` < '2025-04-12 05:42: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-04-12 05:42:18] Production.INFO: count ==147 [2025-04-12 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:42:05 - End Time 2025-04-12 05:42:05 [2025-04-12 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889490', 'tblTempUsageDetail_20' ) start [2025-04-12 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889490', 'tblTempUsageDetail_20' ) end [2025-04-12 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889490', 'tblTempVendorCDR_20' ) start [2025-04-12 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889490', 'tblTempVendorCDR_20' ) end [2025-04-12 05:42:18] Production.INFO: ProcessCDR(1,14889490,1,1,2) [2025-04-12 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889490', 'tblTempUsageDetail_20' ) start [2025-04-12 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889490', 'tblTempUsageDetail_20' ) end [2025-04-12 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:42:22] Production.INFO: ==26606== Releasing lock... [2025-04-12 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:42:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:43:05 [end_date_ymd] => 2025-04-12 05:43:05 [RateCDR] => 1 ) [2025-04-12 05:43: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-04-12 02:43:05' and `end` < '2025-04-12 05:43: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-04-12 05:43:18] Production.INFO: count ==147 [2025-04-12 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:43:05 - End Time 2025-04-12 05:43:05 [2025-04-12 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889495', 'tblTempUsageDetail_20' ) start [2025-04-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889495', 'tblTempUsageDetail_20' ) end [2025-04-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889495', 'tblTempVendorCDR_20' ) start [2025-04-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889495', 'tblTempVendorCDR_20' ) end [2025-04-12 05:43:18] Production.INFO: ProcessCDR(1,14889495,1,1,2) [2025-04-12 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889495', 'tblTempUsageDetail_20' ) start [2025-04-12 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889495', 'tblTempUsageDetail_20' ) end [2025-04-12 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:43:22] Production.INFO: ==26679== Releasing lock... [2025-04-12 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:43:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:44:05 [end_date_ymd] => 2025-04-12 05:44:05 [RateCDR] => 1 ) [2025-04-12 05:44: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-04-12 02:44:05' and `end` < '2025-04-12 05:44: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-04-12 05:44:18] Production.INFO: count ==147 [2025-04-12 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:44:05 - End Time 2025-04-12 05:44:05 [2025-04-12 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889500', 'tblTempUsageDetail_20' ) start [2025-04-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889500', 'tblTempUsageDetail_20' ) end [2025-04-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889500', 'tblTempVendorCDR_20' ) start [2025-04-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889500', 'tblTempVendorCDR_20' ) end [2025-04-12 05:44:18] Production.INFO: ProcessCDR(1,14889500,1,1,2) [2025-04-12 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889500', 'tblTempUsageDetail_20' ) start [2025-04-12 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889500', 'tblTempUsageDetail_20' ) end [2025-04-12 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:44:21] Production.INFO: ==26752== Releasing lock... [2025-04-12 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:44:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:45:05 [end_date_ymd] => 2025-04-12 05:45:05 [RateCDR] => 1 ) [2025-04-12 05:45: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-04-12 02:45:05' and `end` < '2025-04-12 05:45: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-04-12 05:45:18] Production.INFO: count ==147 [2025-04-12 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:45:05 - End Time 2025-04-12 05:45:05 [2025-04-12 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889505', 'tblTempUsageDetail_20' ) start [2025-04-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889505', 'tblTempUsageDetail_20' ) end [2025-04-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889505', 'tblTempVendorCDR_20' ) start [2025-04-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889505', 'tblTempVendorCDR_20' ) end [2025-04-12 05:45:18] Production.INFO: ProcessCDR(1,14889505,1,1,2) [2025-04-12 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889505', 'tblTempUsageDetail_20' ) start [2025-04-12 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889505', 'tblTempUsageDetail_20' ) end [2025-04-12 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:45:21] Production.INFO: ==26822== Releasing lock... [2025-04-12 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:46:05 [end_date_ymd] => 2025-04-12 05:46:05 [RateCDR] => 1 ) [2025-04-12 05:46: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-04-12 02:46:05' and `end` < '2025-04-12 05:46: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-04-12 05:46:17] Production.INFO: count ==147 [2025-04-12 05:46:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:46:05 - End Time 2025-04-12 05:46:05 [2025-04-12 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889510', 'tblTempUsageDetail_20' ) start [2025-04-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889510', 'tblTempUsageDetail_20' ) end [2025-04-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889510', 'tblTempVendorCDR_20' ) start [2025-04-12 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889510', 'tblTempVendorCDR_20' ) end [2025-04-12 05:46:17] Production.INFO: ProcessCDR(1,14889510,1,1,2) [2025-04-12 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889510', 'tblTempUsageDetail_20' ) start [2025-04-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889510', 'tblTempUsageDetail_20' ) end [2025-04-12 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:46:21] Production.INFO: ==26894== Releasing lock... [2025-04-12 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:47:05 [end_date_ymd] => 2025-04-12 05:47:05 [RateCDR] => 1 ) [2025-04-12 05:47: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-04-12 02:47:05' and `end` < '2025-04-12 05:47: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-04-12 05:47:18] Production.INFO: count ==147 [2025-04-12 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:47:05 - End Time 2025-04-12 05:47:05 [2025-04-12 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889515', 'tblTempUsageDetail_20' ) start [2025-04-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889515', 'tblTempUsageDetail_20' ) end [2025-04-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889515', 'tblTempVendorCDR_20' ) start [2025-04-12 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889515', 'tblTempVendorCDR_20' ) end [2025-04-12 05:47:18] Production.INFO: ProcessCDR(1,14889515,1,1,2) [2025-04-12 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889515', 'tblTempUsageDetail_20' ) start [2025-04-12 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889515', 'tblTempUsageDetail_20' ) end [2025-04-12 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:47:21] Production.INFO: ==26970== Releasing lock... [2025-04-12 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:47:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:48:05 [end_date_ymd] => 2025-04-12 05:48:05 [RateCDR] => 1 ) [2025-04-12 05:48: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-04-12 02:48:05' and `end` < '2025-04-12 05:48: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-04-12 05:48:17] Production.INFO: count ==147 [2025-04-12 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:48:05 - End Time 2025-04-12 05:48:05 [2025-04-12 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889520', 'tblTempUsageDetail_20' ) start [2025-04-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889520', 'tblTempUsageDetail_20' ) end [2025-04-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889520', 'tblTempVendorCDR_20' ) start [2025-04-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889520', 'tblTempVendorCDR_20' ) end [2025-04-12 05:48:18] Production.INFO: ProcessCDR(1,14889520,1,1,2) [2025-04-12 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889520', 'tblTempUsageDetail_20' ) start [2025-04-12 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889520', 'tblTempUsageDetail_20' ) end [2025-04-12 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:48:21] Production.INFO: ==27080== Releasing lock... [2025-04-12 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:48:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:49:05 [end_date_ymd] => 2025-04-12 05:49:05 [RateCDR] => 1 ) [2025-04-12 05:49: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-04-12 02:49:05' and `end` < '2025-04-12 05:49: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-04-12 05:49:18] Production.INFO: count ==149 [2025-04-12 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:49:05 - End Time 2025-04-12 05:49:05 [2025-04-12 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889525', 'tblTempUsageDetail_20' ) start [2025-04-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889525', 'tblTempUsageDetail_20' ) end [2025-04-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889525', 'tblTempVendorCDR_20' ) start [2025-04-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889525', 'tblTempVendorCDR_20' ) end [2025-04-12 05:49:18] Production.INFO: ProcessCDR(1,14889525,1,1,2) [2025-04-12 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889525', 'tblTempUsageDetail_20' ) start [2025-04-12 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889525', 'tblTempUsageDetail_20' ) end [2025-04-12 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:49:22] Production.INFO: ==27153== Releasing lock... [2025-04-12 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:49:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:50:06 [end_date_ymd] => 2025-04-12 05:50:06 [RateCDR] => 1 ) [2025-04-12 05:50: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-04-12 02:50:06' and `end` < '2025-04-12 05:50: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-04-12 05:50:19] Production.INFO: count ==141 [2025-04-12 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:50:06 - End Time 2025-04-12 05:50:06 [2025-04-12 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889531', 'tblTempUsageDetail_20' ) start [2025-04-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889531', 'tblTempUsageDetail_20' ) end [2025-04-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889531', 'tblTempVendorCDR_20' ) start [2025-04-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889531', 'tblTempVendorCDR_20' ) end [2025-04-12 05:50:19] Production.INFO: ProcessCDR(1,14889531,1,1,2) [2025-04-12 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889531', 'tblTempUsageDetail_20' ) start [2025-04-12 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889531', 'tblTempUsageDetail_20' ) end [2025-04-12 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:50:22] Production.INFO: ==27224== Releasing lock... [2025-04-12 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:50:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:51:05 [end_date_ymd] => 2025-04-12 05:51:05 [RateCDR] => 1 ) [2025-04-12 05:51: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-04-12 02:51:05' and `end` < '2025-04-12 05:51: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-04-12 05:51:18] Production.INFO: count ==141 [2025-04-12 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:51:05 - End Time 2025-04-12 05:51:05 [2025-04-12 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889536', 'tblTempUsageDetail_20' ) start [2025-04-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889536', 'tblTempUsageDetail_20' ) end [2025-04-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889536', 'tblTempVendorCDR_20' ) start [2025-04-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889536', 'tblTempVendorCDR_20' ) end [2025-04-12 05:51:18] Production.INFO: ProcessCDR(1,14889536,1,1,2) [2025-04-12 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889536', 'tblTempUsageDetail_20' ) start [2025-04-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889536', 'tblTempUsageDetail_20' ) end [2025-04-12 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:51:21] Production.INFO: ==27301== Releasing lock... [2025-04-12 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:51:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:52:05 [end_date_ymd] => 2025-04-12 05:52:05 [RateCDR] => 1 ) [2025-04-12 05:52: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-04-12 02:52:05' and `end` < '2025-04-12 05:52: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-04-12 05:52:18] Production.INFO: count ==141 [2025-04-12 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:52:05 - End Time 2025-04-12 05:52:05 [2025-04-12 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889541', 'tblTempUsageDetail_20' ) start [2025-04-12 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889541', 'tblTempUsageDetail_20' ) end [2025-04-12 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889541', 'tblTempVendorCDR_20' ) start [2025-04-12 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889541', 'tblTempVendorCDR_20' ) end [2025-04-12 05:52:18] Production.INFO: ProcessCDR(1,14889541,1,1,2) [2025-04-12 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889541', 'tblTempUsageDetail_20' ) start [2025-04-12 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889541', 'tblTempUsageDetail_20' ) end [2025-04-12 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:52:21] Production.INFO: ==27372== Releasing lock... [2025-04-12 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:52:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:53:05 [end_date_ymd] => 2025-04-12 05:53:05 [RateCDR] => 1 ) [2025-04-12 05:53: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-04-12 02:53:05' and `end` < '2025-04-12 05:53: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-04-12 05:53:17] Production.INFO: count ==141 [2025-04-12 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:53:05 - End Time 2025-04-12 05:53:05 [2025-04-12 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889546', 'tblTempUsageDetail_20' ) start [2025-04-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889546', 'tblTempUsageDetail_20' ) end [2025-04-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889546', 'tblTempVendorCDR_20' ) start [2025-04-12 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889546', 'tblTempVendorCDR_20' ) end [2025-04-12 05:53:17] Production.INFO: ProcessCDR(1,14889546,1,1,2) [2025-04-12 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889546', 'tblTempUsageDetail_20' ) start [2025-04-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889546', 'tblTempUsageDetail_20' ) end [2025-04-12 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:53:21] Production.INFO: ==27444== Releasing lock... [2025-04-12 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:53:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:54:05 [end_date_ymd] => 2025-04-12 05:54:05 [RateCDR] => 1 ) [2025-04-12 05:54: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-04-12 02:54:05' and `end` < '2025-04-12 05:54: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-04-12 05:54:18] Production.INFO: count ==139 [2025-04-12 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:54:05 - End Time 2025-04-12 05:54:05 [2025-04-12 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889551', 'tblTempUsageDetail_20' ) start [2025-04-12 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889551', 'tblTempUsageDetail_20' ) end [2025-04-12 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889551', 'tblTempVendorCDR_20' ) start [2025-04-12 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889551', 'tblTempVendorCDR_20' ) end [2025-04-12 05:54:18] Production.INFO: ProcessCDR(1,14889551,1,1,2) [2025-04-12 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889551', 'tblTempUsageDetail_20' ) start [2025-04-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889551', 'tblTempUsageDetail_20' ) end [2025-04-12 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:54:22] Production.INFO: ==27515== Releasing lock... [2025-04-12 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:54:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:55:05 [end_date_ymd] => 2025-04-12 05:55:05 [RateCDR] => 1 ) [2025-04-12 05:55: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-04-12 02:55:05' and `end` < '2025-04-12 05:55: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-04-12 05:55:18] Production.INFO: count ==139 [2025-04-12 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:55:05 - End Time 2025-04-12 05:55:05 [2025-04-12 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889556', 'tblTempUsageDetail_20' ) start [2025-04-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889556', 'tblTempUsageDetail_20' ) end [2025-04-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889556', 'tblTempVendorCDR_20' ) start [2025-04-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889556', 'tblTempVendorCDR_20' ) end [2025-04-12 05:55:18] Production.INFO: ProcessCDR(1,14889556,1,1,2) [2025-04-12 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889556', 'tblTempUsageDetail_20' ) start [2025-04-12 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889556', 'tblTempUsageDetail_20' ) end [2025-04-12 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:55:21] Production.INFO: ==27584== Releasing lock... [2025-04-12 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:55:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:56:05 [end_date_ymd] => 2025-04-12 05:56:05 [RateCDR] => 1 ) [2025-04-12 05:56: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-04-12 02:56:05' and `end` < '2025-04-12 05:56: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-04-12 05:56:18] Production.INFO: count ==139 [2025-04-12 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:56:05 - End Time 2025-04-12 05:56:05 [2025-04-12 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889561', 'tblTempUsageDetail_20' ) start [2025-04-12 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889561', 'tblTempUsageDetail_20' ) end [2025-04-12 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889561', 'tblTempVendorCDR_20' ) start [2025-04-12 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889561', 'tblTempVendorCDR_20' ) end [2025-04-12 05:56:18] Production.INFO: ProcessCDR(1,14889561,1,1,2) [2025-04-12 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889561', 'tblTempUsageDetail_20' ) start [2025-04-12 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889561', 'tblTempUsageDetail_20' ) end [2025-04-12 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:56:21] Production.INFO: ==27658== Releasing lock... [2025-04-12 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:57:05 [end_date_ymd] => 2025-04-12 05:57:05 [RateCDR] => 1 ) [2025-04-12 05:57: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-04-12 02:57:05' and `end` < '2025-04-12 05:57: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-04-12 05:57:17] Production.INFO: count ==140 [2025-04-12 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-12 02:57:05 - End Time 2025-04-12 05:57:05 [2025-04-12 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889566', 'tblTempUsageDetail_20' ) start [2025-04-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889566', 'tblTempUsageDetail_20' ) end [2025-04-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889566', 'tblTempVendorCDR_20' ) start [2025-04-12 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889566', 'tblTempVendorCDR_20' ) end [2025-04-12 05:57:17] Production.INFO: ProcessCDR(1,14889566,1,1,2) [2025-04-12 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889566', 'tblTempUsageDetail_20' ) start [2025-04-12 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889566', 'tblTempUsageDetail_20' ) end [2025-04-12 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:57:23] Production.INFO: ==27753== Releasing lock... [2025-04-12 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:57:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:58:05 [end_date_ymd] => 2025-04-12 05:58:05 [RateCDR] => 1 ) [2025-04-12 05:58: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-04-12 02:58:05' and `end` < '2025-04-12 05:58: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-04-12 05:58:18] Production.INFO: count ==136 [2025-04-12 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 02:58:05 - End Time 2025-04-12 05:58:05 [2025-04-12 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889571', 'tblTempUsageDetail_20' ) start [2025-04-12 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889571', 'tblTempUsageDetail_20' ) end [2025-04-12 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889571', 'tblTempVendorCDR_20' ) start [2025-04-12 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889571', 'tblTempVendorCDR_20' ) end [2025-04-12 05:58:18] Production.INFO: ProcessCDR(1,14889571,1,1,2) [2025-04-12 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889571', 'tblTempUsageDetail_20' ) start [2025-04-12 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889571', 'tblTempUsageDetail_20' ) end [2025-04-12 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:58:22] Production.INFO: ==27826== Releasing lock... [2025-04-12 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 02:59:06 [end_date_ymd] => 2025-04-12 05:59:06 [RateCDR] => 1 ) [2025-04-12 05:59: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-04-12 02:59:06' and `end` < '2025-04-12 05:59: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-04-12 05:59:18] Production.INFO: count ==136 [2025-04-12 05:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 02:59:06 - End Time 2025-04-12 05:59:06 [2025-04-12 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889576', 'tblTempUsageDetail_20' ) start [2025-04-12 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889576', 'tblTempUsageDetail_20' ) end [2025-04-12 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889576', 'tblTempVendorCDR_20' ) start [2025-04-12 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889576', 'tblTempVendorCDR_20' ) end [2025-04-12 05:59:19] Production.INFO: ProcessCDR(1,14889576,1,1,2) [2025-04-12 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889576', 'tblTempUsageDetail_20' ) start [2025-04-12 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889576', 'tblTempUsageDetail_20' ) end [2025-04-12 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 05:59:22] Production.INFO: ==27896== Releasing lock... [2025-04-12 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 05:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:00:06 [end_date_ymd] => 2025-04-12 06:00:06 [RateCDR] => 1 ) [2025-04-12 06:00: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-04-12 03:00:06' and `end` < '2025-04-12 06:00: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-04-12 06:00:19] Production.INFO: count ==126 [2025-04-12 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 03:00:06 - End Time 2025-04-12 06:00:06 [2025-04-12 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889582', 'tblTempUsageDetail_20' ) start [2025-04-12 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889582', 'tblTempUsageDetail_20' ) end [2025-04-12 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889582', 'tblTempVendorCDR_20' ) start [2025-04-12 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889582', 'tblTempVendorCDR_20' ) end [2025-04-12 06:00:19] Production.INFO: ProcessCDR(1,14889582,1,1,2) [2025-04-12 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889582', 'tblTempUsageDetail_20' ) start [2025-04-12 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889582', 'tblTempUsageDetail_20' ) end [2025-04-12 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:00:22] Production.INFO: ==27968== Releasing lock... [2025-04-12 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:01:06 [end_date_ymd] => 2025-04-12 06:01:06 [RateCDR] => 1 ) [2025-04-12 06:01: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-04-12 03:01:06' and `end` < '2025-04-12 06:01: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-04-12 06:01:18] Production.INFO: count ==126 [2025-04-12 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:01:06 - End Time 2025-04-12 06:01:06 [2025-04-12 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889587', 'tblTempUsageDetail_20' ) start [2025-04-12 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889587', 'tblTempUsageDetail_20' ) end [2025-04-12 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889587', 'tblTempVendorCDR_20' ) start [2025-04-12 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889587', 'tblTempVendorCDR_20' ) end [2025-04-12 06:01:18] Production.INFO: ProcessCDR(1,14889587,1,1,2) [2025-04-12 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889587', 'tblTempUsageDetail_20' ) start [2025-04-12 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889587', 'tblTempUsageDetail_20' ) end [2025-04-12 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:01:22] Production.INFO: ==28061== Releasing lock... [2025-04-12 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:02:05 [end_date_ymd] => 2025-04-12 06:02:05 [RateCDR] => 1 ) [2025-04-12 06:02: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-04-12 03:02:05' and `end` < '2025-04-12 06:02: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-04-12 06:02:18] Production.INFO: count ==125 [2025-04-12 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:02:05 - End Time 2025-04-12 06:02:05 [2025-04-12 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889592', 'tblTempUsageDetail_20' ) start [2025-04-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889592', 'tblTempUsageDetail_20' ) end [2025-04-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889592', 'tblTempVendorCDR_20' ) start [2025-04-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889592', 'tblTempVendorCDR_20' ) end [2025-04-12 06:02:18] Production.INFO: ProcessCDR(1,14889592,1,1,2) [2025-04-12 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889592', 'tblTempUsageDetail_20' ) start [2025-04-12 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889592', 'tblTempUsageDetail_20' ) end [2025-04-12 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:02:23] Production.INFO: ==28133== Releasing lock... [2025-04-12 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:03:05 [end_date_ymd] => 2025-04-12 06:03:05 [RateCDR] => 1 ) [2025-04-12 06:03: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-04-12 03:03:05' and `end` < '2025-04-12 06:03: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-04-12 06:03:18] Production.INFO: count ==126 [2025-04-12 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:03:05 - End Time 2025-04-12 06:03:05 [2025-04-12 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889597', 'tblTempUsageDetail_20' ) start [2025-04-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889597', 'tblTempUsageDetail_20' ) end [2025-04-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889597', 'tblTempVendorCDR_20' ) start [2025-04-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889597', 'tblTempVendorCDR_20' ) end [2025-04-12 06:03:18] Production.INFO: ProcessCDR(1,14889597,1,1,2) [2025-04-12 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889597', 'tblTempUsageDetail_20' ) start [2025-04-12 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889597', 'tblTempUsageDetail_20' ) end [2025-04-12 06:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:03:23] Production.INFO: ==28209== Releasing lock... [2025-04-12 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:04:05 [end_date_ymd] => 2025-04-12 06:04:05 [RateCDR] => 1 ) [2025-04-12 06:04: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-04-12 03:04:05' and `end` < '2025-04-12 06:04: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-04-12 06:04:17] Production.INFO: count ==127 [2025-04-12 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:04:05 - End Time 2025-04-12 06:04:05 [2025-04-12 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889602', 'tblTempUsageDetail_20' ) start [2025-04-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889602', 'tblTempUsageDetail_20' ) end [2025-04-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889602', 'tblTempVendorCDR_20' ) start [2025-04-12 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889602', 'tblTempVendorCDR_20' ) end [2025-04-12 06:04:17] Production.INFO: ProcessCDR(1,14889602,1,1,2) [2025-04-12 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889602', 'tblTempUsageDetail_20' ) start [2025-04-12 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889602', 'tblTempUsageDetail_20' ) end [2025-04-12 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:04:22] Production.INFO: ==28318== Releasing lock... [2025-04-12 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:05:05 [end_date_ymd] => 2025-04-12 06:05:05 [RateCDR] => 1 ) [2025-04-12 06:05: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-04-12 03:05:05' and `end` < '2025-04-12 06:05: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-04-12 06:05:18] Production.INFO: count ==127 [2025-04-12 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:05:05 - End Time 2025-04-12 06:05:05 [2025-04-12 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889607', 'tblTempUsageDetail_20' ) start [2025-04-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889607', 'tblTempUsageDetail_20' ) end [2025-04-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889607', 'tblTempVendorCDR_20' ) start [2025-04-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889607', 'tblTempVendorCDR_20' ) end [2025-04-12 06:05:18] Production.INFO: ProcessCDR(1,14889607,1,1,2) [2025-04-12 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889607', 'tblTempUsageDetail_20' ) start [2025-04-12 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889607', 'tblTempUsageDetail_20' ) end [2025-04-12 06:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:05:23] Production.INFO: ==28389== Releasing lock... [2025-04-12 06:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:06:05 [end_date_ymd] => 2025-04-12 06:06:05 [RateCDR] => 1 ) [2025-04-12 06:06: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-04-12 03:06:05' and `end` < '2025-04-12 06:06: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-04-12 06:06:18] Production.INFO: count ==125 [2025-04-12 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:06:05 - End Time 2025-04-12 06:06:05 [2025-04-12 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889612', 'tblTempUsageDetail_20' ) start [2025-04-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889612', 'tblTempUsageDetail_20' ) end [2025-04-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889612', 'tblTempVendorCDR_20' ) start [2025-04-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889612', 'tblTempVendorCDR_20' ) end [2025-04-12 06:06:18] Production.INFO: ProcessCDR(1,14889612,1,1,2) [2025-04-12 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889612', 'tblTempUsageDetail_20' ) start [2025-04-12 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889612', 'tblTempUsageDetail_20' ) end [2025-04-12 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:06:22] Production.INFO: ==28458== Releasing lock... [2025-04-12 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:07:06 [end_date_ymd] => 2025-04-12 06:07:06 [RateCDR] => 1 ) [2025-04-12 06:07: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-04-12 03:07:06' and `end` < '2025-04-12 06:07: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-04-12 06:07:19] Production.INFO: count ==127 [2025-04-12 06:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 03:07:06 - End Time 2025-04-12 06:07:06 [2025-04-12 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889617', 'tblTempUsageDetail_20' ) start [2025-04-12 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889617', 'tblTempUsageDetail_20' ) end [2025-04-12 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889617', 'tblTempVendorCDR_20' ) start [2025-04-12 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889617', 'tblTempVendorCDR_20' ) end [2025-04-12 06:07:19] Production.INFO: ProcessCDR(1,14889617,1,1,2) [2025-04-12 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889617', 'tblTempUsageDetail_20' ) start [2025-04-12 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889617', 'tblTempUsageDetail_20' ) end [2025-04-12 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:07:22] Production.INFO: ==28535== Releasing lock... [2025-04-12 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:08:05 [end_date_ymd] => 2025-04-12 06:08:05 [RateCDR] => 1 ) [2025-04-12 06:08: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-04-12 03:08:05' and `end` < '2025-04-12 06:08: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-04-12 06:08:17] Production.INFO: count ==127 [2025-04-12 06:08:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:08:05 - End Time 2025-04-12 06:08:05 [2025-04-12 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889622', 'tblTempUsageDetail_20' ) start [2025-04-12 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889622', 'tblTempUsageDetail_20' ) end [2025-04-12 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889622', 'tblTempVendorCDR_20' ) start [2025-04-12 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889622', 'tblTempVendorCDR_20' ) end [2025-04-12 06:08:17] Production.INFO: ProcessCDR(1,14889622,1,1,2) [2025-04-12 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889622', 'tblTempUsageDetail_20' ) start [2025-04-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889622', 'tblTempUsageDetail_20' ) end [2025-04-12 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:08:21] Production.INFO: ==28609== Releasing lock... [2025-04-12 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:08:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:09:05 [end_date_ymd] => 2025-04-12 06:09:05 [RateCDR] => 1 ) [2025-04-12 06:09: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-04-12 03:09:05' and `end` < '2025-04-12 06:09: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-04-12 06:09:18] Production.INFO: count ==127 [2025-04-12 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:09:05 - End Time 2025-04-12 06:09:05 [2025-04-12 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889627', 'tblTempUsageDetail_20' ) start [2025-04-12 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889627', 'tblTempUsageDetail_20' ) end [2025-04-12 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889627', 'tblTempVendorCDR_20' ) start [2025-04-12 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889627', 'tblTempVendorCDR_20' ) end [2025-04-12 06:09:18] Production.INFO: ProcessCDR(1,14889627,1,1,2) [2025-04-12 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889627', 'tblTempUsageDetail_20' ) start [2025-04-12 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889627', 'tblTempUsageDetail_20' ) end [2025-04-12 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:09:21] Production.INFO: ==28687== Releasing lock... [2025-04-12 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:10:05 [end_date_ymd] => 2025-04-12 06:10:05 [RateCDR] => 1 ) [2025-04-12 06:10: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-04-12 03:10:05' and `end` < '2025-04-12 06:10: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-04-12 06:10:18] Production.INFO: count ==129 [2025-04-12 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:10:05 - End Time 2025-04-12 06:10:05 [2025-04-12 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889632', 'tblTempUsageDetail_20' ) start [2025-04-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889632', 'tblTempUsageDetail_20' ) end [2025-04-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889632', 'tblTempVendorCDR_20' ) start [2025-04-12 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889632', 'tblTempVendorCDR_20' ) end [2025-04-12 06:10:18] Production.INFO: ProcessCDR(1,14889632,1,1,2) [2025-04-12 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889632', 'tblTempUsageDetail_20' ) start [2025-04-12 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889632', 'tblTempUsageDetail_20' ) end [2025-04-12 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:10:21] Production.INFO: ==28759== Releasing lock... [2025-04-12 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:11:05 [end_date_ymd] => 2025-04-12 06:11:05 [RateCDR] => 1 ) [2025-04-12 06:11: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-04-12 03:11:05' and `end` < '2025-04-12 06:11: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-04-12 06:11:18] Production.INFO: count ==129 [2025-04-12 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:11:05 - End Time 2025-04-12 06:11:05 [2025-04-12 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889638', 'tblTempUsageDetail_20' ) start [2025-04-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889638', 'tblTempUsageDetail_20' ) end [2025-04-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889638', 'tblTempVendorCDR_20' ) start [2025-04-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889638', 'tblTempVendorCDR_20' ) end [2025-04-12 06:11:18] Production.INFO: ProcessCDR(1,14889638,1,1,2) [2025-04-12 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889638', 'tblTempUsageDetail_20' ) start [2025-04-12 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889638', 'tblTempUsageDetail_20' ) end [2025-04-12 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:11:21] Production.INFO: ==28835== Releasing lock... [2025-04-12 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:12:06 [end_date_ymd] => 2025-04-12 06:12:06 [RateCDR] => 1 ) [2025-04-12 06:12: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-04-12 03:12:06' and `end` < '2025-04-12 06:12: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-04-12 06:12:18] Production.INFO: count ==129 [2025-04-12 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:12:06 - End Time 2025-04-12 06:12:06 [2025-04-12 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889643', 'tblTempUsageDetail_20' ) start [2025-04-12 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889643', 'tblTempUsageDetail_20' ) end [2025-04-12 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889643', 'tblTempVendorCDR_20' ) start [2025-04-12 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889643', 'tblTempVendorCDR_20' ) end [2025-04-12 06:12:18] Production.INFO: ProcessCDR(1,14889643,1,1,2) [2025-04-12 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889643', 'tblTempUsageDetail_20' ) start [2025-04-12 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889643', 'tblTempUsageDetail_20' ) end [2025-04-12 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:12:22] Production.INFO: ==28908== Releasing lock... [2025-04-12 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:13:05 [end_date_ymd] => 2025-04-12 06:13:05 [RateCDR] => 1 ) [2025-04-12 06:13: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-04-12 03:13:05' and `end` < '2025-04-12 06:13: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-04-12 06:13:18] Production.INFO: count ==129 [2025-04-12 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:13:05 - End Time 2025-04-12 06:13:05 [2025-04-12 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889648', 'tblTempUsageDetail_20' ) start [2025-04-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889648', 'tblTempUsageDetail_20' ) end [2025-04-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889648', 'tblTempVendorCDR_20' ) start [2025-04-12 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889648', 'tblTempVendorCDR_20' ) end [2025-04-12 06:13:18] Production.INFO: ProcessCDR(1,14889648,1,1,2) [2025-04-12 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889648', 'tblTempUsageDetail_20' ) start [2025-04-12 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889648', 'tblTempUsageDetail_20' ) end [2025-04-12 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:13:21] Production.INFO: ==28978== Releasing lock... [2025-04-12 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:14:05 [end_date_ymd] => 2025-04-12 06:14:05 [RateCDR] => 1 ) [2025-04-12 06:14: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-04-12 03:14:05' and `end` < '2025-04-12 06:14: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-04-12 06:14:18] Production.INFO: count ==129 [2025-04-12 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:14:05 - End Time 2025-04-12 06:14:05 [2025-04-12 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889653', 'tblTempUsageDetail_20' ) start [2025-04-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889653', 'tblTempUsageDetail_20' ) end [2025-04-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889653', 'tblTempVendorCDR_20' ) start [2025-04-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889653', 'tblTempVendorCDR_20' ) end [2025-04-12 06:14:18] Production.INFO: ProcessCDR(1,14889653,1,1,2) [2025-04-12 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889653', 'tblTempUsageDetail_20' ) start [2025-04-12 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889653', 'tblTempUsageDetail_20' ) end [2025-04-12 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:14:22] Production.INFO: ==29056== Releasing lock... [2025-04-12 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:15:05 [end_date_ymd] => 2025-04-12 06:15:05 [RateCDR] => 1 ) [2025-04-12 06:15: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-04-12 03:15:05' and `end` < '2025-04-12 06:15: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-04-12 06:15:18] Production.INFO: count ==129 [2025-04-12 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:15:05 - End Time 2025-04-12 06:15:05 [2025-04-12 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889658', 'tblTempUsageDetail_20' ) start [2025-04-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889658', 'tblTempUsageDetail_20' ) end [2025-04-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889658', 'tblTempVendorCDR_20' ) start [2025-04-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889658', 'tblTempVendorCDR_20' ) end [2025-04-12 06:15:18] Production.INFO: ProcessCDR(1,14889658,1,1,2) [2025-04-12 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889658', 'tblTempUsageDetail_20' ) start [2025-04-12 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889658', 'tblTempUsageDetail_20' ) end [2025-04-12 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:15:21] Production.INFO: ==29126== Releasing lock... [2025-04-12 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:16:05 [end_date_ymd] => 2025-04-12 06:16:05 [RateCDR] => 1 ) [2025-04-12 06:16: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-04-12 03:16:05' and `end` < '2025-04-12 06:16: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-04-12 06:16:18] Production.INFO: count ==128 [2025-04-12 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:16:05 - End Time 2025-04-12 06:16:05 [2025-04-12 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889663', 'tblTempUsageDetail_20' ) start [2025-04-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889663', 'tblTempUsageDetail_20' ) end [2025-04-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889663', 'tblTempVendorCDR_20' ) start [2025-04-12 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889663', 'tblTempVendorCDR_20' ) end [2025-04-12 06:16:18] Production.INFO: ProcessCDR(1,14889663,1,1,2) [2025-04-12 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889663', 'tblTempUsageDetail_20' ) start [2025-04-12 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889663', 'tblTempUsageDetail_20' ) end [2025-04-12 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:16:21] Production.INFO: ==29201== Releasing lock... [2025-04-12 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:17:05 [end_date_ymd] => 2025-04-12 06:17:05 [RateCDR] => 1 ) [2025-04-12 06:17: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-04-12 03:17:05' and `end` < '2025-04-12 06:17: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-04-12 06:17:17] Production.INFO: count ==127 [2025-04-12 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:17:05 - End Time 2025-04-12 06:17:05 [2025-04-12 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889668', 'tblTempUsageDetail_20' ) start [2025-04-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889668', 'tblTempUsageDetail_20' ) end [2025-04-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889668', 'tblTempVendorCDR_20' ) start [2025-04-12 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889668', 'tblTempVendorCDR_20' ) end [2025-04-12 06:17:17] Production.INFO: ProcessCDR(1,14889668,1,1,2) [2025-04-12 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889668', 'tblTempUsageDetail_20' ) start [2025-04-12 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889668', 'tblTempUsageDetail_20' ) end [2025-04-12 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:17:21] Production.INFO: ==29272== Releasing lock... [2025-04-12 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:18:05 [end_date_ymd] => 2025-04-12 06:18:05 [RateCDR] => 1 ) [2025-04-12 06:18: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-04-12 03:18:05' and `end` < '2025-04-12 06:18: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-04-12 06:18:18] Production.INFO: count ==127 [2025-04-12 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:18:05 - End Time 2025-04-12 06:18:05 [2025-04-12 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889673', 'tblTempUsageDetail_20' ) start [2025-04-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889673', 'tblTempUsageDetail_20' ) end [2025-04-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889673', 'tblTempVendorCDR_20' ) start [2025-04-12 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889673', 'tblTempVendorCDR_20' ) end [2025-04-12 06:18:18] Production.INFO: ProcessCDR(1,14889673,1,1,2) [2025-04-12 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889673', 'tblTempUsageDetail_20' ) start [2025-04-12 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889673', 'tblTempUsageDetail_20' ) end [2025-04-12 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:18:21] Production.INFO: ==29348== Releasing lock... [2025-04-12 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:19:05 [end_date_ymd] => 2025-04-12 06:19:05 [RateCDR] => 1 ) [2025-04-12 06:19: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-04-12 03:19:05' and `end` < '2025-04-12 06:19: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-04-12 06:19:18] Production.INFO: count ==127 [2025-04-12 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:19:05 - End Time 2025-04-12 06:19:05 [2025-04-12 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889678', 'tblTempUsageDetail_20' ) start [2025-04-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889678', 'tblTempUsageDetail_20' ) end [2025-04-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889678', 'tblTempVendorCDR_20' ) start [2025-04-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889678', 'tblTempVendorCDR_20' ) end [2025-04-12 06:19:18] Production.INFO: ProcessCDR(1,14889678,1,1,2) [2025-04-12 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889678', 'tblTempUsageDetail_20' ) start [2025-04-12 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889678', 'tblTempUsageDetail_20' ) end [2025-04-12 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:19:21] Production.INFO: ==29464== Releasing lock... [2025-04-12 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:20:06 [end_date_ymd] => 2025-04-12 06:20:06 [RateCDR] => 1 ) [2025-04-12 06:20: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-04-12 03:20:06' and `end` < '2025-04-12 06:20: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-04-12 06:20:18] Production.INFO: count ==119 [2025-04-12 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:20:06 - End Time 2025-04-12 06:20:06 [2025-04-12 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889684', 'tblTempUsageDetail_20' ) start [2025-04-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889684', 'tblTempUsageDetail_20' ) end [2025-04-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889684', 'tblTempVendorCDR_20' ) start [2025-04-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889684', 'tblTempVendorCDR_20' ) end [2025-04-12 06:20:18] Production.INFO: ProcessCDR(1,14889684,1,1,2) [2025-04-12 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889684', 'tblTempUsageDetail_20' ) start [2025-04-12 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889684', 'tblTempUsageDetail_20' ) end [2025-04-12 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:20:22] Production.INFO: ==29536== Releasing lock... [2025-04-12 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:21:04 [end_date_ymd] => 2025-04-12 06:21:04 [RateCDR] => 1 ) [2025-04-12 06:21: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-04-12 03:21:04' and `end` < '2025-04-12 06:21: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-04-12 06:21:17] Production.INFO: count ==119 [2025-04-12 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:21:04 - End Time 2025-04-12 06:21:04 [2025-04-12 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889689', 'tblTempUsageDetail_20' ) start [2025-04-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889689', 'tblTempUsageDetail_20' ) end [2025-04-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889689', 'tblTempVendorCDR_20' ) start [2025-04-12 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889689', 'tblTempVendorCDR_20' ) end [2025-04-12 06:21:17] Production.INFO: ProcessCDR(1,14889689,1,1,2) [2025-04-12 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889689', 'tblTempUsageDetail_20' ) start [2025-04-12 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889689', 'tblTempUsageDetail_20' ) end [2025-04-12 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:21:20] Production.INFO: ==29608== Releasing lock... [2025-04-12 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:22:05 [end_date_ymd] => 2025-04-12 06:22:05 [RateCDR] => 1 ) [2025-04-12 06:22: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-04-12 03:22:05' and `end` < '2025-04-12 06:22: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-04-12 06:22:18] Production.INFO: count ==119 [2025-04-12 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:22:05 - End Time 2025-04-12 06:22:05 [2025-04-12 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889694', 'tblTempUsageDetail_20' ) start [2025-04-12 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889694', 'tblTempUsageDetail_20' ) end [2025-04-12 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889694', 'tblTempVendorCDR_20' ) start [2025-04-12 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889694', 'tblTempVendorCDR_20' ) end [2025-04-12 06:22:18] Production.INFO: ProcessCDR(1,14889694,1,1,2) [2025-04-12 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889694', 'tblTempUsageDetail_20' ) start [2025-04-12 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889694', 'tblTempUsageDetail_20' ) end [2025-04-12 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:22:21] Production.INFO: ==29685== Releasing lock... [2025-04-12 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:23:05 [end_date_ymd] => 2025-04-12 06:23:05 [RateCDR] => 1 ) [2025-04-12 06:23: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-04-12 03:23:05' and `end` < '2025-04-12 06:23: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-04-12 06:23:18] Production.INFO: count ==119 [2025-04-12 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:23:05 - End Time 2025-04-12 06:23:05 [2025-04-12 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889699', 'tblTempUsageDetail_20' ) start [2025-04-12 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889699', 'tblTempUsageDetail_20' ) end [2025-04-12 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889699', 'tblTempVendorCDR_20' ) start [2025-04-12 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889699', 'tblTempVendorCDR_20' ) end [2025-04-12 06:23:18] Production.INFO: ProcessCDR(1,14889699,1,1,2) [2025-04-12 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889699', 'tblTempUsageDetail_20' ) start [2025-04-12 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889699', 'tblTempUsageDetail_20' ) end [2025-04-12 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:23:21] Production.INFO: ==29755== Releasing lock... [2025-04-12 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:24:05 [end_date_ymd] => 2025-04-12 06:24:05 [RateCDR] => 1 ) [2025-04-12 06:24: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-04-12 03:24:05' and `end` < '2025-04-12 06:24: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-04-12 06:24:18] Production.INFO: count ==120 [2025-04-12 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:24:05 - End Time 2025-04-12 06:24:05 [2025-04-12 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889704', 'tblTempUsageDetail_20' ) start [2025-04-12 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889704', 'tblTempUsageDetail_20' ) end [2025-04-12 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889704', 'tblTempVendorCDR_20' ) start [2025-04-12 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889704', 'tblTempVendorCDR_20' ) end [2025-04-12 06:24:18] Production.INFO: ProcessCDR(1,14889704,1,1,2) [2025-04-12 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889704', 'tblTempUsageDetail_20' ) start [2025-04-12 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889704', 'tblTempUsageDetail_20' ) end [2025-04-12 06:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:24:23] Production.INFO: ==29829== Releasing lock... [2025-04-12 06:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:24:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:25:05 [end_date_ymd] => 2025-04-12 06:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 03:25:05' and `end` < '2025-04-12 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-04-12 06:25:18] Production.INFO: count ==120 [2025-04-12 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:25:05 - End Time 2025-04-12 06:25:05 [2025-04-12 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889709', 'tblTempUsageDetail_20' ) start [2025-04-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889709', 'tblTempUsageDetail_20' ) end [2025-04-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889709', 'tblTempVendorCDR_20' ) start [2025-04-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889709', 'tblTempVendorCDR_20' ) end [2025-04-12 06:25:18] Production.INFO: ProcessCDR(1,14889709,1,1,2) [2025-04-12 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889709', 'tblTempUsageDetail_20' ) start [2025-04-12 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889709', 'tblTempUsageDetail_20' ) end [2025-04-12 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:25:22] Production.INFO: ==29905== Releasing lock... [2025-04-12 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:26:05 [end_date_ymd] => 2025-04-12 06:26:05 [RateCDR] => 1 ) [2025-04-12 06:26: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-04-12 03:26:05' and `end` < '2025-04-12 06:26: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-04-12 06:26:18] Production.INFO: count ==118 [2025-04-12 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:26:05 - End Time 2025-04-12 06:26:05 [2025-04-12 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889714', 'tblTempUsageDetail_20' ) start [2025-04-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889714', 'tblTempUsageDetail_20' ) end [2025-04-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889714', 'tblTempVendorCDR_20' ) start [2025-04-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889714', 'tblTempVendorCDR_20' ) end [2025-04-12 06:26:18] Production.INFO: ProcessCDR(1,14889714,1,1,2) [2025-04-12 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889714', 'tblTempUsageDetail_20' ) start [2025-04-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889714', 'tblTempUsageDetail_20' ) end [2025-04-12 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:26:21] Production.INFO: ==29978== Releasing lock... [2025-04-12 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:27:05 [end_date_ymd] => 2025-04-12 06:27:05 [RateCDR] => 1 ) [2025-04-12 06:27: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-04-12 03:27:05' and `end` < '2025-04-12 06:27: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-04-12 06:27:17] Production.INFO: count ==116 [2025-04-12 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:27:05 - End Time 2025-04-12 06:27:05 [2025-04-12 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889719', 'tblTempUsageDetail_20' ) start [2025-04-12 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889719', 'tblTempUsageDetail_20' ) end [2025-04-12 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889719', 'tblTempVendorCDR_20' ) start [2025-04-12 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889719', 'tblTempVendorCDR_20' ) end [2025-04-12 06:27:17] Production.INFO: ProcessCDR(1,14889719,1,1,2) [2025-04-12 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889719', 'tblTempUsageDetail_20' ) start [2025-04-12 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889719', 'tblTempUsageDetail_20' ) end [2025-04-12 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:27:21] Production.INFO: ==30049== Releasing lock... [2025-04-12 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:28:06 [end_date_ymd] => 2025-04-12 06:28:06 [RateCDR] => 1 ) [2025-04-12 06:28: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-04-12 03:28:06' and `end` < '2025-04-12 06:28: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-04-12 06:28:18] Production.INFO: count ==116 [2025-04-12 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:28:06 - End Time 2025-04-12 06:28:06 [2025-04-12 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889724', 'tblTempUsageDetail_20' ) start [2025-04-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889724', 'tblTempUsageDetail_20' ) end [2025-04-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889724', 'tblTempVendorCDR_20' ) start [2025-04-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889724', 'tblTempVendorCDR_20' ) end [2025-04-12 06:28:18] Production.INFO: ProcessCDR(1,14889724,1,1,2) [2025-04-12 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889724', 'tblTempUsageDetail_20' ) start [2025-04-12 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889724', 'tblTempUsageDetail_20' ) end [2025-04-12 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:28:22] Production.INFO: ==30129== Releasing lock... [2025-04-12 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:29:05 [end_date_ymd] => 2025-04-12 06:29:05 [RateCDR] => 1 ) [2025-04-12 06:29: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-04-12 03:29:05' and `end` < '2025-04-12 06:29: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-04-12 06:29:18] Production.INFO: count ==115 [2025-04-12 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:29:05 - End Time 2025-04-12 06:29:05 [2025-04-12 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889729', 'tblTempUsageDetail_20' ) start [2025-04-12 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889729', 'tblTempUsageDetail_20' ) end [2025-04-12 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889729', 'tblTempVendorCDR_20' ) start [2025-04-12 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889729', 'tblTempVendorCDR_20' ) end [2025-04-12 06:29:18] Production.INFO: ProcessCDR(1,14889729,1,1,2) [2025-04-12 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889729', 'tblTempUsageDetail_20' ) start [2025-04-12 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889729', 'tblTempUsageDetail_20' ) end [2025-04-12 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:29:22] Production.INFO: ==30202== Releasing lock... [2025-04-12 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:30:05 [end_date_ymd] => 2025-04-12 06:30:05 [RateCDR] => 1 ) [2025-04-12 06:30: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-04-12 03:30:05' and `end` < '2025-04-12 06:30: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-04-12 06:30:18] Production.INFO: count ==109 [2025-04-12 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:30:05 - End Time 2025-04-12 06:30:05 [2025-04-12 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889735', 'tblTempUsageDetail_20' ) start [2025-04-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889735', 'tblTempUsageDetail_20' ) end [2025-04-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889735', 'tblTempVendorCDR_20' ) start [2025-04-12 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889735', 'tblTempVendorCDR_20' ) end [2025-04-12 06:30:18] Production.INFO: ProcessCDR(1,14889735,1,1,2) [2025-04-12 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889735', 'tblTempUsageDetail_20' ) start [2025-04-12 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889735', 'tblTempUsageDetail_20' ) end [2025-04-12 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:30:22] Production.INFO: ==30283== Releasing lock... [2025-04-12 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:31:05 [end_date_ymd] => 2025-04-12 06:31:05 [RateCDR] => 1 ) [2025-04-12 06:31: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-04-12 03:31:05' and `end` < '2025-04-12 06:31: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-04-12 06:31:18] Production.INFO: count ==108 [2025-04-12 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:31:05 - End Time 2025-04-12 06:31:05 [2025-04-12 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889740', 'tblTempUsageDetail_20' ) start [2025-04-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889740', 'tblTempUsageDetail_20' ) end [2025-04-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889740', 'tblTempVendorCDR_20' ) start [2025-04-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889740', 'tblTempVendorCDR_20' ) end [2025-04-12 06:31:18] Production.INFO: ProcessCDR(1,14889740,1,1,2) [2025-04-12 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889740', 'tblTempUsageDetail_20' ) start [2025-04-12 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889740', 'tblTempUsageDetail_20' ) end [2025-04-12 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:31:22] Production.INFO: ==30359== Releasing lock... [2025-04-12 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:32:05 [end_date_ymd] => 2025-04-12 06:32:05 [RateCDR] => 1 ) [2025-04-12 06:32: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-04-12 03:32:05' and `end` < '2025-04-12 06:32: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-04-12 06:32:18] Production.INFO: count ==111 [2025-04-12 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:32:05 - End Time 2025-04-12 06:32:05 [2025-04-12 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889745', 'tblTempUsageDetail_20' ) start [2025-04-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889745', 'tblTempUsageDetail_20' ) end [2025-04-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889745', 'tblTempVendorCDR_20' ) start [2025-04-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889745', 'tblTempVendorCDR_20' ) end [2025-04-12 06:32:18] Production.INFO: ProcessCDR(1,14889745,1,1,2) [2025-04-12 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889745', 'tblTempUsageDetail_20' ) start [2025-04-12 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889745', 'tblTempUsageDetail_20' ) end [2025-04-12 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:32:22] Production.INFO: ==30431== Releasing lock... [2025-04-12 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:33:05 [end_date_ymd] => 2025-04-12 06:33:05 [RateCDR] => 1 ) [2025-04-12 06:33: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-04-12 03:33:05' and `end` < '2025-04-12 06:33: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-04-12 06:33:18] Production.INFO: count ==112 [2025-04-12 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:33:05 - End Time 2025-04-12 06:33:05 [2025-04-12 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889750', 'tblTempUsageDetail_20' ) start [2025-04-12 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889750', 'tblTempUsageDetail_20' ) end [2025-04-12 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889750', 'tblTempVendorCDR_20' ) start [2025-04-12 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889750', 'tblTempVendorCDR_20' ) end [2025-04-12 06:33:18] Production.INFO: ProcessCDR(1,14889750,1,1,2) [2025-04-12 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889750', 'tblTempUsageDetail_20' ) start [2025-04-12 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889750', 'tblTempUsageDetail_20' ) end [2025-04-12 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:33:23] Production.INFO: ==30501== Releasing lock... [2025-04-12 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:33:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:34:05 [end_date_ymd] => 2025-04-12 06:34:05 [RateCDR] => 1 ) [2025-04-12 06:34: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-04-12 03:34:05' and `end` < '2025-04-12 06:34: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-04-12 06:34:18] Production.INFO: count ==112 [2025-04-12 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:34:05 - End Time 2025-04-12 06:34:05 [2025-04-12 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889755', 'tblTempUsageDetail_20' ) start [2025-04-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889755', 'tblTempUsageDetail_20' ) end [2025-04-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889755', 'tblTempVendorCDR_20' ) start [2025-04-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889755', 'tblTempVendorCDR_20' ) end [2025-04-12 06:34:18] Production.INFO: ProcessCDR(1,14889755,1,1,2) [2025-04-12 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889755', 'tblTempUsageDetail_20' ) start [2025-04-12 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889755', 'tblTempUsageDetail_20' ) end [2025-04-12 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:34:22] Production.INFO: ==30572== Releasing lock... [2025-04-12 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:35:05 [end_date_ymd] => 2025-04-12 06:35:05 [RateCDR] => 1 ) [2025-04-12 06:35: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-04-12 03:35:05' and `end` < '2025-04-12 06:35: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-04-12 06:35:18] Production.INFO: count ==112 [2025-04-12 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:35:05 - End Time 2025-04-12 06:35:05 [2025-04-12 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889760', 'tblTempUsageDetail_20' ) start [2025-04-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889760', 'tblTempUsageDetail_20' ) end [2025-04-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889760', 'tblTempVendorCDR_20' ) start [2025-04-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889760', 'tblTempVendorCDR_20' ) end [2025-04-12 06:35:18] Production.INFO: ProcessCDR(1,14889760,1,1,2) [2025-04-12 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889760', 'tblTempUsageDetail_20' ) start [2025-04-12 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889760', 'tblTempUsageDetail_20' ) end [2025-04-12 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:35:22] Production.INFO: ==30688== Releasing lock... [2025-04-12 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:36:05 [end_date_ymd] => 2025-04-12 06:36:05 [RateCDR] => 1 ) [2025-04-12 06:36: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-04-12 03:36:05' and `end` < '2025-04-12 06:36: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-04-12 06:36:18] Production.INFO: count ==112 [2025-04-12 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:36:05 - End Time 2025-04-12 06:36:05 [2025-04-12 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889765', 'tblTempUsageDetail_20' ) start [2025-04-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889765', 'tblTempUsageDetail_20' ) end [2025-04-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889765', 'tblTempVendorCDR_20' ) start [2025-04-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889765', 'tblTempVendorCDR_20' ) end [2025-04-12 06:36:18] Production.INFO: ProcessCDR(1,14889765,1,1,2) [2025-04-12 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889765', 'tblTempUsageDetail_20' ) start [2025-04-12 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889765', 'tblTempUsageDetail_20' ) end [2025-04-12 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:36:22] Production.INFO: ==30761== Releasing lock... [2025-04-12 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:37:05 [end_date_ymd] => 2025-04-12 06:37:05 [RateCDR] => 1 ) [2025-04-12 06:37: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-04-12 03:37:05' and `end` < '2025-04-12 06:37: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-04-12 06:37:18] Production.INFO: count ==112 [2025-04-12 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:37:05 - End Time 2025-04-12 06:37:05 [2025-04-12 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889770', 'tblTempUsageDetail_20' ) start [2025-04-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889770', 'tblTempUsageDetail_20' ) end [2025-04-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889770', 'tblTempVendorCDR_20' ) start [2025-04-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889770', 'tblTempVendorCDR_20' ) end [2025-04-12 06:37:18] Production.INFO: ProcessCDR(1,14889770,1,1,2) [2025-04-12 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889770', 'tblTempUsageDetail_20' ) start [2025-04-12 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889770', 'tblTempUsageDetail_20' ) end [2025-04-12 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:37:21] Production.INFO: ==30835== Releasing lock... [2025-04-12 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:38:05 [end_date_ymd] => 2025-04-12 06:38:05 [RateCDR] => 1 ) [2025-04-12 06:38: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-04-12 03:38:05' and `end` < '2025-04-12 06:38: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-04-12 06:38:17] Production.INFO: count ==112 [2025-04-12 06:38:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:38:05 - End Time 2025-04-12 06:38:05 [2025-04-12 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889775', 'tblTempUsageDetail_20' ) start [2025-04-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889775', 'tblTempUsageDetail_20' ) end [2025-04-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889775', 'tblTempVendorCDR_20' ) start [2025-04-12 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889775', 'tblTempVendorCDR_20' ) end [2025-04-12 06:38:17] Production.INFO: ProcessCDR(1,14889775,1,1,2) [2025-04-12 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889775', 'tblTempUsageDetail_20' ) start [2025-04-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889775', 'tblTempUsageDetail_20' ) end [2025-04-12 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:38:21] Production.INFO: ==30903== Releasing lock... [2025-04-12 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:39:05 [end_date_ymd] => 2025-04-12 06:39:05 [RateCDR] => 1 ) [2025-04-12 06:39: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-04-12 03:39:05' and `end` < '2025-04-12 06:39: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-04-12 06:39:18] Production.INFO: count ==112 [2025-04-12 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:39:05 - End Time 2025-04-12 06:39:05 [2025-04-12 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889780', 'tblTempUsageDetail_20' ) start [2025-04-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889780', 'tblTempUsageDetail_20' ) end [2025-04-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889780', 'tblTempVendorCDR_20' ) start [2025-04-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889780', 'tblTempVendorCDR_20' ) end [2025-04-12 06:39:18] Production.INFO: ProcessCDR(1,14889780,1,1,2) [2025-04-12 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889780', 'tblTempUsageDetail_20' ) start [2025-04-12 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889780', 'tblTempUsageDetail_20' ) end [2025-04-12 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:39:22] Production.INFO: ==30975== Releasing lock... [2025-04-12 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:40:05 [end_date_ymd] => 2025-04-12 06:40:05 [RateCDR] => 1 ) [2025-04-12 06:40: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-04-12 03:40:05' and `end` < '2025-04-12 06:40: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-04-12 06:40:18] Production.INFO: count ==111 [2025-04-12 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:40:05 - End Time 2025-04-12 06:40:05 [2025-04-12 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889786', 'tblTempUsageDetail_20' ) start [2025-04-12 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889786', 'tblTempUsageDetail_20' ) end [2025-04-12 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889786', 'tblTempVendorCDR_20' ) start [2025-04-12 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889786', 'tblTempVendorCDR_20' ) end [2025-04-12 06:40:18] Production.INFO: ProcessCDR(1,14889786,1,1,2) [2025-04-12 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889786', 'tblTempUsageDetail_20' ) start [2025-04-12 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889786', 'tblTempUsageDetail_20' ) end [2025-04-12 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:40:21] Production.INFO: ==31049== Releasing lock... [2025-04-12 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:41:05 [end_date_ymd] => 2025-04-12 06:41:05 [RateCDR] => 1 ) [2025-04-12 06:41: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-04-12 03:41:05' and `end` < '2025-04-12 06:41: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-04-12 06:41:18] Production.INFO: count ==111 [2025-04-12 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:41:05 - End Time 2025-04-12 06:41:05 [2025-04-12 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889791', 'tblTempUsageDetail_20' ) start [2025-04-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889791', 'tblTempUsageDetail_20' ) end [2025-04-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889791', 'tblTempVendorCDR_20' ) start [2025-04-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889791', 'tblTempVendorCDR_20' ) end [2025-04-12 06:41:18] Production.INFO: ProcessCDR(1,14889791,1,1,2) [2025-04-12 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889791', 'tblTempUsageDetail_20' ) start [2025-04-12 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889791', 'tblTempUsageDetail_20' ) end [2025-04-12 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:41:21] Production.INFO: ==31126== Releasing lock... [2025-04-12 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:42:05 [end_date_ymd] => 2025-04-12 06:42:05 [RateCDR] => 1 ) [2025-04-12 06:42: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-04-12 03:42:05' and `end` < '2025-04-12 06:42: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-04-12 06:42:18] Production.INFO: count ==111 [2025-04-12 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:42:05 - End Time 2025-04-12 06:42:05 [2025-04-12 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889796', 'tblTempUsageDetail_20' ) start [2025-04-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889796', 'tblTempUsageDetail_20' ) end [2025-04-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889796', 'tblTempVendorCDR_20' ) start [2025-04-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889796', 'tblTempVendorCDR_20' ) end [2025-04-12 06:42:18] Production.INFO: ProcessCDR(1,14889796,1,1,2) [2025-04-12 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889796', 'tblTempUsageDetail_20' ) start [2025-04-12 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889796', 'tblTempUsageDetail_20' ) end [2025-04-12 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:42:22] Production.INFO: ==31205== Releasing lock... [2025-04-12 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:43:05 [end_date_ymd] => 2025-04-12 06:43:05 [RateCDR] => 1 ) [2025-04-12 06:43: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-04-12 03:43:05' and `end` < '2025-04-12 06:43: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-04-12 06:43:18] Production.INFO: count ==111 [2025-04-12 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:43:05 - End Time 2025-04-12 06:43:05 [2025-04-12 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889801', 'tblTempUsageDetail_20' ) start [2025-04-12 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889801', 'tblTempUsageDetail_20' ) end [2025-04-12 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889801', 'tblTempVendorCDR_20' ) start [2025-04-12 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889801', 'tblTempVendorCDR_20' ) end [2025-04-12 06:43:18] Production.INFO: ProcessCDR(1,14889801,1,1,2) [2025-04-12 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889801', 'tblTempUsageDetail_20' ) start [2025-04-12 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889801', 'tblTempUsageDetail_20' ) end [2025-04-12 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:43:21] Production.INFO: ==31280== Releasing lock... [2025-04-12 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:44:06 [end_date_ymd] => 2025-04-12 06:44:06 [RateCDR] => 1 ) [2025-04-12 06:44: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-04-12 03:44:06' and `end` < '2025-04-12 06:44: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-04-12 06:44:19] Production.INFO: count ==113 [2025-04-12 06:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 03:44:06 - End Time 2025-04-12 06:44:06 [2025-04-12 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889806', 'tblTempUsageDetail_20' ) start [2025-04-12 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889806', 'tblTempUsageDetail_20' ) end [2025-04-12 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889806', 'tblTempVendorCDR_20' ) start [2025-04-12 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889806', 'tblTempVendorCDR_20' ) end [2025-04-12 06:44:19] Production.INFO: ProcessCDR(1,14889806,1,1,2) [2025-04-12 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889806', 'tblTempUsageDetail_20' ) start [2025-04-12 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889806', 'tblTempUsageDetail_20' ) end [2025-04-12 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:44:22] Production.INFO: ==31350== Releasing lock... [2025-04-12 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:45:05 [end_date_ymd] => 2025-04-12 06:45:05 [RateCDR] => 1 ) [2025-04-12 06:45: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-04-12 03:45:05' and `end` < '2025-04-12 06:45: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-04-12 06:45:17] Production.INFO: count ==113 [2025-04-12 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:45:05 - End Time 2025-04-12 06:45:05 [2025-04-12 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889811', 'tblTempUsageDetail_20' ) start [2025-04-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889811', 'tblTempUsageDetail_20' ) end [2025-04-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889811', 'tblTempVendorCDR_20' ) start [2025-04-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889811', 'tblTempVendorCDR_20' ) end [2025-04-12 06:45:17] Production.INFO: ProcessCDR(1,14889811,1,1,2) [2025-04-12 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889811', 'tblTempUsageDetail_20' ) start [2025-04-12 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889811', 'tblTempUsageDetail_20' ) end [2025-04-12 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:45:21] Production.INFO: ==31423== Releasing lock... [2025-04-12 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:46:05 [end_date_ymd] => 2025-04-12 06:46:05 [RateCDR] => 1 ) [2025-04-12 06:46: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-04-12 03:46:05' and `end` < '2025-04-12 06:46: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-04-12 06:46:18] Production.INFO: count ==113 [2025-04-12 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:46:05 - End Time 2025-04-12 06:46:05 [2025-04-12 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889816', 'tblTempUsageDetail_20' ) start [2025-04-12 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889816', 'tblTempUsageDetail_20' ) end [2025-04-12 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889816', 'tblTempVendorCDR_20' ) start [2025-04-12 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889816', 'tblTempVendorCDR_20' ) end [2025-04-12 06:46:18] Production.INFO: ProcessCDR(1,14889816,1,1,2) [2025-04-12 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889816', 'tblTempUsageDetail_20' ) start [2025-04-12 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889816', 'tblTempUsageDetail_20' ) end [2025-04-12 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:46:22] Production.INFO: ==31494== Releasing lock... [2025-04-12 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:47:05 [end_date_ymd] => 2025-04-12 06:47:05 [RateCDR] => 1 ) [2025-04-12 06:47: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-04-12 03:47:05' and `end` < '2025-04-12 06:47: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-04-12 06:47:18] Production.INFO: count ==113 [2025-04-12 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:47:05 - End Time 2025-04-12 06:47:05 [2025-04-12 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889821', 'tblTempUsageDetail_20' ) start [2025-04-12 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889821', 'tblTempUsageDetail_20' ) end [2025-04-12 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889821', 'tblTempVendorCDR_20' ) start [2025-04-12 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889821', 'tblTempVendorCDR_20' ) end [2025-04-12 06:47:18] Production.INFO: ProcessCDR(1,14889821,1,1,2) [2025-04-12 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889821', 'tblTempUsageDetail_20' ) start [2025-04-12 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889821', 'tblTempUsageDetail_20' ) end [2025-04-12 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:47:22] Production.INFO: ==31567== Releasing lock... [2025-04-12 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:48:05 [end_date_ymd] => 2025-04-12 06:48:05 [RateCDR] => 1 ) [2025-04-12 06:48: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-04-12 03:48:05' and `end` < '2025-04-12 06:48: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-04-12 06:48:17] Production.INFO: count ==113 [2025-04-12 06:48:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:48:05 - End Time 2025-04-12 06:48:05 [2025-04-12 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889826', 'tblTempUsageDetail_20' ) start [2025-04-12 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889826', 'tblTempUsageDetail_20' ) end [2025-04-12 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889826', 'tblTempVendorCDR_20' ) start [2025-04-12 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889826', 'tblTempVendorCDR_20' ) end [2025-04-12 06:48:17] Production.INFO: ProcessCDR(1,14889826,1,1,2) [2025-04-12 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889826', 'tblTempUsageDetail_20' ) start [2025-04-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889826', 'tblTempUsageDetail_20' ) end [2025-04-12 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:48:21] Production.INFO: ==31640== Releasing lock... [2025-04-12 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:49:05 [end_date_ymd] => 2025-04-12 06:49:05 [RateCDR] => 1 ) [2025-04-12 06:49: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-04-12 03:49:05' and `end` < '2025-04-12 06:49: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-04-12 06:49:18] Production.INFO: count ==114 [2025-04-12 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:49:05 - End Time 2025-04-12 06:49:05 [2025-04-12 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889831', 'tblTempUsageDetail_20' ) start [2025-04-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889831', 'tblTempUsageDetail_20' ) end [2025-04-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889831', 'tblTempVendorCDR_20' ) start [2025-04-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889831', 'tblTempVendorCDR_20' ) end [2025-04-12 06:49:18] Production.INFO: ProcessCDR(1,14889831,1,1,2) [2025-04-12 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889831', 'tblTempUsageDetail_20' ) start [2025-04-12 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889831', 'tblTempUsageDetail_20' ) end [2025-04-12 06:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:49:23] Production.INFO: ==31719== Releasing lock... [2025-04-12 06:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:50:06 [end_date_ymd] => 2025-04-12 06:50:06 [RateCDR] => 1 ) [2025-04-12 06:50: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-04-12 03:50:06' and `end` < '2025-04-12 06:50: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-04-12 06:50:19] Production.INFO: count ==113 [2025-04-12 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 03:50:06 - End Time 2025-04-12 06:50:06 [2025-04-12 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889836', 'tblTempUsageDetail_20' ) start [2025-04-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889836', 'tblTempUsageDetail_20' ) end [2025-04-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889836', 'tblTempVendorCDR_20' ) start [2025-04-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889836', 'tblTempVendorCDR_20' ) end [2025-04-12 06:50:19] Production.INFO: ProcessCDR(1,14889836,1,1,2) [2025-04-12 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889836', 'tblTempUsageDetail_20' ) start [2025-04-12 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889836', 'tblTempUsageDetail_20' ) end [2025-04-12 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:50:22] Production.INFO: ==31833== Releasing lock... [2025-04-12 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:51:05 [end_date_ymd] => 2025-04-12 06:51:05 [RateCDR] => 1 ) [2025-04-12 06:51: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-04-12 03:51:05' and `end` < '2025-04-12 06:51: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-04-12 06:51:18] Production.INFO: count ==113 [2025-04-12 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:51:05 - End Time 2025-04-12 06:51:05 [2025-04-12 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889842', 'tblTempUsageDetail_20' ) start [2025-04-12 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889842', 'tblTempUsageDetail_20' ) end [2025-04-12 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889842', 'tblTempVendorCDR_20' ) start [2025-04-12 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889842', 'tblTempVendorCDR_20' ) end [2025-04-12 06:51:18] Production.INFO: ProcessCDR(1,14889842,1,1,2) [2025-04-12 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889842', 'tblTempUsageDetail_20' ) start [2025-04-12 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889842', 'tblTempUsageDetail_20' ) end [2025-04-12 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:51:21] Production.INFO: ==31908== Releasing lock... [2025-04-12 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:52:05 [end_date_ymd] => 2025-04-12 06:52:05 [RateCDR] => 1 ) [2025-04-12 06:52: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-04-12 03:52:05' and `end` < '2025-04-12 06:52: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-04-12 06:52:18] Production.INFO: count ==113 [2025-04-12 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:52:05 - End Time 2025-04-12 06:52:05 [2025-04-12 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889847', 'tblTempUsageDetail_20' ) start [2025-04-12 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889847', 'tblTempUsageDetail_20' ) end [2025-04-12 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889847', 'tblTempVendorCDR_20' ) start [2025-04-12 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889847', 'tblTempVendorCDR_20' ) end [2025-04-12 06:52:18] Production.INFO: ProcessCDR(1,14889847,1,1,2) [2025-04-12 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889847', 'tblTempUsageDetail_20' ) start [2025-04-12 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889847', 'tblTempUsageDetail_20' ) end [2025-04-12 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:52:22] Production.INFO: ==31979== Releasing lock... [2025-04-12 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:53:05 [end_date_ymd] => 2025-04-12 06:53:05 [RateCDR] => 1 ) [2025-04-12 06:53: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-04-12 03:53:05' and `end` < '2025-04-12 06:53: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-04-12 06:53:18] Production.INFO: count ==113 [2025-04-12 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:53:05 - End Time 2025-04-12 06:53:05 [2025-04-12 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889852', 'tblTempUsageDetail_20' ) start [2025-04-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889852', 'tblTempUsageDetail_20' ) end [2025-04-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889852', 'tblTempVendorCDR_20' ) start [2025-04-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889852', 'tblTempVendorCDR_20' ) end [2025-04-12 06:53:18] Production.INFO: ProcessCDR(1,14889852,1,1,2) [2025-04-12 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889852', 'tblTempUsageDetail_20' ) start [2025-04-12 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889852', 'tblTempUsageDetail_20' ) end [2025-04-12 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:53:22] Production.INFO: ==32052== Releasing lock... [2025-04-12 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:54:05 [end_date_ymd] => 2025-04-12 06:54:05 [RateCDR] => 1 ) [2025-04-12 06:54: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-04-12 03:54:05' and `end` < '2025-04-12 06:54: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-04-12 06:54:18] Production.INFO: count ==113 [2025-04-12 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:54:05 - End Time 2025-04-12 06:54:05 [2025-04-12 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889857', 'tblTempUsageDetail_20' ) start [2025-04-12 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889857', 'tblTempUsageDetail_20' ) end [2025-04-12 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889857', 'tblTempVendorCDR_20' ) start [2025-04-12 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889857', 'tblTempVendorCDR_20' ) end [2025-04-12 06:54:18] Production.INFO: ProcessCDR(1,14889857,1,1,2) [2025-04-12 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889857', 'tblTempUsageDetail_20' ) start [2025-04-12 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889857', 'tblTempUsageDetail_20' ) end [2025-04-12 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:54:21] Production.INFO: ==32126== Releasing lock... [2025-04-12 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:55:05 [end_date_ymd] => 2025-04-12 06:55:05 [RateCDR] => 1 ) [2025-04-12 06:55: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-04-12 03:55:05' and `end` < '2025-04-12 06:55: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-04-12 06:55:17] Production.INFO: count ==115 [2025-04-12 06:55:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:55:05 - End Time 2025-04-12 06:55:05 [2025-04-12 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889862', 'tblTempUsageDetail_20' ) start [2025-04-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889862', 'tblTempUsageDetail_20' ) end [2025-04-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889862', 'tblTempVendorCDR_20' ) start [2025-04-12 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889862', 'tblTempVendorCDR_20' ) end [2025-04-12 06:55:17] Production.INFO: ProcessCDR(1,14889862,1,1,2) [2025-04-12 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889862', 'tblTempUsageDetail_20' ) start [2025-04-12 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889862', 'tblTempUsageDetail_20' ) end [2025-04-12 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:55:21] Production.INFO: ==32209== Releasing lock... [2025-04-12 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:56:05 [end_date_ymd] => 2025-04-12 06:56:05 [RateCDR] => 1 ) [2025-04-12 06:56: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-04-12 03:56:05' and `end` < '2025-04-12 06:56: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-04-12 06:56:18] Production.INFO: count ==117 [2025-04-12 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:56:05 - End Time 2025-04-12 06:56:05 [2025-04-12 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889867', 'tblTempUsageDetail_20' ) start [2025-04-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889867', 'tblTempUsageDetail_20' ) end [2025-04-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889867', 'tblTempVendorCDR_20' ) start [2025-04-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889867', 'tblTempVendorCDR_20' ) end [2025-04-12 06:56:18] Production.INFO: ProcessCDR(1,14889867,1,1,2) [2025-04-12 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889867', 'tblTempUsageDetail_20' ) start [2025-04-12 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889867', 'tblTempUsageDetail_20' ) end [2025-04-12 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:56:21] Production.INFO: ==32280== Releasing lock... [2025-04-12 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:57:05 [end_date_ymd] => 2025-04-12 06:57:05 [RateCDR] => 1 ) [2025-04-12 06:57: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-04-12 03:57:05' and `end` < '2025-04-12 06:57: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-04-12 06:57:18] Production.INFO: count ==117 [2025-04-12 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:57:05 - End Time 2025-04-12 06:57:05 [2025-04-12 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889872', 'tblTempUsageDetail_20' ) start [2025-04-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889872', 'tblTempUsageDetail_20' ) end [2025-04-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889872', 'tblTempVendorCDR_20' ) start [2025-04-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889872', 'tblTempVendorCDR_20' ) end [2025-04-12 06:57:18] Production.INFO: ProcessCDR(1,14889872,1,1,2) [2025-04-12 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889872', 'tblTempUsageDetail_20' ) start [2025-04-12 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889872', 'tblTempUsageDetail_20' ) end [2025-04-12 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:57:21] Production.INFO: ==32356== Releasing lock... [2025-04-12 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:58:05 [end_date_ymd] => 2025-04-12 06:58:05 [RateCDR] => 1 ) [2025-04-12 06:58: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-04-12 03:58:05' and `end` < '2025-04-12 06:58: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-04-12 06:58:17] Production.INFO: count ==117 [2025-04-12 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-12 03:58:05 - End Time 2025-04-12 06:58:05 [2025-04-12 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889877', 'tblTempUsageDetail_20' ) start [2025-04-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889877', 'tblTempUsageDetail_20' ) end [2025-04-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889877', 'tblTempVendorCDR_20' ) start [2025-04-12 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889877', 'tblTempVendorCDR_20' ) end [2025-04-12 06:58:17] Production.INFO: ProcessCDR(1,14889877,1,1,2) [2025-04-12 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889877', 'tblTempUsageDetail_20' ) start [2025-04-12 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889877', 'tblTempUsageDetail_20' ) end [2025-04-12 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:58:21] Production.INFO: ==32427== Releasing lock... [2025-04-12 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 03:59:06 [end_date_ymd] => 2025-04-12 06:59:06 [RateCDR] => 1 ) [2025-04-12 06:59: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-04-12 03:59:06' and `end` < '2025-04-12 06:59: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-04-12 06:59:18] Production.INFO: count ==117 [2025-04-12 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 03:59:06 - End Time 2025-04-12 06:59:06 [2025-04-12 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889882', 'tblTempUsageDetail_20' ) start [2025-04-12 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889882', 'tblTempUsageDetail_20' ) end [2025-04-12 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889882', 'tblTempVendorCDR_20' ) start [2025-04-12 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889882', 'tblTempVendorCDR_20' ) end [2025-04-12 06:59:19] Production.INFO: ProcessCDR(1,14889882,1,1,2) [2025-04-12 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889882', 'tblTempUsageDetail_20' ) start [2025-04-12 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889882', 'tblTempUsageDetail_20' ) end [2025-04-12 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 06:59:22] Production.INFO: ==32497== Releasing lock... [2025-04-12 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:00:05 [end_date_ymd] => 2025-04-12 07:00:05 [RateCDR] => 1 ) [2025-04-12 07:00: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-04-12 04:00:05' and `end` < '2025-04-12 07:00: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-04-12 07:00:18] Production.INFO: count ==115 [2025-04-12 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:00:05 - End Time 2025-04-12 07:00:05 [2025-04-12 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889887', 'tblTempUsageDetail_20' ) start [2025-04-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889887', 'tblTempUsageDetail_20' ) end [2025-04-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889887', 'tblTempVendorCDR_20' ) start [2025-04-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889887', 'tblTempVendorCDR_20' ) end [2025-04-12 07:00:18] Production.INFO: ProcessCDR(1,14889887,1,1,2) [2025-04-12 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889887', 'tblTempUsageDetail_20' ) start [2025-04-12 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889887', 'tblTempUsageDetail_20' ) end [2025-04-12 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:00:21] Production.INFO: ==32579== Releasing lock... [2025-04-12 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:01:05 [end_date_ymd] => 2025-04-12 07:01:05 [RateCDR] => 1 ) [2025-04-12 07:01: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-04-12 04:01:05' and `end` < '2025-04-12 07:01: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-04-12 07:01:18] Production.INFO: count ==115 [2025-04-12 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:01:05 - End Time 2025-04-12 07:01:05 [2025-04-12 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889893', 'tblTempUsageDetail_20' ) start [2025-04-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889893', 'tblTempUsageDetail_20' ) end [2025-04-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889893', 'tblTempVendorCDR_20' ) start [2025-04-12 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889893', 'tblTempVendorCDR_20' ) end [2025-04-12 07:01:18] Production.INFO: ProcessCDR(1,14889893,1,1,2) [2025-04-12 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889893', 'tblTempUsageDetail_20' ) start [2025-04-12 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889893', 'tblTempUsageDetail_20' ) end [2025-04-12 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:01:22] Production.INFO: ==32749== Releasing lock... [2025-04-12 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:02:05 [end_date_ymd] => 2025-04-12 07:02:05 [RateCDR] => 1 ) [2025-04-12 07:02: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-04-12 04:02:05' and `end` < '2025-04-12 07:02: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-04-12 07:02:20] Production.INFO: count ==117 [2025-04-12 07:02:20] Production.ERROR: pbx CDR StartTime 2025-04-12 04:02:05 - End Time 2025-04-12 07:02:05 [2025-04-12 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889898', 'tblTempUsageDetail_20' ) start [2025-04-12 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889898', 'tblTempUsageDetail_20' ) end [2025-04-12 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889898', 'tblTempVendorCDR_20' ) start [2025-04-12 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889898', 'tblTempVendorCDR_20' ) end [2025-04-12 07:02:20] Production.INFO: ProcessCDR(1,14889898,1,1,2) [2025-04-12 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889898', 'tblTempUsageDetail_20' ) start [2025-04-12 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889898', 'tblTempUsageDetail_20' ) end [2025-04-12 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:02:24] Production.INFO: ==371== Releasing lock... [2025-04-12 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:02:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:03:06 [end_date_ymd] => 2025-04-12 07:03:06 [RateCDR] => 1 ) [2025-04-12 07:03: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-04-12 04:03:06' and `end` < '2025-04-12 07:03: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-04-12 07:03:20] Production.INFO: count ==117 [2025-04-12 07:03:20] Production.ERROR: pbx CDR StartTime 2025-04-12 04:03:06 - End Time 2025-04-12 07:03:06 [2025-04-12 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889903', 'tblTempUsageDetail_20' ) start [2025-04-12 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889903', 'tblTempUsageDetail_20' ) end [2025-04-12 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889903', 'tblTempVendorCDR_20' ) start [2025-04-12 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889903', 'tblTempVendorCDR_20' ) end [2025-04-12 07:03:20] Production.INFO: ProcessCDR(1,14889903,1,1,2) [2025-04-12 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889903', 'tblTempUsageDetail_20' ) start [2025-04-12 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889903', 'tblTempUsageDetail_20' ) end [2025-04-12 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:03:24] Production.INFO: ==443== Releasing lock... [2025-04-12 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:03:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:04:05 [end_date_ymd] => 2025-04-12 07:04:05 [RateCDR] => 1 ) [2025-04-12 07:04: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-04-12 04:04:05' and `end` < '2025-04-12 07:04: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-04-12 07:04:18] Production.INFO: count ==117 [2025-04-12 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:04:05 - End Time 2025-04-12 07:04:05 [2025-04-12 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889908', 'tblTempUsageDetail_20' ) start [2025-04-12 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889908', 'tblTempUsageDetail_20' ) end [2025-04-12 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889908', 'tblTempVendorCDR_20' ) start [2025-04-12 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889908', 'tblTempVendorCDR_20' ) end [2025-04-12 07:04:18] Production.INFO: ProcessCDR(1,14889908,1,1,2) [2025-04-12 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889908', 'tblTempUsageDetail_20' ) start [2025-04-12 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889908', 'tblTempUsageDetail_20' ) end [2025-04-12 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:04:21] Production.INFO: ==517== Releasing lock... [2025-04-12 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:05:06 [end_date_ymd] => 2025-04-12 07:05:06 [RateCDR] => 1 ) [2025-04-12 07:05: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-04-12 04:05:06' and `end` < '2025-04-12 07:05: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-04-12 07:05:19] Production.INFO: count ==117 [2025-04-12 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:05:06 - End Time 2025-04-12 07:05:06 [2025-04-12 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889913', 'tblTempUsageDetail_20' ) start [2025-04-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889913', 'tblTempUsageDetail_20' ) end [2025-04-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889913', 'tblTempVendorCDR_20' ) start [2025-04-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889913', 'tblTempVendorCDR_20' ) end [2025-04-12 07:05:19] Production.INFO: ProcessCDR(1,14889913,1,1,2) [2025-04-12 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889913', 'tblTempUsageDetail_20' ) start [2025-04-12 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889913', 'tblTempUsageDetail_20' ) end [2025-04-12 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:05:23] Production.INFO: ==698== Releasing lock... [2025-04-12 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:06:05 [end_date_ymd] => 2025-04-12 07:06:05 [RateCDR] => 1 ) [2025-04-12 07:06: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-04-12 04:06:05' and `end` < '2025-04-12 07:06: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-04-12 07:06:17] Production.INFO: count ==117 [2025-04-12 07:06:17] Production.ERROR: pbx CDR StartTime 2025-04-12 04:06:05 - End Time 2025-04-12 07:06:05 [2025-04-12 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889918', 'tblTempUsageDetail_20' ) start [2025-04-12 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889918', 'tblTempUsageDetail_20' ) end [2025-04-12 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889918', 'tblTempVendorCDR_20' ) start [2025-04-12 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889918', 'tblTempVendorCDR_20' ) end [2025-04-12 07:06:17] Production.INFO: ProcessCDR(1,14889918,1,1,2) [2025-04-12 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889918', 'tblTempUsageDetail_20' ) start [2025-04-12 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889918', 'tblTempUsageDetail_20' ) end [2025-04-12 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:06:21] Production.INFO: ==818== Releasing lock... [2025-04-12 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:07:06 [end_date_ymd] => 2025-04-12 07:07:06 [RateCDR] => 1 ) [2025-04-12 07:07: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-04-12 04:07:06' and `end` < '2025-04-12 07:07: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-04-12 07:07:19] Production.INFO: count ==115 [2025-04-12 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:07:06 - End Time 2025-04-12 07:07:06 [2025-04-12 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889923', 'tblTempUsageDetail_20' ) start [2025-04-12 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889923', 'tblTempUsageDetail_20' ) end [2025-04-12 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889923', 'tblTempVendorCDR_20' ) start [2025-04-12 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889923', 'tblTempVendorCDR_20' ) end [2025-04-12 07:07:19] Production.INFO: ProcessCDR(1,14889923,1,1,2) [2025-04-12 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889923', 'tblTempUsageDetail_20' ) start [2025-04-12 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889923', 'tblTempUsageDetail_20' ) end [2025-04-12 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:07:23] Production.INFO: ==895== Releasing lock... [2025-04-12 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:08:05 [end_date_ymd] => 2025-04-12 07:08:05 [RateCDR] => 1 ) [2025-04-12 07:08: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-04-12 04:08:05' and `end` < '2025-04-12 07:08: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-04-12 07:08:19] Production.INFO: count ==112 [2025-04-12 07:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:08:05 - End Time 2025-04-12 07:08:05 [2025-04-12 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889928', 'tblTempUsageDetail_20' ) start [2025-04-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889928', 'tblTempUsageDetail_20' ) end [2025-04-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889928', 'tblTempVendorCDR_20' ) start [2025-04-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889928', 'tblTempVendorCDR_20' ) end [2025-04-12 07:08:19] Production.INFO: ProcessCDR(1,14889928,1,1,2) [2025-04-12 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889928', 'tblTempUsageDetail_20' ) start [2025-04-12 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889928', 'tblTempUsageDetail_20' ) end [2025-04-12 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:08:23] Production.INFO: ==1045== Releasing lock... [2025-04-12 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:08:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:09:06 [end_date_ymd] => 2025-04-12 07:09:06 [RateCDR] => 1 ) [2025-04-12 07:09: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-04-12 04:09:06' and `end` < '2025-04-12 07:09: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-04-12 07:09:19] Production.INFO: count ==112 [2025-04-12 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:09:06 - End Time 2025-04-12 07:09:06 [2025-04-12 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889933', 'tblTempUsageDetail_20' ) start [2025-04-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889933', 'tblTempUsageDetail_20' ) end [2025-04-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889933', 'tblTempVendorCDR_20' ) start [2025-04-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889933', 'tblTempVendorCDR_20' ) end [2025-04-12 07:09:19] Production.INFO: ProcessCDR(1,14889933,1,1,2) [2025-04-12 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889933', 'tblTempUsageDetail_20' ) start [2025-04-12 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889933', 'tblTempUsageDetail_20' ) end [2025-04-12 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:09:23] Production.INFO: ==1121== Releasing lock... [2025-04-12 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:10:05 [end_date_ymd] => 2025-04-12 07:10:05 [RateCDR] => 1 ) [2025-04-12 07:10: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-04-12 04:10:05' and `end` < '2025-04-12 07:10: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-04-12 07:10:18] Production.INFO: count ==106 [2025-04-12 07:10:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:10:05 - End Time 2025-04-12 07:10:05 [2025-04-12 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889936', 'tblTempUsageDetail_20' ) start [2025-04-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889936', 'tblTempUsageDetail_20' ) end [2025-04-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889936', 'tblTempVendorCDR_20' ) start [2025-04-12 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889936', 'tblTempVendorCDR_20' ) end [2025-04-12 07:10:18] Production.INFO: ProcessCDR(1,14889936,1,1,2) [2025-04-12 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889936', 'tblTempUsageDetail_20' ) start [2025-04-12 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889936', 'tblTempUsageDetail_20' ) end [2025-04-12 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:10:21] Production.INFO: ==1202== Releasing lock... [2025-04-12 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:11:05 [end_date_ymd] => 2025-04-12 07:11:05 [RateCDR] => 1 ) [2025-04-12 07:11: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-04-12 04:11:05' and `end` < '2025-04-12 07:11: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-04-12 07:11:19] Production.INFO: count ==97 [2025-04-12 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:11:05 - End Time 2025-04-12 07:11:05 [2025-04-12 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889944', 'tblTempUsageDetail_20' ) start [2025-04-12 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889944', 'tblTempUsageDetail_20' ) end [2025-04-12 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889944', 'tblTempVendorCDR_20' ) start [2025-04-12 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889944', 'tblTempVendorCDR_20' ) end [2025-04-12 07:11:19] Production.INFO: ProcessCDR(1,14889944,1,1,2) [2025-04-12 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889944', 'tblTempUsageDetail_20' ) start [2025-04-12 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889944', 'tblTempUsageDetail_20' ) end [2025-04-12 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:11:24] Production.INFO: ==1292== Releasing lock... [2025-04-12 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:11:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:12:05 [end_date_ymd] => 2025-04-12 07:12:05 [RateCDR] => 1 ) [2025-04-12 07:12: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-04-12 04:12:05' and `end` < '2025-04-12 07:12: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-04-12 07:12:18] Production.INFO: count ==97 [2025-04-12 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:12:05 - End Time 2025-04-12 07:12:05 [2025-04-12 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889949', 'tblTempUsageDetail_20' ) start [2025-04-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889949', 'tblTempUsageDetail_20' ) end [2025-04-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889949', 'tblTempVendorCDR_20' ) start [2025-04-12 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889949', 'tblTempVendorCDR_20' ) end [2025-04-12 07:12:18] Production.INFO: ProcessCDR(1,14889949,1,1,2) [2025-04-12 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889949', 'tblTempUsageDetail_20' ) start [2025-04-12 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889949', 'tblTempUsageDetail_20' ) end [2025-04-12 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:12:21] Production.INFO: ==1445== Releasing lock... [2025-04-12 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:13:05 [end_date_ymd] => 2025-04-12 07:13:05 [RateCDR] => 1 ) [2025-04-12 07:13: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-04-12 04:13:05' and `end` < '2025-04-12 07:13: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-04-12 07:13:20] Production.INFO: count ==98 [2025-04-12 07:13:20] Production.ERROR: pbx CDR StartTime 2025-04-12 04:13:05 - End Time 2025-04-12 07:13:05 [2025-04-12 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889954', 'tblTempUsageDetail_20' ) start [2025-04-12 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889954', 'tblTempUsageDetail_20' ) end [2025-04-12 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889954', 'tblTempVendorCDR_20' ) start [2025-04-12 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889954', 'tblTempVendorCDR_20' ) end [2025-04-12 07:13:20] Production.INFO: ProcessCDR(1,14889954,1,1,2) [2025-04-12 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889954', 'tblTempUsageDetail_20' ) start [2025-04-12 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889954', 'tblTempUsageDetail_20' ) end [2025-04-12 07:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:13:25] Production.INFO: ==1554== Releasing lock... [2025-04-12 07:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:13:25] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:14:05 [end_date_ymd] => 2025-04-12 07:14:05 [RateCDR] => 1 ) [2025-04-12 07:14: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-04-12 04:14:05' and `end` < '2025-04-12 07:14: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-04-12 07:14:18] Production.INFO: count ==97 [2025-04-12 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:14:05 - End Time 2025-04-12 07:14:05 [2025-04-12 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889959', 'tblTempUsageDetail_20' ) start [2025-04-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889959', 'tblTempUsageDetail_20' ) end [2025-04-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889959', 'tblTempVendorCDR_20' ) start [2025-04-12 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889959', 'tblTempVendorCDR_20' ) end [2025-04-12 07:14:18] Production.INFO: ProcessCDR(1,14889959,1,1,2) [2025-04-12 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889959', 'tblTempUsageDetail_20' ) start [2025-04-12 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889959', 'tblTempUsageDetail_20' ) end [2025-04-12 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:14:21] Production.INFO: ==1629== Releasing lock... [2025-04-12 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:15:05 [end_date_ymd] => 2025-04-12 07:15:05 [RateCDR] => 1 ) [2025-04-12 07:15: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-04-12 04:15:05' and `end` < '2025-04-12 07:15: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-04-12 07:15:20] Production.INFO: count ==98 [2025-04-12 07:15:20] Production.ERROR: pbx CDR StartTime 2025-04-12 04:15:05 - End Time 2025-04-12 07:15:05 [2025-04-12 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889964', 'tblTempUsageDetail_20' ) start [2025-04-12 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889964', 'tblTempUsageDetail_20' ) end [2025-04-12 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889964', 'tblTempVendorCDR_20' ) start [2025-04-12 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889964', 'tblTempVendorCDR_20' ) end [2025-04-12 07:15:20] Production.INFO: ProcessCDR(1,14889964,1,1,2) [2025-04-12 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889964', 'tblTempUsageDetail_20' ) start [2025-04-12 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889964', 'tblTempUsageDetail_20' ) end [2025-04-12 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:15:24] Production.INFO: ==1783== Releasing lock... [2025-04-12 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:15:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:16:05 [end_date_ymd] => 2025-04-12 07:16:05 [RateCDR] => 1 ) [2025-04-12 07:16: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-04-12 04:16:05' and `end` < '2025-04-12 07:16: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-04-12 07:16:18] Production.INFO: count ==97 [2025-04-12 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:16:05 - End Time 2025-04-12 07:16:05 [2025-04-12 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889969', 'tblTempUsageDetail_20' ) start [2025-04-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889969', 'tblTempUsageDetail_20' ) end [2025-04-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889969', 'tblTempVendorCDR_20' ) start [2025-04-12 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889969', 'tblTempVendorCDR_20' ) end [2025-04-12 07:16:18] Production.INFO: ProcessCDR(1,14889969,1,1,2) [2025-04-12 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889969', 'tblTempUsageDetail_20' ) start [2025-04-12 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889969', 'tblTempUsageDetail_20' ) end [2025-04-12 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:16:21] Production.INFO: ==1859== Releasing lock... [2025-04-12 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:17:05 [end_date_ymd] => 2025-04-12 07:17:05 [RateCDR] => 1 ) [2025-04-12 07:17: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-04-12 04:17:05' and `end` < '2025-04-12 07:17: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-04-12 07:17:20] Production.INFO: count ==96 [2025-04-12 07:17:20] Production.ERROR: pbx CDR StartTime 2025-04-12 04:17:05 - End Time 2025-04-12 07:17:05 [2025-04-12 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889974', 'tblTempUsageDetail_20' ) start [2025-04-12 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889974', 'tblTempUsageDetail_20' ) end [2025-04-12 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889974', 'tblTempVendorCDR_20' ) start [2025-04-12 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889974', 'tblTempVendorCDR_20' ) end [2025-04-12 07:17:20] Production.INFO: ProcessCDR(1,14889974,1,1,2) [2025-04-12 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889974', 'tblTempUsageDetail_20' ) start [2025-04-12 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889974', 'tblTempUsageDetail_20' ) end [2025-04-12 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:17:24] Production.INFO: ==1930== Releasing lock... [2025-04-12 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:17:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:18:06 [end_date_ymd] => 2025-04-12 07:18:06 [RateCDR] => 1 ) [2025-04-12 07:18: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-04-12 04:18:06' and `end` < '2025-04-12 07:18: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-04-12 07:18:19] Production.INFO: count ==98 [2025-04-12 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:18:06 - End Time 2025-04-12 07:18:06 [2025-04-12 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889979', 'tblTempUsageDetail_20' ) start [2025-04-12 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889979', 'tblTempUsageDetail_20' ) end [2025-04-12 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889979', 'tblTempVendorCDR_20' ) start [2025-04-12 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889979', 'tblTempVendorCDR_20' ) end [2025-04-12 07:18:19] Production.INFO: ProcessCDR(1,14889979,1,1,2) [2025-04-12 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889979', 'tblTempUsageDetail_20' ) start [2025-04-12 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889979', 'tblTempUsageDetail_20' ) end [2025-04-12 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:18:25] Production.INFO: ==2004== Releasing lock... [2025-04-12 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:18:25] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:19:06 [end_date_ymd] => 2025-04-12 07:19:06 [RateCDR] => 1 ) [2025-04-12 07:19: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-04-12 04:19:06' and `end` < '2025-04-12 07:19: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-04-12 07:19:18] Production.INFO: count ==99 [2025-04-12 07:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:19:06 - End Time 2025-04-12 07:19:06 [2025-04-12 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889984', 'tblTempUsageDetail_20' ) start [2025-04-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889984', 'tblTempUsageDetail_20' ) end [2025-04-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889984', 'tblTempVendorCDR_20' ) start [2025-04-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889984', 'tblTempVendorCDR_20' ) end [2025-04-12 07:19:19] Production.INFO: ProcessCDR(1,14889984,1,1,2) [2025-04-12 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889984', 'tblTempUsageDetail_20' ) start [2025-04-12 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889984', 'tblTempUsageDetail_20' ) end [2025-04-12 07:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:19:24] Production.INFO: ==2078== Releasing lock... [2025-04-12 07:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:19:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:20:06 [end_date_ymd] => 2025-04-12 07:20:06 [RateCDR] => 1 ) [2025-04-12 07:20: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-04-12 04:20:06' and `end` < '2025-04-12 07:20: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-04-12 07:20:18] Production.INFO: count ==110 [2025-04-12 07:20:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:20:06 - End Time 2025-04-12 07:20:06 [2025-04-12 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889990', 'tblTempUsageDetail_20' ) start [2025-04-12 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889990', 'tblTempUsageDetail_20' ) end [2025-04-12 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889990', 'tblTempVendorCDR_20' ) start [2025-04-12 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889990', 'tblTempVendorCDR_20' ) end [2025-04-12 07:20:18] Production.INFO: ProcessCDR(1,14889990,1,1,2) [2025-04-12 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889990', 'tblTempUsageDetail_20' ) start [2025-04-12 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889990', 'tblTempUsageDetail_20' ) end [2025-04-12 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:20:24] Production.INFO: ==2155== Releasing lock... [2025-04-12 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:20:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:21:05 [end_date_ymd] => 2025-04-12 07:21:05 [RateCDR] => 1 ) [2025-04-12 07:21: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-04-12 04:21:05' and `end` < '2025-04-12 07:21: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-04-12 07:21:18] Production.INFO: count ==117 [2025-04-12 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:21:05 - End Time 2025-04-12 07:21:05 [2025-04-12 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889995', 'tblTempUsageDetail_20' ) start [2025-04-12 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14889995', 'tblTempUsageDetail_20' ) end [2025-04-12 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889995', 'tblTempVendorCDR_20' ) start [2025-04-12 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14889995', 'tblTempVendorCDR_20' ) end [2025-04-12 07:21:18] Production.INFO: ProcessCDR(1,14889995,1,1,2) [2025-04-12 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14889995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14889995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14889995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14889995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889995', 'tblTempUsageDetail_20' ) start [2025-04-12 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14889995', 'tblTempUsageDetail_20' ) end [2025-04-12 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:21:24] Production.INFO: ==2277== Releasing lock... [2025-04-12 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:21:24] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:22:06 [end_date_ymd] => 2025-04-12 07:22:06 [RateCDR] => 1 ) [2025-04-12 07:22: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-04-12 04:22:06' and `end` < '2025-04-12 07:22: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-04-12 07:22:22] Production.INFO: count ==117 [2025-04-12 07:22:22] Production.ERROR: pbx CDR StartTime 2025-04-12 04:22:06 - End Time 2025-04-12 07:22:06 [2025-04-12 07:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890000', 'tblTempUsageDetail_20' ) start [2025-04-12 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890000', 'tblTempUsageDetail_20' ) end [2025-04-12 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890000', 'tblTempVendorCDR_20' ) start [2025-04-12 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890000', 'tblTempVendorCDR_20' ) end [2025-04-12 07:22:22] Production.INFO: ProcessCDR(1,14890000,1,1,2) [2025-04-12 07:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890000', 'tblTempUsageDetail_20' ) start [2025-04-12 07:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890000', 'tblTempUsageDetail_20' ) end [2025-04-12 07:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:22:26] Production.INFO: ==2348== Releasing lock... [2025-04-12 07:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:22:26] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:23:06 [end_date_ymd] => 2025-04-12 07:23:06 [RateCDR] => 1 ) [2025-04-12 07:23: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-04-12 04:23:06' and `end` < '2025-04-12 07:23: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-04-12 07:23:19] Production.INFO: count ==117 [2025-04-12 07:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:23:06 - End Time 2025-04-12 07:23:06 [2025-04-12 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890005', 'tblTempUsageDetail_20' ) start [2025-04-12 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890005', 'tblTempUsageDetail_20' ) end [2025-04-12 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890005', 'tblTempVendorCDR_20' ) start [2025-04-12 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890005', 'tblTempVendorCDR_20' ) end [2025-04-12 07:23:19] Production.INFO: ProcessCDR(1,14890005,1,1,2) [2025-04-12 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890005', 'tblTempUsageDetail_20' ) start [2025-04-12 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890005', 'tblTempUsageDetail_20' ) end [2025-04-12 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:23:23] Production.INFO: ==2424== Releasing lock... [2025-04-12 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:23:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:24:05 [end_date_ymd] => 2025-04-12 07:24:05 [RateCDR] => 1 ) [2025-04-12 07:24: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-04-12 04:24:05' and `end` < '2025-04-12 07:24: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-04-12 07:24:18] Production.INFO: count ==115 [2025-04-12 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:24:05 - End Time 2025-04-12 07:24:05 [2025-04-12 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890010', 'tblTempUsageDetail_20' ) start [2025-04-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890010', 'tblTempUsageDetail_20' ) end [2025-04-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890010', 'tblTempVendorCDR_20' ) start [2025-04-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890010', 'tblTempVendorCDR_20' ) end [2025-04-12 07:24:18] Production.INFO: ProcessCDR(1,14890010,1,1,2) [2025-04-12 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890010', 'tblTempUsageDetail_20' ) start [2025-04-12 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890010', 'tblTempUsageDetail_20' ) end [2025-04-12 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:24:22] Production.INFO: ==2495== Releasing lock... [2025-04-12 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:25:05 [end_date_ymd] => 2025-04-12 07:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 04:25:05' and `end` < '2025-04-12 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-04-12 07:25:18] Production.INFO: count ==114 [2025-04-12 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:25:05 - End Time 2025-04-12 07:25:05 [2025-04-12 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890015', 'tblTempUsageDetail_20' ) start [2025-04-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890015', 'tblTempUsageDetail_20' ) end [2025-04-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890015', 'tblTempVendorCDR_20' ) start [2025-04-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890015', 'tblTempVendorCDR_20' ) end [2025-04-12 07:25:18] Production.INFO: ProcessCDR(1,14890015,1,1,2) [2025-04-12 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890015', 'tblTempUsageDetail_20' ) start [2025-04-12 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890015', 'tblTempUsageDetail_20' ) end [2025-04-12 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:25:21] Production.INFO: ==2575== Releasing lock... [2025-04-12 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:26:05 [end_date_ymd] => 2025-04-12 07:26:05 [RateCDR] => 1 ) [2025-04-12 07:26: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-04-12 04:26:05' and `end` < '2025-04-12 07:26: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-04-12 07:26:18] Production.INFO: count ==115 [2025-04-12 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:26:05 - End Time 2025-04-12 07:26:05 [2025-04-12 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890020', 'tblTempUsageDetail_20' ) start [2025-04-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890020', 'tblTempUsageDetail_20' ) end [2025-04-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890020', 'tblTempVendorCDR_20' ) start [2025-04-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890020', 'tblTempVendorCDR_20' ) end [2025-04-12 07:26:18] Production.INFO: ProcessCDR(1,14890020,1,1,2) [2025-04-12 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890020', 'tblTempUsageDetail_20' ) start [2025-04-12 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890020', 'tblTempUsageDetail_20' ) end [2025-04-12 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:26:23] Production.INFO: ==2651== Releasing lock... [2025-04-12 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:26:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:27:05 [end_date_ymd] => 2025-04-12 07:27:05 [RateCDR] => 1 ) [2025-04-12 07:27: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-04-12 04:27:05' and `end` < '2025-04-12 07:27: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-04-12 07:27:18] Production.INFO: count ==115 [2025-04-12 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:27:05 - End Time 2025-04-12 07:27:05 [2025-04-12 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890025', 'tblTempUsageDetail_20' ) start [2025-04-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890025', 'tblTempUsageDetail_20' ) end [2025-04-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890025', 'tblTempVendorCDR_20' ) start [2025-04-12 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890025', 'tblTempVendorCDR_20' ) end [2025-04-12 07:27:18] Production.INFO: ProcessCDR(1,14890025,1,1,2) [2025-04-12 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890025', 'tblTempUsageDetail_20' ) start [2025-04-12 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890025', 'tblTempUsageDetail_20' ) end [2025-04-12 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:27:21] Production.INFO: ==2728== Releasing lock... [2025-04-12 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:28:05 [end_date_ymd] => 2025-04-12 07:28:05 [RateCDR] => 1 ) [2025-04-12 07:28: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-04-12 04:28:05' and `end` < '2025-04-12 07:28: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-04-12 07:28:17] Production.INFO: count ==116 [2025-04-12 07:28:17] Production.ERROR: pbx CDR StartTime 2025-04-12 04:28:05 - End Time 2025-04-12 07:28:05 [2025-04-12 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890030', 'tblTempUsageDetail_20' ) start [2025-04-12 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890030', 'tblTempUsageDetail_20' ) end [2025-04-12 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890030', 'tblTempVendorCDR_20' ) start [2025-04-12 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890030', 'tblTempVendorCDR_20' ) end [2025-04-12 07:28:17] Production.INFO: ProcessCDR(1,14890030,1,1,2) [2025-04-12 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890030', 'tblTempUsageDetail_20' ) start [2025-04-12 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890030', 'tblTempUsageDetail_20' ) end [2025-04-12 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:28:22] Production.INFO: ==2803== Releasing lock... [2025-04-12 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:29:05 [end_date_ymd] => 2025-04-12 07:29:05 [RateCDR] => 1 ) [2025-04-12 07:29: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-04-12 04:29:05' and `end` < '2025-04-12 07:29: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-04-12 07:29:18] Production.INFO: count ==116 [2025-04-12 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:29:05 - End Time 2025-04-12 07:29:05 [2025-04-12 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890035', 'tblTempUsageDetail_20' ) start [2025-04-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890035', 'tblTempUsageDetail_20' ) end [2025-04-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890035', 'tblTempVendorCDR_20' ) start [2025-04-12 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890035', 'tblTempVendorCDR_20' ) end [2025-04-12 07:29:18] Production.INFO: ProcessCDR(1,14890035,1,1,2) [2025-04-12 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890035', 'tblTempUsageDetail_20' ) start [2025-04-12 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890035', 'tblTempUsageDetail_20' ) end [2025-04-12 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:29:22] Production.INFO: ==2873== Releasing lock... [2025-04-12 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:30:05 [end_date_ymd] => 2025-04-12 07:30:05 [RateCDR] => 1 ) [2025-04-12 07:30: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-04-12 04:30:05' and `end` < '2025-04-12 07:30: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-04-12 07:30:18] Production.INFO: count ==115 [2025-04-12 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:30:05 - End Time 2025-04-12 07:30:05 [2025-04-12 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890040', 'tblTempUsageDetail_20' ) start [2025-04-12 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890040', 'tblTempUsageDetail_20' ) end [2025-04-12 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890040', 'tblTempVendorCDR_20' ) start [2025-04-12 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890040', 'tblTempVendorCDR_20' ) end [2025-04-12 07:30:18] Production.INFO: ProcessCDR(1,14890040,1,1,2) [2025-04-12 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890040', 'tblTempUsageDetail_20' ) start [2025-04-12 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890040', 'tblTempUsageDetail_20' ) end [2025-04-12 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:30:23] Production.INFO: ==2949== Releasing lock... [2025-04-12 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:30:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:31:05 [end_date_ymd] => 2025-04-12 07:31:05 [RateCDR] => 1 ) [2025-04-12 07:31: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-04-12 04:31:05' and `end` < '2025-04-12 07:31: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-04-12 07:31:18] Production.INFO: count ==115 [2025-04-12 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:31:05 - End Time 2025-04-12 07:31:05 [2025-04-12 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890046', 'tblTempUsageDetail_20' ) start [2025-04-12 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890046', 'tblTempUsageDetail_20' ) end [2025-04-12 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890046', 'tblTempVendorCDR_20' ) start [2025-04-12 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890046', 'tblTempVendorCDR_20' ) end [2025-04-12 07:31:18] Production.INFO: ProcessCDR(1,14890046,1,1,2) [2025-04-12 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890046', 'tblTempUsageDetail_20' ) start [2025-04-12 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890046', 'tblTempUsageDetail_20' ) end [2025-04-12 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:31:22] Production.INFO: ==3030== Releasing lock... [2025-04-12 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:31:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:32:05 [end_date_ymd] => 2025-04-12 07:32:05 [RateCDR] => 1 ) [2025-04-12 07:32: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-04-12 04:32:05' and `end` < '2025-04-12 07:32: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-04-12 07:32:18] Production.INFO: count ==115 [2025-04-12 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:32:05 - End Time 2025-04-12 07:32:05 [2025-04-12 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890051', 'tblTempUsageDetail_20' ) start [2025-04-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890051', 'tblTempUsageDetail_20' ) end [2025-04-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890051', 'tblTempVendorCDR_20' ) start [2025-04-12 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890051', 'tblTempVendorCDR_20' ) end [2025-04-12 07:32:18] Production.INFO: ProcessCDR(1,14890051,1,1,2) [2025-04-12 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890051', 'tblTempUsageDetail_20' ) start [2025-04-12 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890051', 'tblTempUsageDetail_20' ) end [2025-04-12 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:32:22] Production.INFO: ==3105== Releasing lock... [2025-04-12 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:32:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:33:05 [end_date_ymd] => 2025-04-12 07:33:05 [RateCDR] => 1 ) [2025-04-12 07:33: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-04-12 04:33:05' and `end` < '2025-04-12 07:33: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-04-12 07:33:18] Production.INFO: count ==115 [2025-04-12 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:33:05 - End Time 2025-04-12 07:33:05 [2025-04-12 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890056', 'tblTempUsageDetail_20' ) start [2025-04-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890056', 'tblTempUsageDetail_20' ) end [2025-04-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890056', 'tblTempVendorCDR_20' ) start [2025-04-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890056', 'tblTempVendorCDR_20' ) end [2025-04-12 07:33:18] Production.INFO: ProcessCDR(1,14890056,1,1,2) [2025-04-12 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890056', 'tblTempUsageDetail_20' ) start [2025-04-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890056', 'tblTempUsageDetail_20' ) end [2025-04-12 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:33:21] Production.INFO: ==3179== Releasing lock... [2025-04-12 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:34:06 [end_date_ymd] => 2025-04-12 07:34:06 [RateCDR] => 1 ) [2025-04-12 07:34: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-04-12 04:34:06' and `end` < '2025-04-12 07:34: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-04-12 07:34:18] Production.INFO: count ==116 [2025-04-12 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:34:06 - End Time 2025-04-12 07:34:06 [2025-04-12 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890061', 'tblTempUsageDetail_20' ) start [2025-04-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890061', 'tblTempUsageDetail_20' ) end [2025-04-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890061', 'tblTempVendorCDR_20' ) start [2025-04-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890061', 'tblTempVendorCDR_20' ) end [2025-04-12 07:34:18] Production.INFO: ProcessCDR(1,14890061,1,1,2) [2025-04-12 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890061', 'tblTempUsageDetail_20' ) start [2025-04-12 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890061', 'tblTempUsageDetail_20' ) end [2025-04-12 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:34:23] Production.INFO: ==3250== Releasing lock... [2025-04-12 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:34:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:35:05 [end_date_ymd] => 2025-04-12 07:35:05 [RateCDR] => 1 ) [2025-04-12 07:35: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-04-12 04:35:05' and `end` < '2025-04-12 07:35: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-04-12 07:35:18] Production.INFO: count ==115 [2025-04-12 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:35:05 - End Time 2025-04-12 07:35:05 [2025-04-12 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890066', 'tblTempUsageDetail_20' ) start [2025-04-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890066', 'tblTempUsageDetail_20' ) end [2025-04-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890066', 'tblTempVendorCDR_20' ) start [2025-04-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890066', 'tblTempVendorCDR_20' ) end [2025-04-12 07:35:18] Production.INFO: ProcessCDR(1,14890066,1,1,2) [2025-04-12 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890066', 'tblTempUsageDetail_20' ) start [2025-04-12 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890066', 'tblTempUsageDetail_20' ) end [2025-04-12 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:35:23] Production.INFO: ==3323== Releasing lock... [2025-04-12 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:35:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:36:06 [end_date_ymd] => 2025-04-12 07:36:06 [RateCDR] => 1 ) [2025-04-12 07:36: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-04-12 04:36:06' and `end` < '2025-04-12 07:36: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-04-12 07:36:18] Production.INFO: count ==113 [2025-04-12 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:36:06 - End Time 2025-04-12 07:36:06 [2025-04-12 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890071', 'tblTempUsageDetail_20' ) start [2025-04-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890071', 'tblTempUsageDetail_20' ) end [2025-04-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890071', 'tblTempVendorCDR_20' ) start [2025-04-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890071', 'tblTempVendorCDR_20' ) end [2025-04-12 07:36:18] Production.INFO: ProcessCDR(1,14890071,1,1,2) [2025-04-12 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890071', 'tblTempUsageDetail_20' ) start [2025-04-12 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890071', 'tblTempUsageDetail_20' ) end [2025-04-12 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:36:22] Production.INFO: ==3399== Releasing lock... [2025-04-12 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:37:05 [end_date_ymd] => 2025-04-12 07:37:05 [RateCDR] => 1 ) [2025-04-12 07:37: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-04-12 04:37:05' and `end` < '2025-04-12 07:37: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-04-12 07:37:18] Production.INFO: count ==112 [2025-04-12 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:37:05 - End Time 2025-04-12 07:37:05 [2025-04-12 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890076', 'tblTempUsageDetail_20' ) start [2025-04-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890076', 'tblTempUsageDetail_20' ) end [2025-04-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890076', 'tblTempVendorCDR_20' ) start [2025-04-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890076', 'tblTempVendorCDR_20' ) end [2025-04-12 07:37:18] Production.INFO: ProcessCDR(1,14890076,1,1,2) [2025-04-12 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890076', 'tblTempUsageDetail_20' ) start [2025-04-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890076', 'tblTempUsageDetail_20' ) end [2025-04-12 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:37:21] Production.INFO: ==3516== Releasing lock... [2025-04-12 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:38:05 [end_date_ymd] => 2025-04-12 07:38:05 [RateCDR] => 1 ) [2025-04-12 07:38: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-04-12 04:38:05' and `end` < '2025-04-12 07:38: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-04-12 07:38:18] Production.INFO: count ==111 [2025-04-12 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:38:05 - End Time 2025-04-12 07:38:05 [2025-04-12 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890081', 'tblTempUsageDetail_20' ) start [2025-04-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890081', 'tblTempUsageDetail_20' ) end [2025-04-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890081', 'tblTempVendorCDR_20' ) start [2025-04-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890081', 'tblTempVendorCDR_20' ) end [2025-04-12 07:38:18] Production.INFO: ProcessCDR(1,14890081,1,1,2) [2025-04-12 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890081', 'tblTempUsageDetail_20' ) start [2025-04-12 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890081', 'tblTempUsageDetail_20' ) end [2025-04-12 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:38:23] Production.INFO: ==3590== Releasing lock... [2025-04-12 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:38:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:39:05 [end_date_ymd] => 2025-04-12 07:39:05 [RateCDR] => 1 ) [2025-04-12 07:39: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-04-12 04:39:05' and `end` < '2025-04-12 07:39: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-04-12 07:39:18] Production.INFO: count ==112 [2025-04-12 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:39:05 - End Time 2025-04-12 07:39:05 [2025-04-12 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890086', 'tblTempUsageDetail_20' ) start [2025-04-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890086', 'tblTempUsageDetail_20' ) end [2025-04-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890086', 'tblTempVendorCDR_20' ) start [2025-04-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890086', 'tblTempVendorCDR_20' ) end [2025-04-12 07:39:18] Production.INFO: ProcessCDR(1,14890086,1,1,2) [2025-04-12 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890086', 'tblTempUsageDetail_20' ) start [2025-04-12 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890086', 'tblTempUsageDetail_20' ) end [2025-04-12 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:39:23] Production.INFO: ==3662== Releasing lock... [2025-04-12 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:39:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:40:06 [end_date_ymd] => 2025-04-12 07:40:06 [RateCDR] => 1 ) [2025-04-12 07:40: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-04-12 04:40:06' and `end` < '2025-04-12 07:40: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-04-12 07:40:19] Production.INFO: count ==110 [2025-04-12 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 04:40:06 - End Time 2025-04-12 07:40:06 [2025-04-12 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890092', 'tblTempUsageDetail_20' ) start [2025-04-12 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890092', 'tblTempUsageDetail_20' ) end [2025-04-12 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890092', 'tblTempVendorCDR_20' ) start [2025-04-12 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890092', 'tblTempVendorCDR_20' ) end [2025-04-12 07:40:19] Production.INFO: ProcessCDR(1,14890092,1,1,2) [2025-04-12 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890092', 'tblTempUsageDetail_20' ) start [2025-04-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890092', 'tblTempUsageDetail_20' ) end [2025-04-12 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:40:22] Production.INFO: ==3737== Releasing lock... [2025-04-12 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:41:04 [end_date_ymd] => 2025-04-12 07:41:04 [RateCDR] => 1 ) [2025-04-12 07:41: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-04-12 04:41:04' and `end` < '2025-04-12 07:41: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-04-12 07:41:17] Production.INFO: count ==110 [2025-04-12 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-12 04:41:04 - End Time 2025-04-12 07:41:04 [2025-04-12 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890097', 'tblTempUsageDetail_20' ) start [2025-04-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890097', 'tblTempUsageDetail_20' ) end [2025-04-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890097', 'tblTempVendorCDR_20' ) start [2025-04-12 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890097', 'tblTempVendorCDR_20' ) end [2025-04-12 07:41:17] Production.INFO: ProcessCDR(1,14890097,1,1,2) [2025-04-12 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890097', 'tblTempUsageDetail_20' ) start [2025-04-12 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890097', 'tblTempUsageDetail_20' ) end [2025-04-12 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:41:21] Production.INFO: ==3812== Releasing lock... [2025-04-12 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:42:05 [end_date_ymd] => 2025-04-12 07:42:05 [RateCDR] => 1 ) [2025-04-12 07:42: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-04-12 04:42:05' and `end` < '2025-04-12 07:42: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-04-12 07:42:18] Production.INFO: count ==110 [2025-04-12 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:42:05 - End Time 2025-04-12 07:42:05 [2025-04-12 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890102', 'tblTempUsageDetail_20' ) start [2025-04-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890102', 'tblTempUsageDetail_20' ) end [2025-04-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890102', 'tblTempVendorCDR_20' ) start [2025-04-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890102', 'tblTempVendorCDR_20' ) end [2025-04-12 07:42:18] Production.INFO: ProcessCDR(1,14890102,1,1,2) [2025-04-12 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890102', 'tblTempUsageDetail_20' ) start [2025-04-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890102', 'tblTempUsageDetail_20' ) end [2025-04-12 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:42:21] Production.INFO: ==3884== Releasing lock... [2025-04-12 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:43:06 [end_date_ymd] => 2025-04-12 07:43:06 [RateCDR] => 1 ) [2025-04-12 07:43: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-04-12 04:43:06' and `end` < '2025-04-12 07:43: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-04-12 07:43:18] Production.INFO: count ==110 [2025-04-12 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:43:06 - End Time 2025-04-12 07:43:06 [2025-04-12 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890107', 'tblTempUsageDetail_20' ) start [2025-04-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890107', 'tblTempUsageDetail_20' ) end [2025-04-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890107', 'tblTempVendorCDR_20' ) start [2025-04-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890107', 'tblTempVendorCDR_20' ) end [2025-04-12 07:43:18] Production.INFO: ProcessCDR(1,14890107,1,1,2) [2025-04-12 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890107', 'tblTempUsageDetail_20' ) start [2025-04-12 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890107', 'tblTempUsageDetail_20' ) end [2025-04-12 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:43:22] Production.INFO: ==3966== Releasing lock... [2025-04-12 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:44:05 [end_date_ymd] => 2025-04-12 07:44:05 [RateCDR] => 1 ) [2025-04-12 07:44: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-04-12 04:44:05' and `end` < '2025-04-12 07:44: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-04-12 07:44:18] Production.INFO: count ==111 [2025-04-12 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:44:05 - End Time 2025-04-12 07:44:05 [2025-04-12 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890112', 'tblTempUsageDetail_20' ) start [2025-04-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890112', 'tblTempUsageDetail_20' ) end [2025-04-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890112', 'tblTempVendorCDR_20' ) start [2025-04-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890112', 'tblTempVendorCDR_20' ) end [2025-04-12 07:44:18] Production.INFO: ProcessCDR(1,14890112,1,1,2) [2025-04-12 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890112', 'tblTempUsageDetail_20' ) start [2025-04-12 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890112', 'tblTempUsageDetail_20' ) end [2025-04-12 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:44:22] Production.INFO: ==4042== Releasing lock... [2025-04-12 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:45:05 [end_date_ymd] => 2025-04-12 07:45:05 [RateCDR] => 1 ) [2025-04-12 07:45: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-04-12 04:45:05' and `end` < '2025-04-12 07:45: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-04-12 07:45:18] Production.INFO: count ==113 [2025-04-12 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:45:05 - End Time 2025-04-12 07:45:05 [2025-04-12 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890117', 'tblTempUsageDetail_20' ) start [2025-04-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890117', 'tblTempUsageDetail_20' ) end [2025-04-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890117', 'tblTempVendorCDR_20' ) start [2025-04-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890117', 'tblTempVendorCDR_20' ) end [2025-04-12 07:45:18] Production.INFO: ProcessCDR(1,14890117,1,1,2) [2025-04-12 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890117', 'tblTempUsageDetail_20' ) start [2025-04-12 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890117', 'tblTempUsageDetail_20' ) end [2025-04-12 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:45:21] Production.INFO: ==4117== Releasing lock... [2025-04-12 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:46:05 [end_date_ymd] => 2025-04-12 07:46:05 [RateCDR] => 1 ) [2025-04-12 07:46: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-04-12 04:46:05' and `end` < '2025-04-12 07:46: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-04-12 07:46:18] Production.INFO: count ==113 [2025-04-12 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:46:05 - End Time 2025-04-12 07:46:05 [2025-04-12 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890122', 'tblTempUsageDetail_20' ) start [2025-04-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890122', 'tblTempUsageDetail_20' ) end [2025-04-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890122', 'tblTempVendorCDR_20' ) start [2025-04-12 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890122', 'tblTempVendorCDR_20' ) end [2025-04-12 07:46:18] Production.INFO: ProcessCDR(1,14890122,1,1,2) [2025-04-12 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890122', 'tblTempUsageDetail_20' ) start [2025-04-12 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890122', 'tblTempUsageDetail_20' ) end [2025-04-12 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:46:21] Production.INFO: ==4191== Releasing lock... [2025-04-12 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:47:05 [end_date_ymd] => 2025-04-12 07:47:05 [RateCDR] => 1 ) [2025-04-12 07:47: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-04-12 04:47:05' and `end` < '2025-04-12 07:47: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-04-12 07:47:18] Production.INFO: count ==113 [2025-04-12 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:47:05 - End Time 2025-04-12 07:47:05 [2025-04-12 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890127', 'tblTempUsageDetail_20' ) start [2025-04-12 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890127', 'tblTempUsageDetail_20' ) end [2025-04-12 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890127', 'tblTempVendorCDR_20' ) start [2025-04-12 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890127', 'tblTempVendorCDR_20' ) end [2025-04-12 07:47:18] Production.INFO: ProcessCDR(1,14890127,1,1,2) [2025-04-12 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890127', 'tblTempUsageDetail_20' ) start [2025-04-12 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890127', 'tblTempUsageDetail_20' ) end [2025-04-12 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:47:21] Production.INFO: ==4261== Releasing lock... [2025-04-12 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:47:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:48:04 [end_date_ymd] => 2025-04-12 07:48:04 [RateCDR] => 1 ) [2025-04-12 07:48: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-04-12 04:48:04' and `end` < '2025-04-12 07:48: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-04-12 07:48:17] Production.INFO: count ==112 [2025-04-12 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-12 04:48:04 - End Time 2025-04-12 07:48:04 [2025-04-12 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890132', 'tblTempUsageDetail_20' ) start [2025-04-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890132', 'tblTempUsageDetail_20' ) end [2025-04-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890132', 'tblTempVendorCDR_20' ) start [2025-04-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890132', 'tblTempVendorCDR_20' ) end [2025-04-12 07:48:17] Production.INFO: ProcessCDR(1,14890132,1,1,2) [2025-04-12 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890132', 'tblTempUsageDetail_20' ) start [2025-04-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890132', 'tblTempUsageDetail_20' ) end [2025-04-12 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:48:21] Production.INFO: ==4338== Releasing lock... [2025-04-12 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:49:05 [end_date_ymd] => 2025-04-12 07:49:05 [RateCDR] => 1 ) [2025-04-12 07:49: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-04-12 04:49:05' and `end` < '2025-04-12 07:49: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-04-12 07:49:18] Production.INFO: count ==112 [2025-04-12 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:49:05 - End Time 2025-04-12 07:49:05 [2025-04-12 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890137', 'tblTempUsageDetail_20' ) start [2025-04-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890137', 'tblTempUsageDetail_20' ) end [2025-04-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890137', 'tblTempVendorCDR_20' ) start [2025-04-12 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890137', 'tblTempVendorCDR_20' ) end [2025-04-12 07:49:18] Production.INFO: ProcessCDR(1,14890137,1,1,2) [2025-04-12 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890137', 'tblTempUsageDetail_20' ) start [2025-04-12 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890137', 'tblTempUsageDetail_20' ) end [2025-04-12 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:49:21] Production.INFO: ==4410== Releasing lock... [2025-04-12 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:50:06 [end_date_ymd] => 2025-04-12 07:50:06 [RateCDR] => 1 ) [2025-04-12 07:50: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-04-12 04:50:06' and `end` < '2025-04-12 07:50: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-04-12 07:50:18] Production.INFO: count ==122 [2025-04-12 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:50:06 - End Time 2025-04-12 07:50:06 [2025-04-12 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890142', 'tblTempUsageDetail_20' ) start [2025-04-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890142', 'tblTempUsageDetail_20' ) end [2025-04-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890142', 'tblTempVendorCDR_20' ) start [2025-04-12 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890142', 'tblTempVendorCDR_20' ) end [2025-04-12 07:50:18] Production.INFO: ProcessCDR(1,14890142,1,1,2) [2025-04-12 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890142', 'tblTempUsageDetail_20' ) start [2025-04-12 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890142', 'tblTempUsageDetail_20' ) end [2025-04-12 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:50:23] Production.INFO: ==4493== Releasing lock... [2025-04-12 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:50:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:51:05 [end_date_ymd] => 2025-04-12 07:51:05 [RateCDR] => 1 ) [2025-04-12 07:51: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-04-12 04:51:05' and `end` < '2025-04-12 07:51: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-04-12 07:51:18] Production.INFO: count ==122 [2025-04-12 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:51:05 - End Time 2025-04-12 07:51:05 [2025-04-12 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890148', 'tblTempUsageDetail_20' ) start [2025-04-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890148', 'tblTempUsageDetail_20' ) end [2025-04-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890148', 'tblTempVendorCDR_20' ) start [2025-04-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890148', 'tblTempVendorCDR_20' ) end [2025-04-12 07:51:18] Production.INFO: ProcessCDR(1,14890148,1,1,2) [2025-04-12 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890148', 'tblTempUsageDetail_20' ) start [2025-04-12 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890148', 'tblTempUsageDetail_20' ) end [2025-04-12 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:51:22] Production.INFO: ==4569== Releasing lock... [2025-04-12 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:51:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:52:05 [end_date_ymd] => 2025-04-12 07:52:05 [RateCDR] => 1 ) [2025-04-12 07:52: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-04-12 04:52:05' and `end` < '2025-04-12 07:52: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-04-12 07:52:18] Production.INFO: count ==121 [2025-04-12 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:52:05 - End Time 2025-04-12 07:52:05 [2025-04-12 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890153', 'tblTempUsageDetail_20' ) start [2025-04-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890153', 'tblTempUsageDetail_20' ) end [2025-04-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890153', 'tblTempVendorCDR_20' ) start [2025-04-12 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890153', 'tblTempVendorCDR_20' ) end [2025-04-12 07:52:18] Production.INFO: ProcessCDR(1,14890153,1,1,2) [2025-04-12 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890153', 'tblTempUsageDetail_20' ) start [2025-04-12 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890153', 'tblTempUsageDetail_20' ) end [2025-04-12 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:52:21] Production.INFO: ==4688== Releasing lock... [2025-04-12 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:52:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:53:05 [end_date_ymd] => 2025-04-12 07:53:05 [RateCDR] => 1 ) [2025-04-12 07:53: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-04-12 04:53:05' and `end` < '2025-04-12 07:53: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-04-12 07:53:18] Production.INFO: count ==121 [2025-04-12 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:53:05 - End Time 2025-04-12 07:53:05 [2025-04-12 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890158', 'tblTempUsageDetail_20' ) start [2025-04-12 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890158', 'tblTempUsageDetail_20' ) end [2025-04-12 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890158', 'tblTempVendorCDR_20' ) start [2025-04-12 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890158', 'tblTempVendorCDR_20' ) end [2025-04-12 07:53:18] Production.INFO: ProcessCDR(1,14890158,1,1,2) [2025-04-12 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890158', 'tblTempUsageDetail_20' ) start [2025-04-12 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890158', 'tblTempUsageDetail_20' ) end [2025-04-12 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:53:22] Production.INFO: ==4765== Releasing lock... [2025-04-12 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:53:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:54:05 [end_date_ymd] => 2025-04-12 07:54:05 [RateCDR] => 1 ) [2025-04-12 07:54: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-04-12 04:54:05' and `end` < '2025-04-12 07:54: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-04-12 07:54:18] Production.INFO: count ==122 [2025-04-12 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:54:05 - End Time 2025-04-12 07:54:05 [2025-04-12 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890163', 'tblTempUsageDetail_20' ) start [2025-04-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890163', 'tblTempUsageDetail_20' ) end [2025-04-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890163', 'tblTempVendorCDR_20' ) start [2025-04-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890163', 'tblTempVendorCDR_20' ) end [2025-04-12 07:54:18] Production.INFO: ProcessCDR(1,14890163,1,1,2) [2025-04-12 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890163', 'tblTempUsageDetail_20' ) start [2025-04-12 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890163', 'tblTempUsageDetail_20' ) end [2025-04-12 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:54:23] Production.INFO: ==4840== Releasing lock... [2025-04-12 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:54:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:55:06 [end_date_ymd] => 2025-04-12 07:55:06 [RateCDR] => 1 ) [2025-04-12 07:55: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-04-12 04:55:06' and `end` < '2025-04-12 07:55: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-04-12 07:55:18] Production.INFO: count ==122 [2025-04-12 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:55:06 - End Time 2025-04-12 07:55:06 [2025-04-12 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890168', 'tblTempUsageDetail_20' ) start [2025-04-12 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890168', 'tblTempUsageDetail_20' ) end [2025-04-12 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890168', 'tblTempVendorCDR_20' ) start [2025-04-12 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890168', 'tblTempVendorCDR_20' ) end [2025-04-12 07:55:19] Production.INFO: ProcessCDR(1,14890168,1,1,2) [2025-04-12 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890168', 'tblTempUsageDetail_20' ) start [2025-04-12 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890168', 'tblTempUsageDetail_20' ) end [2025-04-12 07:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:55:24] Production.INFO: ==4917== Releasing lock... [2025-04-12 07:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:55:24] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:56:05 [end_date_ymd] => 2025-04-12 07:56:05 [RateCDR] => 1 ) [2025-04-12 07:56: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-04-12 04:56:05' and `end` < '2025-04-12 07:56: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-04-12 07:56:18] Production.INFO: count ==121 [2025-04-12 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:56:05 - End Time 2025-04-12 07:56:05 [2025-04-12 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890173', 'tblTempUsageDetail_20' ) start [2025-04-12 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890173', 'tblTempUsageDetail_20' ) end [2025-04-12 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890173', 'tblTempVendorCDR_20' ) start [2025-04-12 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890173', 'tblTempVendorCDR_20' ) end [2025-04-12 07:56:18] Production.INFO: ProcessCDR(1,14890173,1,1,2) [2025-04-12 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890173', 'tblTempUsageDetail_20' ) start [2025-04-12 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890173', 'tblTempUsageDetail_20' ) end [2025-04-12 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:56:21] Production.INFO: ==4990== Releasing lock... [2025-04-12 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:57:06 [end_date_ymd] => 2025-04-12 07:57:06 [RateCDR] => 1 ) [2025-04-12 07:57: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-04-12 04:57:06' and `end` < '2025-04-12 07:57: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-04-12 07:57:18] Production.INFO: count ==120 [2025-04-12 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:57:06 - End Time 2025-04-12 07:57:06 [2025-04-12 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890178', 'tblTempUsageDetail_20' ) start [2025-04-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890178', 'tblTempUsageDetail_20' ) end [2025-04-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890178', 'tblTempVendorCDR_20' ) start [2025-04-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890178', 'tblTempVendorCDR_20' ) end [2025-04-12 07:57:18] Production.INFO: ProcessCDR(1,14890178,1,1,2) [2025-04-12 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890178', 'tblTempUsageDetail_20' ) start [2025-04-12 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890178', 'tblTempUsageDetail_20' ) end [2025-04-12 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:57:22] Production.INFO: ==5069== Releasing lock... [2025-04-12 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:58:05 [end_date_ymd] => 2025-04-12 07:58:05 [RateCDR] => 1 ) [2025-04-12 07:58: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-04-12 04:58:05' and `end` < '2025-04-12 07:58: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-04-12 07:58:18] Production.INFO: count ==121 [2025-04-12 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:58:05 - End Time 2025-04-12 07:58:05 [2025-04-12 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890183', 'tblTempUsageDetail_20' ) start [2025-04-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890183', 'tblTempUsageDetail_20' ) end [2025-04-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890183', 'tblTempVendorCDR_20' ) start [2025-04-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890183', 'tblTempVendorCDR_20' ) end [2025-04-12 07:58:18] Production.INFO: ProcessCDR(1,14890183,1,1,2) [2025-04-12 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890183', 'tblTempUsageDetail_20' ) start [2025-04-12 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890183', 'tblTempUsageDetail_20' ) end [2025-04-12 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:58:23] Production.INFO: ==5145== Releasing lock... [2025-04-12 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:58:23] Production.INFO: 29 MB #Memory Used# [2025-04-12 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 04:59:05 [end_date_ymd] => 2025-04-12 07:59:05 [RateCDR] => 1 ) [2025-04-12 07:59: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-04-12 04:59:05' and `end` < '2025-04-12 07:59: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-04-12 07:59:18] Production.INFO: count ==121 [2025-04-12 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 04:59:05 - End Time 2025-04-12 07:59:05 [2025-04-12 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890188', 'tblTempUsageDetail_20' ) start [2025-04-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890188', 'tblTempUsageDetail_20' ) end [2025-04-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890188', 'tblTempVendorCDR_20' ) start [2025-04-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890188', 'tblTempVendorCDR_20' ) end [2025-04-12 07:59:18] Production.INFO: ProcessCDR(1,14890188,1,1,2) [2025-04-12 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890188', 'tblTempUsageDetail_20' ) start [2025-04-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890188', 'tblTempUsageDetail_20' ) end [2025-04-12 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 07:59:21] Production.INFO: ==5219== Releasing lock... [2025-04-12 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 07:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:00:06 [end_date_ymd] => 2025-04-12 08:00:06 [RateCDR] => 1 ) [2025-04-12 08:00: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-04-12 05:00:06' and `end` < '2025-04-12 08:00: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-04-12 08:00:18] Production.INFO: count ==121 [2025-04-12 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:00:06 - End Time 2025-04-12 08:00:06 [2025-04-12 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890194', 'tblTempUsageDetail_20' ) start [2025-04-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890194', 'tblTempUsageDetail_20' ) end [2025-04-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890194', 'tblTempVendorCDR_20' ) start [2025-04-12 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890194', 'tblTempVendorCDR_20' ) end [2025-04-12 08:00:19] Production.INFO: ProcessCDR(1,14890194,1,1,2) [2025-04-12 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890194', 'tblTempUsageDetail_20' ) start [2025-04-12 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890194', 'tblTempUsageDetail_20' ) end [2025-04-12 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:00:22] Production.INFO: ==5295== Releasing lock... [2025-04-12 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:01:05 [end_date_ymd] => 2025-04-12 08:01:05 [RateCDR] => 1 ) [2025-04-12 08:01: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-04-12 05:01:05' and `end` < '2025-04-12 08:01: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-04-12 08:01:18] Production.INFO: count ==121 [2025-04-12 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:01:05 - End Time 2025-04-12 08:01:05 [2025-04-12 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890199', 'tblTempUsageDetail_20' ) start [2025-04-12 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890199', 'tblTempUsageDetail_20' ) end [2025-04-12 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890199', 'tblTempVendorCDR_20' ) start [2025-04-12 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890199', 'tblTempVendorCDR_20' ) end [2025-04-12 08:01:18] Production.INFO: ProcessCDR(1,14890199,1,1,2) [2025-04-12 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890199', 'tblTempUsageDetail_20' ) start [2025-04-12 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890199', 'tblTempUsageDetail_20' ) end [2025-04-12 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:01:21] Production.INFO: ==5381== Releasing lock... [2025-04-12 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:01:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:02:05 [end_date_ymd] => 2025-04-12 08:02:05 [RateCDR] => 1 ) [2025-04-12 08:02: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-04-12 05:02:05' and `end` < '2025-04-12 08:02: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-04-12 08:02:18] Production.INFO: count ==123 [2025-04-12 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:02:05 - End Time 2025-04-12 08:02:05 [2025-04-12 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890204', 'tblTempUsageDetail_20' ) start [2025-04-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890204', 'tblTempUsageDetail_20' ) end [2025-04-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890204', 'tblTempVendorCDR_20' ) start [2025-04-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890204', 'tblTempVendorCDR_20' ) end [2025-04-12 08:02:18] Production.INFO: ProcessCDR(1,14890204,1,1,2) [2025-04-12 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890204', 'tblTempUsageDetail_20' ) start [2025-04-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890204', 'tblTempUsageDetail_20' ) end [2025-04-12 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:02:21] Production.INFO: ==5459== Releasing lock... [2025-04-12 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:03:05 [end_date_ymd] => 2025-04-12 08:03:05 [RateCDR] => 1 ) [2025-04-12 08:03: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-04-12 05:03:05' and `end` < '2025-04-12 08:03: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-04-12 08:03:18] Production.INFO: count ==125 [2025-04-12 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:03:05 - End Time 2025-04-12 08:03:05 [2025-04-12 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890209', 'tblTempUsageDetail_20' ) start [2025-04-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890209', 'tblTempUsageDetail_20' ) end [2025-04-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890209', 'tblTempVendorCDR_20' ) start [2025-04-12 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890209', 'tblTempVendorCDR_20' ) end [2025-04-12 08:03:18] Production.INFO: ProcessCDR(1,14890209,1,1,2) [2025-04-12 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890209', 'tblTempUsageDetail_20' ) start [2025-04-12 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890209', 'tblTempUsageDetail_20' ) end [2025-04-12 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:03:21] Production.INFO: ==5536== Releasing lock... [2025-04-12 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:04:05 [end_date_ymd] => 2025-04-12 08:04:05 [RateCDR] => 1 ) [2025-04-12 08:04: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-04-12 05:04:05' and `end` < '2025-04-12 08:04: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-04-12 08:04:18] Production.INFO: count ==125 [2025-04-12 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:04:05 - End Time 2025-04-12 08:04:05 [2025-04-12 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890214', 'tblTempUsageDetail_20' ) start [2025-04-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890214', 'tblTempUsageDetail_20' ) end [2025-04-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890214', 'tblTempVendorCDR_20' ) start [2025-04-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890214', 'tblTempVendorCDR_20' ) end [2025-04-12 08:04:18] Production.INFO: ProcessCDR(1,14890214,1,1,2) [2025-04-12 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890214', 'tblTempUsageDetail_20' ) start [2025-04-12 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890214', 'tblTempUsageDetail_20' ) end [2025-04-12 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:04:22] Production.INFO: ==5614== Releasing lock... [2025-04-12 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:05:06 [end_date_ymd] => 2025-04-12 08:05:06 [RateCDR] => 1 ) [2025-04-12 08:05: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-04-12 05:05:06' and `end` < '2025-04-12 08:05: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-04-12 08:05:18] Production.INFO: count ==124 [2025-04-12 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:05:06 - End Time 2025-04-12 08:05:06 [2025-04-12 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890219', 'tblTempUsageDetail_20' ) start [2025-04-12 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890219', 'tblTempUsageDetail_20' ) end [2025-04-12 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890219', 'tblTempVendorCDR_20' ) start [2025-04-12 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890219', 'tblTempVendorCDR_20' ) end [2025-04-12 08:05:18] Production.INFO: ProcessCDR(1,14890219,1,1,2) [2025-04-12 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890219', 'tblTempUsageDetail_20' ) start [2025-04-12 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890219', 'tblTempUsageDetail_20' ) end [2025-04-12 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:05:22] Production.INFO: ==5688== Releasing lock... [2025-04-12 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:05:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:06:06 [end_date_ymd] => 2025-04-12 08:06:06 [RateCDR] => 1 ) [2025-04-12 08:06: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-04-12 05:06:06' and `end` < '2025-04-12 08:06: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-04-12 08:06:19] Production.INFO: count ==121 [2025-04-12 08:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:06:06 - End Time 2025-04-12 08:06:06 [2025-04-12 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890224', 'tblTempUsageDetail_20' ) start [2025-04-12 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890224', 'tblTempUsageDetail_20' ) end [2025-04-12 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890224', 'tblTempVendorCDR_20' ) start [2025-04-12 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890224', 'tblTempVendorCDR_20' ) end [2025-04-12 08:06:19] Production.INFO: ProcessCDR(1,14890224,1,1,2) [2025-04-12 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890224', 'tblTempUsageDetail_20' ) start [2025-04-12 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890224', 'tblTempUsageDetail_20' ) end [2025-04-12 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:06:22] Production.INFO: ==5759== Releasing lock... [2025-04-12 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:06:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:07:05 [end_date_ymd] => 2025-04-12 08:07:05 [RateCDR] => 1 ) [2025-04-12 08:07: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-04-12 05:07:05' and `end` < '2025-04-12 08:07: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-04-12 08:07:18] Production.INFO: count ==121 [2025-04-12 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:07:05 - End Time 2025-04-12 08:07:05 [2025-04-12 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890229', 'tblTempUsageDetail_20' ) start [2025-04-12 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890229', 'tblTempUsageDetail_20' ) end [2025-04-12 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890229', 'tblTempVendorCDR_20' ) start [2025-04-12 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890229', 'tblTempVendorCDR_20' ) end [2025-04-12 08:07:18] Production.INFO: ProcessCDR(1,14890229,1,1,2) [2025-04-12 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890229', 'tblTempUsageDetail_20' ) start [2025-04-12 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890229', 'tblTempUsageDetail_20' ) end [2025-04-12 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:07:21] Production.INFO: ==5872== Releasing lock... [2025-04-12 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:07:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:08:06 [end_date_ymd] => 2025-04-12 08:08:06 [RateCDR] => 1 ) [2025-04-12 08:08: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-04-12 05:08:06' and `end` < '2025-04-12 08:08: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-04-12 08:08:19] Production.INFO: count ==119 [2025-04-12 08:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:08:06 - End Time 2025-04-12 08:08:06 [2025-04-12 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890234', 'tblTempUsageDetail_20' ) start [2025-04-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890234', 'tblTempUsageDetail_20' ) end [2025-04-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890234', 'tblTempVendorCDR_20' ) start [2025-04-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890234', 'tblTempVendorCDR_20' ) end [2025-04-12 08:08:19] Production.INFO: ProcessCDR(1,14890234,1,1,2) [2025-04-12 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890234', 'tblTempUsageDetail_20' ) start [2025-04-12 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890234', 'tblTempUsageDetail_20' ) end [2025-04-12 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:08:22] Production.INFO: ==5948== Releasing lock... [2025-04-12 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:09:05 [end_date_ymd] => 2025-04-12 08:09:05 [RateCDR] => 1 ) [2025-04-12 08:09: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-04-12 05:09:05' and `end` < '2025-04-12 08:09: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-04-12 08:09:18] Production.INFO: count ==117 [2025-04-12 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:09:05 - End Time 2025-04-12 08:09:05 [2025-04-12 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890239', 'tblTempUsageDetail_20' ) start [2025-04-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890239', 'tblTempUsageDetail_20' ) end [2025-04-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890239', 'tblTempVendorCDR_20' ) start [2025-04-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890239', 'tblTempVendorCDR_20' ) end [2025-04-12 08:09:18] Production.INFO: ProcessCDR(1,14890239,1,1,2) [2025-04-12 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890239', 'tblTempUsageDetail_20' ) start [2025-04-12 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890239', 'tblTempUsageDetail_20' ) end [2025-04-12 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:09:21] Production.INFO: ==6024== Releasing lock... [2025-04-12 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:10:06 [end_date_ymd] => 2025-04-12 08:10:06 [RateCDR] => 1 ) [2025-04-12 08:10: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-04-12 05:10:06' and `end` < '2025-04-12 08:10: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-04-12 08:10:19] Production.INFO: count ==109 [2025-04-12 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:10:06 - End Time 2025-04-12 08:10:06 [2025-04-12 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890244', 'tblTempUsageDetail_20' ) start [2025-04-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890244', 'tblTempUsageDetail_20' ) end [2025-04-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890244', 'tblTempVendorCDR_20' ) start [2025-04-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890244', 'tblTempVendorCDR_20' ) end [2025-04-12 08:10:19] Production.INFO: ProcessCDR(1,14890244,1,1,2) [2025-04-12 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890244', 'tblTempUsageDetail_20' ) start [2025-04-12 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890244', 'tblTempUsageDetail_20' ) end [2025-04-12 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:10:22] Production.INFO: ==6099== Releasing lock... [2025-04-12 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-12 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:11:05 [end_date_ymd] => 2025-04-12 08:11:05 [RateCDR] => 1 ) [2025-04-12 08:11: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-04-12 05:11:05' and `end` < '2025-04-12 08:11: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-04-12 08:11:18] Production.INFO: count ==115 [2025-04-12 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:11:05 - End Time 2025-04-12 08:11:05 [2025-04-12 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890250', 'tblTempUsageDetail_20' ) start [2025-04-12 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890250', 'tblTempUsageDetail_20' ) end [2025-04-12 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890250', 'tblTempVendorCDR_20' ) start [2025-04-12 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890250', 'tblTempVendorCDR_20' ) end [2025-04-12 08:11:18] Production.INFO: ProcessCDR(1,14890250,1,1,2) [2025-04-12 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890250', 'tblTempUsageDetail_20' ) start [2025-04-12 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890250', 'tblTempUsageDetail_20' ) end [2025-04-12 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:11:21] Production.INFO: ==6176== Releasing lock... [2025-04-12 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:12:05 [end_date_ymd] => 2025-04-12 08:12:05 [RateCDR] => 1 ) [2025-04-12 08:12: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-04-12 05:12:05' and `end` < '2025-04-12 08:12: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-04-12 08:12:18] Production.INFO: count ==115 [2025-04-12 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:12:05 - End Time 2025-04-12 08:12:05 [2025-04-12 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890255', 'tblTempUsageDetail_20' ) start [2025-04-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890255', 'tblTempUsageDetail_20' ) end [2025-04-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890255', 'tblTempVendorCDR_20' ) start [2025-04-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890255', 'tblTempVendorCDR_20' ) end [2025-04-12 08:12:18] Production.INFO: ProcessCDR(1,14890255,1,1,2) [2025-04-12 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890255', 'tblTempUsageDetail_20' ) start [2025-04-12 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890255', 'tblTempUsageDetail_20' ) end [2025-04-12 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:12:22] Production.INFO: ==6247== Releasing lock... [2025-04-12 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:12:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:13:05 [end_date_ymd] => 2025-04-12 08:13:05 [RateCDR] => 1 ) [2025-04-12 08:13: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-04-12 05:13:05' and `end` < '2025-04-12 08:13: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-04-12 08:13:18] Production.INFO: count ==115 [2025-04-12 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:13:05 - End Time 2025-04-12 08:13:05 [2025-04-12 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890260', 'tblTempUsageDetail_20' ) start [2025-04-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890260', 'tblTempUsageDetail_20' ) end [2025-04-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890260', 'tblTempVendorCDR_20' ) start [2025-04-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890260', 'tblTempVendorCDR_20' ) end [2025-04-12 08:13:18] Production.INFO: ProcessCDR(1,14890260,1,1,2) [2025-04-12 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890260', 'tblTempUsageDetail_20' ) start [2025-04-12 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890260', 'tblTempUsageDetail_20' ) end [2025-04-12 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:13:21] Production.INFO: ==6320== Releasing lock... [2025-04-12 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:13:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:14:05 [end_date_ymd] => 2025-04-12 08:14:05 [RateCDR] => 1 ) [2025-04-12 08:14: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-04-12 05:14:05' and `end` < '2025-04-12 08:14: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-04-12 08:14:18] Production.INFO: count ==120 [2025-04-12 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:14:05 - End Time 2025-04-12 08:14:05 [2025-04-12 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890265', 'tblTempUsageDetail_20' ) start [2025-04-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890265', 'tblTempUsageDetail_20' ) end [2025-04-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890265', 'tblTempVendorCDR_20' ) start [2025-04-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890265', 'tblTempVendorCDR_20' ) end [2025-04-12 08:14:18] Production.INFO: ProcessCDR(1,14890265,1,1,2) [2025-04-12 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890265', 'tblTempUsageDetail_20' ) start [2025-04-12 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890265', 'tblTempUsageDetail_20' ) end [2025-04-12 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:14:22] Production.INFO: ==6395== Releasing lock... [2025-04-12 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:15:04 [end_date_ymd] => 2025-04-12 08:15:04 [RateCDR] => 1 ) [2025-04-12 08:15: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-04-12 05:15:04' and `end` < '2025-04-12 08:15: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-04-12 08:15:17] Production.INFO: count ==116 [2025-04-12 08:15:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:15:04 - End Time 2025-04-12 08:15:04 [2025-04-12 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890270', 'tblTempUsageDetail_20' ) start [2025-04-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890270', 'tblTempUsageDetail_20' ) end [2025-04-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890270', 'tblTempVendorCDR_20' ) start [2025-04-12 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890270', 'tblTempVendorCDR_20' ) end [2025-04-12 08:15:17] Production.INFO: ProcessCDR(1,14890270,1,1,2) [2025-04-12 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890270', 'tblTempUsageDetail_20' ) start [2025-04-12 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890270', 'tblTempUsageDetail_20' ) end [2025-04-12 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:15:21] Production.INFO: ==6473== Releasing lock... [2025-04-12 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:15:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:16:05 [end_date_ymd] => 2025-04-12 08:16:05 [RateCDR] => 1 ) [2025-04-12 08:16: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-04-12 05:16:05' and `end` < '2025-04-12 08:16: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-04-12 08:16:18] Production.INFO: count ==116 [2025-04-12 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:16:05 - End Time 2025-04-12 08:16:05 [2025-04-12 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890275', 'tblTempUsageDetail_20' ) start [2025-04-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890275', 'tblTempUsageDetail_20' ) end [2025-04-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890275', 'tblTempVendorCDR_20' ) start [2025-04-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890275', 'tblTempVendorCDR_20' ) end [2025-04-12 08:16:18] Production.INFO: ProcessCDR(1,14890275,1,1,2) [2025-04-12 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890275', 'tblTempUsageDetail_20' ) start [2025-04-12 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890275', 'tblTempUsageDetail_20' ) end [2025-04-12 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:16:21] Production.INFO: ==6547== Releasing lock... [2025-04-12 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:16:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:17:05 [end_date_ymd] => 2025-04-12 08:17:05 [RateCDR] => 1 ) [2025-04-12 08:17: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-04-12 05:17:05' and `end` < '2025-04-12 08:17: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-04-12 08:17:17] Production.INFO: count ==116 [2025-04-12 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:17:05 - End Time 2025-04-12 08:17:05 [2025-04-12 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890280', 'tblTempUsageDetail_20' ) start [2025-04-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890280', 'tblTempUsageDetail_20' ) end [2025-04-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890280', 'tblTempVendorCDR_20' ) start [2025-04-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890280', 'tblTempVendorCDR_20' ) end [2025-04-12 08:17:18] Production.INFO: ProcessCDR(1,14890280,1,1,2) [2025-04-12 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890280', 'tblTempUsageDetail_20' ) start [2025-04-12 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890280', 'tblTempUsageDetail_20' ) end [2025-04-12 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:17:21] Production.INFO: ==6623== Releasing lock... [2025-04-12 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:18:05 [end_date_ymd] => 2025-04-12 08:18:05 [RateCDR] => 1 ) [2025-04-12 08:18: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-04-12 05:18:05' and `end` < '2025-04-12 08:18: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-04-12 08:18:17] Production.INFO: count ==116 [2025-04-12 08:18:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:18:05 - End Time 2025-04-12 08:18:05 [2025-04-12 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890285', 'tblTempUsageDetail_20' ) start [2025-04-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890285', 'tblTempUsageDetail_20' ) end [2025-04-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890285', 'tblTempVendorCDR_20' ) start [2025-04-12 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890285', 'tblTempVendorCDR_20' ) end [2025-04-12 08:18:17] Production.INFO: ProcessCDR(1,14890285,1,1,2) [2025-04-12 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890285', 'tblTempUsageDetail_20' ) start [2025-04-12 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890285', 'tblTempUsageDetail_20' ) end [2025-04-12 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:18:21] Production.INFO: ==6698== Releasing lock... [2025-04-12 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:19:04 [end_date_ymd] => 2025-04-12 08:19:04 [RateCDR] => 1 ) [2025-04-12 08:19: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-04-12 05:19:04' and `end` < '2025-04-12 08:19: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-04-12 08:19:17] Production.INFO: count ==116 [2025-04-12 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:19:04 - End Time 2025-04-12 08:19:04 [2025-04-12 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890290', 'tblTempUsageDetail_20' ) start [2025-04-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890290', 'tblTempUsageDetail_20' ) end [2025-04-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890290', 'tblTempVendorCDR_20' ) start [2025-04-12 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890290', 'tblTempVendorCDR_20' ) end [2025-04-12 08:19:17] Production.INFO: ProcessCDR(1,14890290,1,1,2) [2025-04-12 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890290', 'tblTempUsageDetail_20' ) start [2025-04-12 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890290', 'tblTempUsageDetail_20' ) end [2025-04-12 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:19:20] Production.INFO: ==6768== Releasing lock... [2025-04-12 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:19:20] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:20:06 [end_date_ymd] => 2025-04-12 08:20:06 [RateCDR] => 1 ) [2025-04-12 08:20: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-04-12 05:20:06' and `end` < '2025-04-12 08:20: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-04-12 08:20:19] Production.INFO: count ==131 [2025-04-12 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:20:06 - End Time 2025-04-12 08:20:06 [2025-04-12 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890296', 'tblTempUsageDetail_20' ) start [2025-04-12 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890296', 'tblTempUsageDetail_20' ) end [2025-04-12 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890296', 'tblTempVendorCDR_20' ) start [2025-04-12 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890296', 'tblTempVendorCDR_20' ) end [2025-04-12 08:20:19] Production.INFO: ProcessCDR(1,14890296,1,1,2) [2025-04-12 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890296', 'tblTempUsageDetail_20' ) start [2025-04-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890296', 'tblTempUsageDetail_20' ) end [2025-04-12 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:20:22] Production.INFO: ==6847== Releasing lock... [2025-04-12 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:21:04 [end_date_ymd] => 2025-04-12 08:21:04 [RateCDR] => 1 ) [2025-04-12 08:21: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-04-12 05:21:04' and `end` < '2025-04-12 08:21: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-04-12 08:21:17] Production.INFO: count ==135 [2025-04-12 08:21:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:21:04 - End Time 2025-04-12 08:21:04 [2025-04-12 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890301', 'tblTempUsageDetail_20' ) start [2025-04-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890301', 'tblTempUsageDetail_20' ) end [2025-04-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890301', 'tblTempVendorCDR_20' ) start [2025-04-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890301', 'tblTempVendorCDR_20' ) end [2025-04-12 08:21:17] Production.INFO: ProcessCDR(1,14890301,1,1,2) [2025-04-12 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890301', 'tblTempUsageDetail_20' ) start [2025-04-12 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890301', 'tblTempUsageDetail_20' ) end [2025-04-12 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:21:20] Production.INFO: ==6923== Releasing lock... [2025-04-12 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:22:05 [end_date_ymd] => 2025-04-12 08:22:05 [RateCDR] => 1 ) [2025-04-12 08:22: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-04-12 05:22:05' and `end` < '2025-04-12 08:22: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-04-12 08:22:18] Production.INFO: count ==135 [2025-04-12 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:22:05 - End Time 2025-04-12 08:22:05 [2025-04-12 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890306', 'tblTempUsageDetail_20' ) start [2025-04-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890306', 'tblTempUsageDetail_20' ) end [2025-04-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890306', 'tblTempVendorCDR_20' ) start [2025-04-12 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890306', 'tblTempVendorCDR_20' ) end [2025-04-12 08:22:18] Production.INFO: ProcessCDR(1,14890306,1,1,2) [2025-04-12 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890306', 'tblTempUsageDetail_20' ) start [2025-04-12 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890306', 'tblTempUsageDetail_20' ) end [2025-04-12 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:22:21] Production.INFO: ==6999== Releasing lock... [2025-04-12 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:23:05 [end_date_ymd] => 2025-04-12 08:23:05 [RateCDR] => 1 ) [2025-04-12 08:23: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-04-12 05:23:05' and `end` < '2025-04-12 08:23: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-04-12 08:23:18] Production.INFO: count ==133 [2025-04-12 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:23:05 - End Time 2025-04-12 08:23:05 [2025-04-12 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890311', 'tblTempUsageDetail_20' ) start [2025-04-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890311', 'tblTempUsageDetail_20' ) end [2025-04-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890311', 'tblTempVendorCDR_20' ) start [2025-04-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890311', 'tblTempVendorCDR_20' ) end [2025-04-12 08:23:18] Production.INFO: ProcessCDR(1,14890311,1,1,2) [2025-04-12 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890311', 'tblTempUsageDetail_20' ) start [2025-04-12 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890311', 'tblTempUsageDetail_20' ) end [2025-04-12 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:23:22] Production.INFO: ==7108== Releasing lock... [2025-04-12 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:24:05 [end_date_ymd] => 2025-04-12 08:24:05 [RateCDR] => 1 ) [2025-04-12 08:24: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-04-12 05:24:05' and `end` < '2025-04-12 08:24: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-04-12 08:24:18] Production.INFO: count ==130 [2025-04-12 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:24:05 - End Time 2025-04-12 08:24:05 [2025-04-12 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890316', 'tblTempUsageDetail_20' ) start [2025-04-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890316', 'tblTempUsageDetail_20' ) end [2025-04-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890316', 'tblTempVendorCDR_20' ) start [2025-04-12 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890316', 'tblTempVendorCDR_20' ) end [2025-04-12 08:24:18] Production.INFO: ProcessCDR(1,14890316,1,1,2) [2025-04-12 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890316', 'tblTempUsageDetail_20' ) start [2025-04-12 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890316', 'tblTempUsageDetail_20' ) end [2025-04-12 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:24:21] Production.INFO: ==7182== Releasing lock... [2025-04-12 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:25:05 [end_date_ymd] => 2025-04-12 08:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 05:25:05' and `end` < '2025-04-12 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-04-12 08:25:18] Production.INFO: count ==128 [2025-04-12 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:25:05 - End Time 2025-04-12 08:25:05 [2025-04-12 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890321', 'tblTempUsageDetail_20' ) start [2025-04-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890321', 'tblTempUsageDetail_20' ) end [2025-04-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890321', 'tblTempVendorCDR_20' ) start [2025-04-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890321', 'tblTempVendorCDR_20' ) end [2025-04-12 08:25:18] Production.INFO: ProcessCDR(1,14890321,1,1,2) [2025-04-12 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890321', 'tblTempUsageDetail_20' ) start [2025-04-12 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890321', 'tblTempUsageDetail_20' ) end [2025-04-12 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:25:21] Production.INFO: ==7262== Releasing lock... [2025-04-12 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:25:21] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:26:05 [end_date_ymd] => 2025-04-12 08:26:05 [RateCDR] => 1 ) [2025-04-12 08:26: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-04-12 05:26:05' and `end` < '2025-04-12 08:26: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-04-12 08:26:17] Production.INFO: count ==133 [2025-04-12 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:26:05 - End Time 2025-04-12 08:26:05 [2025-04-12 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890326', 'tblTempUsageDetail_20' ) start [2025-04-12 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890326', 'tblTempUsageDetail_20' ) end [2025-04-12 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890326', 'tblTempVendorCDR_20' ) start [2025-04-12 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890326', 'tblTempVendorCDR_20' ) end [2025-04-12 08:26:18] Production.INFO: ProcessCDR(1,14890326,1,1,2) [2025-04-12 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890326', 'tblTempUsageDetail_20' ) start [2025-04-12 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890326', 'tblTempUsageDetail_20' ) end [2025-04-12 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:26:21] Production.INFO: ==7332== Releasing lock... [2025-04-12 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:27:05 [end_date_ymd] => 2025-04-12 08:27:05 [RateCDR] => 1 ) [2025-04-12 08:27: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-04-12 05:27:05' and `end` < '2025-04-12 08:27: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-04-12 08:27:18] Production.INFO: count ==133 [2025-04-12 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:27:05 - End Time 2025-04-12 08:27:05 [2025-04-12 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890331', 'tblTempUsageDetail_20' ) start [2025-04-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890331', 'tblTempUsageDetail_20' ) end [2025-04-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890331', 'tblTempVendorCDR_20' ) start [2025-04-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890331', 'tblTempVendorCDR_20' ) end [2025-04-12 08:27:18] Production.INFO: ProcessCDR(1,14890331,1,1,2) [2025-04-12 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890331', 'tblTempUsageDetail_20' ) start [2025-04-12 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890331', 'tblTempUsageDetail_20' ) end [2025-04-12 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:27:21] Production.INFO: ==7414== Releasing lock... [2025-04-12 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:28:05 [end_date_ymd] => 2025-04-12 08:28:05 [RateCDR] => 1 ) [2025-04-12 08:28: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-04-12 05:28:05' and `end` < '2025-04-12 08:28: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-04-12 08:28:17] Production.INFO: count ==133 [2025-04-12 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:28:05 - End Time 2025-04-12 08:28:05 [2025-04-12 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890336', 'tblTempUsageDetail_20' ) start [2025-04-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890336', 'tblTempUsageDetail_20' ) end [2025-04-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890336', 'tblTempVendorCDR_20' ) start [2025-04-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890336', 'tblTempVendorCDR_20' ) end [2025-04-12 08:28:18] Production.INFO: ProcessCDR(1,14890336,1,1,2) [2025-04-12 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890336', 'tblTempUsageDetail_20' ) start [2025-04-12 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890336', 'tblTempUsageDetail_20' ) end [2025-04-12 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:28:21] Production.INFO: ==7491== Releasing lock... [2025-04-12 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:29:06 [end_date_ymd] => 2025-04-12 08:29:06 [RateCDR] => 1 ) [2025-04-12 08:29: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-04-12 05:29:06' and `end` < '2025-04-12 08:29: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-04-12 08:29:18] Production.INFO: count ==133 [2025-04-12 08:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:29:06 - End Time 2025-04-12 08:29:06 [2025-04-12 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890341', 'tblTempUsageDetail_20' ) start [2025-04-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890341', 'tblTempUsageDetail_20' ) end [2025-04-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890341', 'tblTempVendorCDR_20' ) start [2025-04-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890341', 'tblTempVendorCDR_20' ) end [2025-04-12 08:29:19] Production.INFO: ProcessCDR(1,14890341,1,1,2) [2025-04-12 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890341', 'tblTempUsageDetail_20' ) start [2025-04-12 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890341', 'tblTempUsageDetail_20' ) end [2025-04-12 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:29:22] Production.INFO: ==7563== Releasing lock... [2025-04-12 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:30:06 [end_date_ymd] => 2025-04-12 08:30:06 [RateCDR] => 1 ) [2025-04-12 08:30: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-04-12 05:30:06' and `end` < '2025-04-12 08:30: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-04-12 08:30:18] Production.INFO: count ==143 [2025-04-12 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:30:06 - End Time 2025-04-12 08:30:06 [2025-04-12 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890347', 'tblTempUsageDetail_20' ) start [2025-04-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890347', 'tblTempUsageDetail_20' ) end [2025-04-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890347', 'tblTempVendorCDR_20' ) start [2025-04-12 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890347', 'tblTempVendorCDR_20' ) end [2025-04-12 08:30:18] Production.INFO: ProcessCDR(1,14890347,1,1,2) [2025-04-12 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890347', 'tblTempUsageDetail_20' ) start [2025-04-12 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890347', 'tblTempUsageDetail_20' ) end [2025-04-12 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:30:22] Production.INFO: ==7639== Releasing lock... [2025-04-12 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-12 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:31:05 [end_date_ymd] => 2025-04-12 08:31:05 [RateCDR] => 1 ) [2025-04-12 08:31: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-04-12 05:31:05' and `end` < '2025-04-12 08:31: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-04-12 08:31:18] Production.INFO: count ==147 [2025-04-12 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:31:05 - End Time 2025-04-12 08:31:05 [2025-04-12 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890352', 'tblTempUsageDetail_20' ) start [2025-04-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890352', 'tblTempUsageDetail_20' ) end [2025-04-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890352', 'tblTempVendorCDR_20' ) start [2025-04-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890352', 'tblTempVendorCDR_20' ) end [2025-04-12 08:31:18] Production.INFO: ProcessCDR(1,14890352,1,1,2) [2025-04-12 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890352', 'tblTempUsageDetail_20' ) start [2025-04-12 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890352', 'tblTempUsageDetail_20' ) end [2025-04-12 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:31:21] Production.INFO: ==7720== Releasing lock... [2025-04-12 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:32:05 [end_date_ymd] => 2025-04-12 08:32:05 [RateCDR] => 1 ) [2025-04-12 08:32: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-04-12 05:32:05' and `end` < '2025-04-12 08:32: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-04-12 08:32:18] Production.INFO: count ==147 [2025-04-12 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:32:05 - End Time 2025-04-12 08:32:05 [2025-04-12 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890357', 'tblTempUsageDetail_20' ) start [2025-04-12 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890357', 'tblTempUsageDetail_20' ) end [2025-04-12 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890357', 'tblTempVendorCDR_20' ) start [2025-04-12 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890357', 'tblTempVendorCDR_20' ) end [2025-04-12 08:32:18] Production.INFO: ProcessCDR(1,14890357,1,1,2) [2025-04-12 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890357', 'tblTempUsageDetail_20' ) start [2025-04-12 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890357', 'tblTempUsageDetail_20' ) end [2025-04-12 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:32:21] Production.INFO: ==7788== Releasing lock... [2025-04-12 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:33:05 [end_date_ymd] => 2025-04-12 08:33:05 [RateCDR] => 1 ) [2025-04-12 08:33: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-04-12 05:33:05' and `end` < '2025-04-12 08:33: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-04-12 08:33:18] Production.INFO: count ==147 [2025-04-12 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:33:05 - End Time 2025-04-12 08:33:05 [2025-04-12 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890362', 'tblTempUsageDetail_20' ) start [2025-04-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890362', 'tblTempUsageDetail_20' ) end [2025-04-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890362', 'tblTempVendorCDR_20' ) start [2025-04-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890362', 'tblTempVendorCDR_20' ) end [2025-04-12 08:33:18] Production.INFO: ProcessCDR(1,14890362,1,1,2) [2025-04-12 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890362', 'tblTempUsageDetail_20' ) start [2025-04-12 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890362', 'tblTempUsageDetail_20' ) end [2025-04-12 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:33:22] Production.INFO: ==7862== Releasing lock... [2025-04-12 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:34:05 [end_date_ymd] => 2025-04-12 08:34:05 [RateCDR] => 1 ) [2025-04-12 08:34: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-04-12 05:34:05' and `end` < '2025-04-12 08:34: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-04-12 08:34:18] Production.INFO: count ==157 [2025-04-12 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:34:05 - End Time 2025-04-12 08:34:05 [2025-04-12 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890367', 'tblTempUsageDetail_20' ) start [2025-04-12 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890367', 'tblTempUsageDetail_20' ) end [2025-04-12 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890367', 'tblTempVendorCDR_20' ) start [2025-04-12 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890367', 'tblTempVendorCDR_20' ) end [2025-04-12 08:34:18] Production.INFO: ProcessCDR(1,14890367,1,1,2) [2025-04-12 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890367', 'tblTempUsageDetail_20' ) start [2025-04-12 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890367', 'tblTempUsageDetail_20' ) end [2025-04-12 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:34:21] Production.INFO: ==7939== Releasing lock... [2025-04-12 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:35:05 [end_date_ymd] => 2025-04-12 08:35:05 [RateCDR] => 1 ) [2025-04-12 08:35: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-04-12 05:35:05' and `end` < '2025-04-12 08:35: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-04-12 08:35:18] Production.INFO: count ==157 [2025-04-12 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:35:05 - End Time 2025-04-12 08:35:05 [2025-04-12 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890372', 'tblTempUsageDetail_20' ) start [2025-04-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890372', 'tblTempUsageDetail_20' ) end [2025-04-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890372', 'tblTempVendorCDR_20' ) start [2025-04-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890372', 'tblTempVendorCDR_20' ) end [2025-04-12 08:35:18] Production.INFO: ProcessCDR(1,14890372,1,1,2) [2025-04-12 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890372', 'tblTempUsageDetail_20' ) start [2025-04-12 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890372', 'tblTempUsageDetail_20' ) end [2025-04-12 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:35:21] Production.INFO: ==8009== Releasing lock... [2025-04-12 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:36:05 [end_date_ymd] => 2025-04-12 08:36:05 [RateCDR] => 1 ) [2025-04-12 08:36: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-04-12 05:36:05' and `end` < '2025-04-12 08:36: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-04-12 08:36:17] Production.INFO: count ==158 [2025-04-12 08:36:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:36:05 - End Time 2025-04-12 08:36:05 [2025-04-12 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890377', 'tblTempUsageDetail_20' ) start [2025-04-12 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890377', 'tblTempUsageDetail_20' ) end [2025-04-12 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890377', 'tblTempVendorCDR_20' ) start [2025-04-12 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890377', 'tblTempVendorCDR_20' ) end [2025-04-12 08:36:17] Production.INFO: ProcessCDR(1,14890377,1,1,2) [2025-04-12 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890377', 'tblTempUsageDetail_20' ) start [2025-04-12 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890377', 'tblTempUsageDetail_20' ) end [2025-04-12 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:36:21] Production.INFO: ==8084== Releasing lock... [2025-04-12 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:37:05 [end_date_ymd] => 2025-04-12 08:37:05 [RateCDR] => 1 ) [2025-04-12 08:37: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-04-12 05:37:05' and `end` < '2025-04-12 08:37: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-04-12 08:37:18] Production.INFO: count ==160 [2025-04-12 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:37:05 - End Time 2025-04-12 08:37:05 [2025-04-12 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890382', 'tblTempUsageDetail_20' ) start [2025-04-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890382', 'tblTempUsageDetail_20' ) end [2025-04-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890382', 'tblTempVendorCDR_20' ) start [2025-04-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890382', 'tblTempVendorCDR_20' ) end [2025-04-12 08:37:18] Production.INFO: ProcessCDR(1,14890382,1,1,2) [2025-04-12 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890382', 'tblTempUsageDetail_20' ) start [2025-04-12 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890382', 'tblTempUsageDetail_20' ) end [2025-04-12 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:37:22] Production.INFO: ==8158== Releasing lock... [2025-04-12 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:38:05 [end_date_ymd] => 2025-04-12 08:38:05 [RateCDR] => 1 ) [2025-04-12 08:38: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-04-12 05:38:05' and `end` < '2025-04-12 08:38: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-04-12 08:38:18] Production.INFO: count ==159 [2025-04-12 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:38:05 - End Time 2025-04-12 08:38:05 [2025-04-12 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890387', 'tblTempUsageDetail_20' ) start [2025-04-12 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890387', 'tblTempUsageDetail_20' ) end [2025-04-12 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890387', 'tblTempVendorCDR_20' ) start [2025-04-12 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890387', 'tblTempVendorCDR_20' ) end [2025-04-12 08:38:18] Production.INFO: ProcessCDR(1,14890387,1,1,2) [2025-04-12 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890387', 'tblTempUsageDetail_20' ) start [2025-04-12 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890387', 'tblTempUsageDetail_20' ) end [2025-04-12 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:38:22] Production.INFO: ==8269== Releasing lock... [2025-04-12 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:39:05 [end_date_ymd] => 2025-04-12 08:39:05 [RateCDR] => 1 ) [2025-04-12 08:39: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-04-12 05:39:05' and `end` < '2025-04-12 08:39: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-04-12 08:39:18] Production.INFO: count ==160 [2025-04-12 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:39:05 - End Time 2025-04-12 08:39:05 [2025-04-12 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890392', 'tblTempUsageDetail_20' ) start [2025-04-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890392', 'tblTempUsageDetail_20' ) end [2025-04-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890392', 'tblTempVendorCDR_20' ) start [2025-04-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890392', 'tblTempVendorCDR_20' ) end [2025-04-12 08:39:18] Production.INFO: ProcessCDR(1,14890392,1,1,2) [2025-04-12 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890392', 'tblTempUsageDetail_20' ) start [2025-04-12 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890392', 'tblTempUsageDetail_20' ) end [2025-04-12 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:39:23] Production.INFO: ==8339== Releasing lock... [2025-04-12 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:40:06 [end_date_ymd] => 2025-04-12 08:40:06 [RateCDR] => 1 ) [2025-04-12 08:40: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-04-12 05:40:06' and `end` < '2025-04-12 08:40: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-04-12 08:40:19] Production.INFO: count ==168 [2025-04-12 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:40:06 - End Time 2025-04-12 08:40:06 [2025-04-12 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890398', 'tblTempUsageDetail_20' ) start [2025-04-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890398', 'tblTempUsageDetail_20' ) end [2025-04-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890398', 'tblTempVendorCDR_20' ) start [2025-04-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890398', 'tblTempVendorCDR_20' ) end [2025-04-12 08:40:19] Production.INFO: ProcessCDR(1,14890398,1,1,2) [2025-04-12 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890398', 'tblTempUsageDetail_20' ) start [2025-04-12 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890398', 'tblTempUsageDetail_20' ) end [2025-04-12 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:40:23] Production.INFO: ==8418== Releasing lock... [2025-04-12 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:41:05 [end_date_ymd] => 2025-04-12 08:41:05 [RateCDR] => 1 ) [2025-04-12 08:41: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-04-12 05:41:05' and `end` < '2025-04-12 08:41: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-04-12 08:41:18] Production.INFO: count ==176 [2025-04-12 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:41:05 - End Time 2025-04-12 08:41:05 [2025-04-12 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890403', 'tblTempUsageDetail_20' ) start [2025-04-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890403', 'tblTempUsageDetail_20' ) end [2025-04-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890403', 'tblTempVendorCDR_20' ) start [2025-04-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890403', 'tblTempVendorCDR_20' ) end [2025-04-12 08:41:18] Production.INFO: ProcessCDR(1,14890403,1,1,2) [2025-04-12 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890403', 'tblTempUsageDetail_20' ) start [2025-04-12 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890403', 'tblTempUsageDetail_20' ) end [2025-04-12 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:41:21] Production.INFO: ==8494== Releasing lock... [2025-04-12 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:42:05 [end_date_ymd] => 2025-04-12 08:42:05 [RateCDR] => 1 ) [2025-04-12 08:42: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-04-12 05:42:05' and `end` < '2025-04-12 08:42: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-04-12 08:42:18] Production.INFO: count ==176 [2025-04-12 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:42:05 - End Time 2025-04-12 08:42:05 [2025-04-12 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890408', 'tblTempUsageDetail_20' ) start [2025-04-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890408', 'tblTempUsageDetail_20' ) end [2025-04-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890408', 'tblTempVendorCDR_20' ) start [2025-04-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890408', 'tblTempVendorCDR_20' ) end [2025-04-12 08:42:18] Production.INFO: ProcessCDR(1,14890408,1,1,2) [2025-04-12 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890408', 'tblTempUsageDetail_20' ) start [2025-04-12 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890408', 'tblTempUsageDetail_20' ) end [2025-04-12 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:42:21] Production.INFO: ==8567== Releasing lock... [2025-04-12 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:43:04 [end_date_ymd] => 2025-04-12 08:43:04 [RateCDR] => 1 ) [2025-04-12 08:43: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-04-12 05:43:04' and `end` < '2025-04-12 08:43: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-04-12 08:43:17] Production.INFO: count ==176 [2025-04-12 08:43:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:43:04 - End Time 2025-04-12 08:43:04 [2025-04-12 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890413', 'tblTempUsageDetail_20' ) start [2025-04-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890413', 'tblTempUsageDetail_20' ) end [2025-04-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890413', 'tblTempVendorCDR_20' ) start [2025-04-12 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890413', 'tblTempVendorCDR_20' ) end [2025-04-12 08:43:17] Production.INFO: ProcessCDR(1,14890413,1,1,2) [2025-04-12 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890413', 'tblTempUsageDetail_20' ) start [2025-04-12 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890413', 'tblTempUsageDetail_20' ) end [2025-04-12 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:43:21] Production.INFO: ==8639== Releasing lock... [2025-04-12 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:44:05 [end_date_ymd] => 2025-04-12 08:44:05 [RateCDR] => 1 ) [2025-04-12 08:44: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-04-12 05:44:05' and `end` < '2025-04-12 08:44: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-04-12 08:44:18] Production.INFO: count ==178 [2025-04-12 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:44:05 - End Time 2025-04-12 08:44:05 [2025-04-12 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890418', 'tblTempUsageDetail_20' ) start [2025-04-12 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890418', 'tblTempUsageDetail_20' ) end [2025-04-12 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890418', 'tblTempVendorCDR_20' ) start [2025-04-12 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890418', 'tblTempVendorCDR_20' ) end [2025-04-12 08:44:18] Production.INFO: ProcessCDR(1,14890418,1,1,2) [2025-04-12 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890418', 'tblTempUsageDetail_20' ) start [2025-04-12 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890418', 'tblTempUsageDetail_20' ) end [2025-04-12 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:44:21] Production.INFO: ==8714== Releasing lock... [2025-04-12 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:45:05 [end_date_ymd] => 2025-04-12 08:45:05 [RateCDR] => 1 ) [2025-04-12 08:45: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-04-12 05:45:05' and `end` < '2025-04-12 08:45: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-04-12 08:45:17] Production.INFO: count ==179 [2025-04-12 08:45:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:45:05 - End Time 2025-04-12 08:45:05 [2025-04-12 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890423', 'tblTempUsageDetail_20' ) start [2025-04-12 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890423', 'tblTempUsageDetail_20' ) end [2025-04-12 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890423', 'tblTempVendorCDR_20' ) start [2025-04-12 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890423', 'tblTempVendorCDR_20' ) end [2025-04-12 08:45:17] Production.INFO: ProcessCDR(1,14890423,1,1,2) [2025-04-12 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890423', 'tblTempUsageDetail_20' ) start [2025-04-12 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890423', 'tblTempUsageDetail_20' ) end [2025-04-12 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:45:21] Production.INFO: ==8784== Releasing lock... [2025-04-12 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-12 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:46:06 [end_date_ymd] => 2025-04-12 08:46:06 [RateCDR] => 1 ) [2025-04-12 08:46: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-04-12 05:46:06' and `end` < '2025-04-12 08:46: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-04-12 08:46:18] Production.INFO: count ==184 [2025-04-12 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:46:06 - End Time 2025-04-12 08:46:06 [2025-04-12 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890428', 'tblTempUsageDetail_20' ) start [2025-04-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890428', 'tblTempUsageDetail_20' ) end [2025-04-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890428', 'tblTempVendorCDR_20' ) start [2025-04-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890428', 'tblTempVendorCDR_20' ) end [2025-04-12 08:46:18] Production.INFO: ProcessCDR(1,14890428,1,1,2) [2025-04-12 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890428', 'tblTempUsageDetail_20' ) start [2025-04-12 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890428', 'tblTempUsageDetail_20' ) end [2025-04-12 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:46:22] Production.INFO: ==8862== Releasing lock... [2025-04-12 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:47:05 [end_date_ymd] => 2025-04-12 08:47:05 [RateCDR] => 1 ) [2025-04-12 08:47: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-04-12 05:47:05' and `end` < '2025-04-12 08:47: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-04-12 08:47:18] Production.INFO: count ==186 [2025-04-12 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:47:05 - End Time 2025-04-12 08:47:05 [2025-04-12 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890433', 'tblTempUsageDetail_20' ) start [2025-04-12 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890433', 'tblTempUsageDetail_20' ) end [2025-04-12 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890433', 'tblTempVendorCDR_20' ) start [2025-04-12 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890433', 'tblTempVendorCDR_20' ) end [2025-04-12 08:47:18] Production.INFO: ProcessCDR(1,14890433,1,1,2) [2025-04-12 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890433', 'tblTempUsageDetail_20' ) start [2025-04-12 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890433', 'tblTempUsageDetail_20' ) end [2025-04-12 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:47:22] Production.INFO: ==8939== Releasing lock... [2025-04-12 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:48:05 [end_date_ymd] => 2025-04-12 08:48:05 [RateCDR] => 1 ) [2025-04-12 08:48: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-04-12 05:48:05' and `end` < '2025-04-12 08:48: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-04-12 08:48:18] Production.INFO: count ==186 [2025-04-12 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:48:05 - End Time 2025-04-12 08:48:05 [2025-04-12 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890438', 'tblTempUsageDetail_20' ) start [2025-04-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890438', 'tblTempUsageDetail_20' ) end [2025-04-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890438', 'tblTempVendorCDR_20' ) start [2025-04-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890438', 'tblTempVendorCDR_20' ) end [2025-04-12 08:48:18] Production.INFO: ProcessCDR(1,14890438,1,1,2) [2025-04-12 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890438', 'tblTempUsageDetail_20' ) start [2025-04-12 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890438', 'tblTempUsageDetail_20' ) end [2025-04-12 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:48:21] Production.INFO: ==9010== Releasing lock... [2025-04-12 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:49:06 [end_date_ymd] => 2025-04-12 08:49:06 [RateCDR] => 1 ) [2025-04-12 08:49: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-04-12 05:49:06' and `end` < '2025-04-12 08:49: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-04-12 08:49:19] Production.INFO: count ==184 [2025-04-12 08:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:49:06 - End Time 2025-04-12 08:49:06 [2025-04-12 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890443', 'tblTempUsageDetail_20' ) start [2025-04-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890443', 'tblTempUsageDetail_20' ) end [2025-04-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890443', 'tblTempVendorCDR_20' ) start [2025-04-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890443', 'tblTempVendorCDR_20' ) end [2025-04-12 08:49:19] Production.INFO: ProcessCDR(1,14890443,1,1,2) [2025-04-12 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890443', 'tblTempUsageDetail_20' ) start [2025-04-12 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890443', 'tblTempUsageDetail_20' ) end [2025-04-12 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:49:23] Production.INFO: ==9082== Releasing lock... [2025-04-12 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:49:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:50:06 [end_date_ymd] => 2025-04-12 08:50:06 [RateCDR] => 1 ) [2025-04-12 08:50: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-04-12 05:50:06' and `end` < '2025-04-12 08:50: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-04-12 08:50:19] Production.INFO: count ==194 [2025-04-12 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 05:50:06 - End Time 2025-04-12 08:50:06 [2025-04-12 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890449', 'tblTempUsageDetail_20' ) start [2025-04-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890449', 'tblTempUsageDetail_20' ) end [2025-04-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890449', 'tblTempVendorCDR_20' ) start [2025-04-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890449', 'tblTempVendorCDR_20' ) end [2025-04-12 08:50:19] Production.INFO: ProcessCDR(1,14890449,1,1,2) [2025-04-12 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890449', 'tblTempUsageDetail_20' ) start [2025-04-12 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890449', 'tblTempUsageDetail_20' ) end [2025-04-12 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:50:23] Production.INFO: ==9155== Releasing lock... [2025-04-12 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:51:04 [end_date_ymd] => 2025-04-12 08:51:04 [RateCDR] => 1 ) [2025-04-12 08:51: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-04-12 05:51:04' and `end` < '2025-04-12 08:51: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-04-12 08:51:17] Production.INFO: count ==200 [2025-04-12 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:51:04 - End Time 2025-04-12 08:51:04 [2025-04-12 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890454', 'tblTempUsageDetail_20' ) start [2025-04-12 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890454', 'tblTempUsageDetail_20' ) end [2025-04-12 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890454', 'tblTempVendorCDR_20' ) start [2025-04-12 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890454', 'tblTempVendorCDR_20' ) end [2025-04-12 08:51:17] Production.INFO: ProcessCDR(1,14890454,1,1,2) [2025-04-12 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890454', 'tblTempUsageDetail_20' ) start [2025-04-12 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890454', 'tblTempUsageDetail_20' ) end [2025-04-12 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:51:21] Production.INFO: ==9227== Releasing lock... [2025-04-12 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:52:06 [end_date_ymd] => 2025-04-12 08:52:06 [RateCDR] => 1 ) [2025-04-12 08:52: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-04-12 05:52:06' and `end` < '2025-04-12 08:52: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-04-12 08:52:18] Production.INFO: count ==204 [2025-04-12 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:52:06 - End Time 2025-04-12 08:52:06 [2025-04-12 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890459', 'tblTempUsageDetail_20' ) start [2025-04-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890459', 'tblTempUsageDetail_20' ) end [2025-04-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890459', 'tblTempVendorCDR_20' ) start [2025-04-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890459', 'tblTempVendorCDR_20' ) end [2025-04-12 08:52:18] Production.INFO: ProcessCDR(1,14890459,1,1,2) [2025-04-12 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890459', 'tblTempUsageDetail_20' ) start [2025-04-12 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890459', 'tblTempUsageDetail_20' ) end [2025-04-12 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:52:22] Production.INFO: ==9313== Releasing lock... [2025-04-12 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:53:05 [end_date_ymd] => 2025-04-12 08:53:05 [RateCDR] => 1 ) [2025-04-12 08:53: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-04-12 05:53:05' and `end` < '2025-04-12 08:53: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-04-12 08:53:18] Production.INFO: count ==204 [2025-04-12 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:53:05 - End Time 2025-04-12 08:53:05 [2025-04-12 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890464', 'tblTempUsageDetail_20' ) start [2025-04-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890464', 'tblTempUsageDetail_20' ) end [2025-04-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890464', 'tblTempVendorCDR_20' ) start [2025-04-12 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890464', 'tblTempVendorCDR_20' ) end [2025-04-12 08:53:18] Production.INFO: ProcessCDR(1,14890464,1,1,2) [2025-04-12 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890464', 'tblTempUsageDetail_20' ) start [2025-04-12 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890464', 'tblTempUsageDetail_20' ) end [2025-04-12 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:53:21] Production.INFO: ==9386== Releasing lock... [2025-04-12 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:54:05 [end_date_ymd] => 2025-04-12 08:54:05 [RateCDR] => 1 ) [2025-04-12 08:54: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-04-12 05:54:05' and `end` < '2025-04-12 08:54: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-04-12 08:54:18] Production.INFO: count ==209 [2025-04-12 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:54:05 - End Time 2025-04-12 08:54:05 [2025-04-12 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890469', 'tblTempUsageDetail_20' ) start [2025-04-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890469', 'tblTempUsageDetail_20' ) end [2025-04-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890469', 'tblTempVendorCDR_20' ) start [2025-04-12 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890469', 'tblTempVendorCDR_20' ) end [2025-04-12 08:54:18] Production.INFO: ProcessCDR(1,14890469,1,1,2) [2025-04-12 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890469', 'tblTempUsageDetail_20' ) start [2025-04-12 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890469', 'tblTempUsageDetail_20' ) end [2025-04-12 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:54:22] Production.INFO: ==9496== Releasing lock... [2025-04-12 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:54:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:55:05 [end_date_ymd] => 2025-04-12 08:55:05 [RateCDR] => 1 ) [2025-04-12 08:55: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-04-12 05:55:05' and `end` < '2025-04-12 08:55: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-04-12 08:55:18] Production.INFO: count ==214 [2025-04-12 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:55:05 - End Time 2025-04-12 08:55:05 [2025-04-12 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890474', 'tblTempUsageDetail_20' ) start [2025-04-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890474', 'tblTempUsageDetail_20' ) end [2025-04-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890474', 'tblTempVendorCDR_20' ) start [2025-04-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890474', 'tblTempVendorCDR_20' ) end [2025-04-12 08:55:18] Production.INFO: ProcessCDR(1,14890474,1,1,2) [2025-04-12 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890474', 'tblTempUsageDetail_20' ) start [2025-04-12 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890474', 'tblTempUsageDetail_20' ) end [2025-04-12 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:55:22] Production.INFO: ==9566== Releasing lock... [2025-04-12 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:56:05 [end_date_ymd] => 2025-04-12 08:56:05 [RateCDR] => 1 ) [2025-04-12 08:56: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-04-12 05:56:05' and `end` < '2025-04-12 08:56: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-04-12 08:56:18] Production.INFO: count ==214 [2025-04-12 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:56:05 - End Time 2025-04-12 08:56:05 [2025-04-12 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890479', 'tblTempUsageDetail_20' ) start [2025-04-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890479', 'tblTempUsageDetail_20' ) end [2025-04-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890479', 'tblTempVendorCDR_20' ) start [2025-04-12 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890479', 'tblTempVendorCDR_20' ) end [2025-04-12 08:56:18] Production.INFO: ProcessCDR(1,14890479,1,1,2) [2025-04-12 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890479', 'tblTempUsageDetail_20' ) start [2025-04-12 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890479', 'tblTempUsageDetail_20' ) end [2025-04-12 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:56:21] Production.INFO: ==9641== Releasing lock... [2025-04-12 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:57:05 [end_date_ymd] => 2025-04-12 08:57:05 [RateCDR] => 1 ) [2025-04-12 08:57: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-04-12 05:57:05' and `end` < '2025-04-12 08:57: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-04-12 08:57:17] Production.INFO: count ==215 [2025-04-12 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-12 05:57:05 - End Time 2025-04-12 08:57:05 [2025-04-12 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890484', 'tblTempUsageDetail_20' ) start [2025-04-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890484', 'tblTempUsageDetail_20' ) end [2025-04-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890484', 'tblTempVendorCDR_20' ) start [2025-04-12 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890484', 'tblTempVendorCDR_20' ) end [2025-04-12 08:57:17] Production.INFO: ProcessCDR(1,14890484,1,1,2) [2025-04-12 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890484', 'tblTempUsageDetail_20' ) start [2025-04-12 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890484', 'tblTempUsageDetail_20' ) end [2025-04-12 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:57:21] Production.INFO: ==9719== Releasing lock... [2025-04-12 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:57:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:58:05 [end_date_ymd] => 2025-04-12 08:58:05 [RateCDR] => 1 ) [2025-04-12 08:58: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-04-12 05:58:05' and `end` < '2025-04-12 08:58: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-04-12 08:58:18] Production.INFO: count ==213 [2025-04-12 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:58:05 - End Time 2025-04-12 08:58:05 [2025-04-12 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890489', 'tblTempUsageDetail_20' ) start [2025-04-12 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890489', 'tblTempUsageDetail_20' ) end [2025-04-12 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890489', 'tblTempVendorCDR_20' ) start [2025-04-12 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890489', 'tblTempVendorCDR_20' ) end [2025-04-12 08:58:18] Production.INFO: ProcessCDR(1,14890489,1,1,2) [2025-04-12 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890489', 'tblTempUsageDetail_20' ) start [2025-04-12 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890489', 'tblTempUsageDetail_20' ) end [2025-04-12 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:58:21] Production.INFO: ==9803== Releasing lock... [2025-04-12 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 05:59:05 [end_date_ymd] => 2025-04-12 08:59:05 [RateCDR] => 1 ) [2025-04-12 08:59: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-04-12 05:59:05' and `end` < '2025-04-12 08:59: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-04-12 08:59:18] Production.INFO: count ==214 [2025-04-12 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 05:59:05 - End Time 2025-04-12 08:59:05 [2025-04-12 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890494', 'tblTempUsageDetail_20' ) start [2025-04-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890494', 'tblTempUsageDetail_20' ) end [2025-04-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890494', 'tblTempVendorCDR_20' ) start [2025-04-12 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890494', 'tblTempVendorCDR_20' ) end [2025-04-12 08:59:18] Production.INFO: ProcessCDR(1,14890494,1,1,2) [2025-04-12 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890494', 'tblTempUsageDetail_20' ) start [2025-04-12 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890494', 'tblTempUsageDetail_20' ) end [2025-04-12 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 08:59:23] Production.INFO: ==9876== Releasing lock... [2025-04-12 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 08:59:23] Production.INFO: 30 MB #Memory Used# [2025-04-12 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:00:06 [end_date_ymd] => 2025-04-12 09:00:06 [RateCDR] => 1 ) [2025-04-12 09:00: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-04-12 06:00:06' and `end` < '2025-04-12 09:00: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-04-12 09:00:19] Production.INFO: count ==224 [2025-04-12 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:00:06 - End Time 2025-04-12 09:00:06 [2025-04-12 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890500', 'tblTempUsageDetail_20' ) start [2025-04-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890500', 'tblTempUsageDetail_20' ) end [2025-04-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890500', 'tblTempVendorCDR_20' ) start [2025-04-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890500', 'tblTempVendorCDR_20' ) end [2025-04-12 09:00:19] Production.INFO: ProcessCDR(1,14890500,1,1,2) [2025-04-12 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890500', 'tblTempUsageDetail_20' ) start [2025-04-12 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890500', 'tblTempUsageDetail_20' ) end [2025-04-12 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:00:22] Production.INFO: ==9948== Releasing lock... [2025-04-12 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:01:05 [end_date_ymd] => 2025-04-12 09:01:05 [RateCDR] => 1 ) [2025-04-12 09:01: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-04-12 06:01:05' and `end` < '2025-04-12 09:01: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-04-12 09:01:18] Production.INFO: count ==236 [2025-04-12 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:01:05 - End Time 2025-04-12 09:01:05 [2025-04-12 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890505', 'tblTempUsageDetail_20' ) start [2025-04-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890505', 'tblTempUsageDetail_20' ) end [2025-04-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890505', 'tblTempVendorCDR_20' ) start [2025-04-12 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890505', 'tblTempVendorCDR_20' ) end [2025-04-12 09:01:18] Production.INFO: ProcessCDR(1,14890505,1,1,2) [2025-04-12 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890505', 'tblTempUsageDetail_20' ) start [2025-04-12 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890505', 'tblTempUsageDetail_20' ) end [2025-04-12 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:01:23] Production.INFO: ==10034== Releasing lock... [2025-04-12 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:02:05 [end_date_ymd] => 2025-04-12 09:02:05 [RateCDR] => 1 ) [2025-04-12 09:02: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-04-12 06:02:05' and `end` < '2025-04-12 09:02: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-04-12 09:02:18] Production.INFO: count ==237 [2025-04-12 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:02:05 - End Time 2025-04-12 09:02:05 [2025-04-12 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890510', 'tblTempUsageDetail_20' ) start [2025-04-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890510', 'tblTempUsageDetail_20' ) end [2025-04-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890510', 'tblTempVendorCDR_20' ) start [2025-04-12 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890510', 'tblTempVendorCDR_20' ) end [2025-04-12 09:02:18] Production.INFO: ProcessCDR(1,14890510,1,1,2) [2025-04-12 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890510', 'tblTempUsageDetail_20' ) start [2025-04-12 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890510', 'tblTempUsageDetail_20' ) end [2025-04-12 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:02:21] Production.INFO: ==10104== Releasing lock... [2025-04-12 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:02:21] Production.INFO: 30 MB #Memory Used# [2025-04-12 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:03:05 [end_date_ymd] => 2025-04-12 09:03:05 [RateCDR] => 1 ) [2025-04-12 09:03: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-04-12 06:03:05' and `end` < '2025-04-12 09:03: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-04-12 09:03:18] Production.INFO: count ==236 [2025-04-12 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:03:05 - End Time 2025-04-12 09:03:05 [2025-04-12 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890515', 'tblTempUsageDetail_20' ) start [2025-04-12 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890515', 'tblTempUsageDetail_20' ) end [2025-04-12 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890515', 'tblTempVendorCDR_20' ) start [2025-04-12 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890515', 'tblTempVendorCDR_20' ) end [2025-04-12 09:03:18] Production.INFO: ProcessCDR(1,14890515,1,1,2) [2025-04-12 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890515', 'tblTempUsageDetail_20' ) start [2025-04-12 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890515', 'tblTempUsageDetail_20' ) end [2025-04-12 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:03:21] Production.INFO: ==10182== Releasing lock... [2025-04-12 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-12 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:04:05 [end_date_ymd] => 2025-04-12 09:04:05 [RateCDR] => 1 ) [2025-04-12 09:04: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-04-12 06:04:05' and `end` < '2025-04-12 09:04: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-04-12 09:04:18] Production.INFO: count ==235 [2025-04-12 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:04:05 - End Time 2025-04-12 09:04:05 [2025-04-12 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890520', 'tblTempUsageDetail_20' ) start [2025-04-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890520', 'tblTempUsageDetail_20' ) end [2025-04-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890520', 'tblTempVendorCDR_20' ) start [2025-04-12 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890520', 'tblTempVendorCDR_20' ) end [2025-04-12 09:04:18] Production.INFO: ProcessCDR(1,14890520,1,1,2) [2025-04-12 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890520', 'tblTempUsageDetail_20' ) start [2025-04-12 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890520', 'tblTempUsageDetail_20' ) end [2025-04-12 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:04:21] Production.INFO: ==10259== Releasing lock... [2025-04-12 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:05:06 [end_date_ymd] => 2025-04-12 09:05:06 [RateCDR] => 1 ) [2025-04-12 09:05: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-04-12 06:05:06' and `end` < '2025-04-12 09:05: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-04-12 09:05:19] Production.INFO: count ==234 [2025-04-12 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:05:06 - End Time 2025-04-12 09:05:06 [2025-04-12 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890525', 'tblTempUsageDetail_20' ) start [2025-04-12 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890525', 'tblTempUsageDetail_20' ) end [2025-04-12 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890525', 'tblTempVendorCDR_20' ) start [2025-04-12 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890525', 'tblTempVendorCDR_20' ) end [2025-04-12 09:05:19] Production.INFO: ProcessCDR(1,14890525,1,1,2) [2025-04-12 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890525', 'tblTempUsageDetail_20' ) start [2025-04-12 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890525', 'tblTempUsageDetail_20' ) end [2025-04-12 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:05:22] Production.INFO: ==10331== Releasing lock... [2025-04-12 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:06:05 [end_date_ymd] => 2025-04-12 09:06:05 [RateCDR] => 1 ) [2025-04-12 09:06: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-04-12 06:06:05' and `end` < '2025-04-12 09:06: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-04-12 09:06:18] Production.INFO: count ==241 [2025-04-12 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:06:05 - End Time 2025-04-12 09:06:05 [2025-04-12 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890530', 'tblTempUsageDetail_20' ) start [2025-04-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890530', 'tblTempUsageDetail_20' ) end [2025-04-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890530', 'tblTempVendorCDR_20' ) start [2025-04-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890530', 'tblTempVendorCDR_20' ) end [2025-04-12 09:06:18] Production.INFO: ProcessCDR(1,14890530,1,1,2) [2025-04-12 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890530', 'tblTempUsageDetail_20' ) start [2025-04-12 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890530', 'tblTempUsageDetail_20' ) end [2025-04-12 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:06:21] Production.INFO: ==10402== Releasing lock... [2025-04-12 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-12 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:07:05 [end_date_ymd] => 2025-04-12 09:07:05 [RateCDR] => 1 ) [2025-04-12 09:07: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-04-12 06:07:05' and `end` < '2025-04-12 09:07: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-04-12 09:07:18] Production.INFO: count ==245 [2025-04-12 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:07:05 - End Time 2025-04-12 09:07:05 [2025-04-12 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890535', 'tblTempUsageDetail_20' ) start [2025-04-12 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890535', 'tblTempUsageDetail_20' ) end [2025-04-12 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890535', 'tblTempVendorCDR_20' ) start [2025-04-12 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890535', 'tblTempVendorCDR_20' ) end [2025-04-12 09:07:18] Production.INFO: ProcessCDR(1,14890535,1,1,2) [2025-04-12 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890535', 'tblTempUsageDetail_20' ) start [2025-04-12 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890535', 'tblTempUsageDetail_20' ) end [2025-04-12 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:07:22] Production.INFO: ==10475== Releasing lock... [2025-04-12 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:07:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:08:05 [end_date_ymd] => 2025-04-12 09:08:05 [RateCDR] => 1 ) [2025-04-12 09:08: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-04-12 06:08:05' and `end` < '2025-04-12 09:08: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-04-12 09:08:18] Production.INFO: count ==250 [2025-04-12 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:08:05 - End Time 2025-04-12 09:08:05 [2025-04-12 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890540', 'tblTempUsageDetail_20' ) start [2025-04-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890540', 'tblTempUsageDetail_20' ) end [2025-04-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890540', 'tblTempVendorCDR_20' ) start [2025-04-12 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890540', 'tblTempVendorCDR_20' ) end [2025-04-12 09:08:18] Production.INFO: ProcessCDR(1,14890540,1,1,2) [2025-04-12 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890540', 'tblTempUsageDetail_20' ) start [2025-04-12 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890540', 'tblTempUsageDetail_20' ) end [2025-04-12 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:08:22] Production.INFO: ==10552== Releasing lock... [2025-04-12 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:08:22] Production.INFO: 30 MB #Memory Used# [2025-04-12 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:09:06 [end_date_ymd] => 2025-04-12 09:09:06 [RateCDR] => 1 ) [2025-04-12 09:09: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-04-12 06:09:06' and `end` < '2025-04-12 09:09: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-04-12 09:09:19] Production.INFO: count ==249 [2025-04-12 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:09:06 - End Time 2025-04-12 09:09:06 [2025-04-12 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890545', 'tblTempUsageDetail_20' ) start [2025-04-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890545', 'tblTempUsageDetail_20' ) end [2025-04-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890545', 'tblTempVendorCDR_20' ) start [2025-04-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890545', 'tblTempVendorCDR_20' ) end [2025-04-12 09:09:19] Production.INFO: ProcessCDR(1,14890545,1,1,2) [2025-04-12 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890545', 'tblTempUsageDetail_20' ) start [2025-04-12 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890545', 'tblTempUsageDetail_20' ) end [2025-04-12 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:09:22] Production.INFO: ==10666== Releasing lock... [2025-04-12 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:10:06 [end_date_ymd] => 2025-04-12 09:10:06 [RateCDR] => 1 ) [2025-04-12 09:10: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-04-12 06:10:06' and `end` < '2025-04-12 09:10: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-04-12 09:10:19] Production.INFO: count ==270 [2025-04-12 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:10:06 - End Time 2025-04-12 09:10:06 [2025-04-12 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890551', 'tblTempUsageDetail_20' ) start [2025-04-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890551', 'tblTempUsageDetail_20' ) end [2025-04-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890551', 'tblTempVendorCDR_20' ) start [2025-04-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890551', 'tblTempVendorCDR_20' ) end [2025-04-12 09:10:19] Production.INFO: ProcessCDR(1,14890551,1,1,2) [2025-04-12 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890551', 'tblTempUsageDetail_20' ) start [2025-04-12 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890551', 'tblTempUsageDetail_20' ) end [2025-04-12 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:10:24] Production.INFO: ==10740== Releasing lock... [2025-04-12 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:10:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:11:05 [end_date_ymd] => 2025-04-12 09:11:05 [RateCDR] => 1 ) [2025-04-12 09:11: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-04-12 06:11:05' and `end` < '2025-04-12 09:11: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-04-12 09:11:18] Production.INFO: count ==282 [2025-04-12 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:11:05 - End Time 2025-04-12 09:11:05 [2025-04-12 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890556', 'tblTempUsageDetail_20' ) start [2025-04-12 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890556', 'tblTempUsageDetail_20' ) end [2025-04-12 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890556', 'tblTempVendorCDR_20' ) start [2025-04-12 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890556', 'tblTempVendorCDR_20' ) end [2025-04-12 09:11:18] Production.INFO: ProcessCDR(1,14890556,1,1,2) [2025-04-12 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890556', 'tblTempUsageDetail_20' ) start [2025-04-12 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890556', 'tblTempUsageDetail_20' ) end [2025-04-12 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:11:22] Production.INFO: ==10815== Releasing lock... [2025-04-12 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:12:05 [end_date_ymd] => 2025-04-12 09:12:05 [RateCDR] => 1 ) [2025-04-12 09:12: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-04-12 06:12:05' and `end` < '2025-04-12 09:12: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-04-12 09:12:17] Production.INFO: count ==282 [2025-04-12 09:12:17] Production.ERROR: pbx CDR StartTime 2025-04-12 06:12:05 - End Time 2025-04-12 09:12:05 [2025-04-12 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890561', 'tblTempUsageDetail_20' ) start [2025-04-12 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890561', 'tblTempUsageDetail_20' ) end [2025-04-12 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890561', 'tblTempVendorCDR_20' ) start [2025-04-12 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890561', 'tblTempVendorCDR_20' ) end [2025-04-12 09:12:17] Production.INFO: ProcessCDR(1,14890561,1,1,2) [2025-04-12 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890561', 'tblTempUsageDetail_20' ) start [2025-04-12 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890561', 'tblTempUsageDetail_20' ) end [2025-04-12 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:12:21] Production.INFO: ==10889== Releasing lock... [2025-04-12 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:13:05 [end_date_ymd] => 2025-04-12 09:13:05 [RateCDR] => 1 ) [2025-04-12 09:13: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-04-12 06:13:05' and `end` < '2025-04-12 09:13: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-04-12 09:13:18] Production.INFO: count ==290 [2025-04-12 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:13:05 - End Time 2025-04-12 09:13:05 [2025-04-12 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890566', 'tblTempUsageDetail_20' ) start [2025-04-12 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890566', 'tblTempUsageDetail_20' ) end [2025-04-12 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890566', 'tblTempVendorCDR_20' ) start [2025-04-12 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890566', 'tblTempVendorCDR_20' ) end [2025-04-12 09:13:18] Production.INFO: ProcessCDR(1,14890566,1,1,2) [2025-04-12 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890566', 'tblTempUsageDetail_20' ) start [2025-04-12 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890566', 'tblTempUsageDetail_20' ) end [2025-04-12 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:13:23] Production.INFO: ==10971== Releasing lock... [2025-04-12 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:14:05 [end_date_ymd] => 2025-04-12 09:14:05 [RateCDR] => 1 ) [2025-04-12 09:14: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-04-12 06:14:05' and `end` < '2025-04-12 09:14: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-04-12 09:14:17] Production.INFO: count ==295 [2025-04-12 09:14:17] Production.ERROR: pbx CDR StartTime 2025-04-12 06:14:05 - End Time 2025-04-12 09:14:05 [2025-04-12 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890571', 'tblTempUsageDetail_20' ) start [2025-04-12 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890571', 'tblTempUsageDetail_20' ) end [2025-04-12 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890571', 'tblTempVendorCDR_20' ) start [2025-04-12 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890571', 'tblTempVendorCDR_20' ) end [2025-04-12 09:14:17] Production.INFO: ProcessCDR(1,14890571,1,1,2) [2025-04-12 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890571', 'tblTempUsageDetail_20' ) start [2025-04-12 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890571', 'tblTempUsageDetail_20' ) end [2025-04-12 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:14:21] Production.INFO: ==11040== Releasing lock... [2025-04-12 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-12 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:15:05 [end_date_ymd] => 2025-04-12 09:15:05 [RateCDR] => 1 ) [2025-04-12 09:15: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-04-12 06:15:05' and `end` < '2025-04-12 09:15: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-04-12 09:15:18] Production.INFO: count ==305 [2025-04-12 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:15:05 - End Time 2025-04-12 09:15:05 [2025-04-12 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890576', 'tblTempUsageDetail_20' ) start [2025-04-12 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890576', 'tblTempUsageDetail_20' ) end [2025-04-12 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890576', 'tblTempVendorCDR_20' ) start [2025-04-12 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890576', 'tblTempVendorCDR_20' ) end [2025-04-12 09:15:18] Production.INFO: ProcessCDR(1,14890576,1,1,2) [2025-04-12 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890576', 'tblTempUsageDetail_20' ) start [2025-04-12 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890576', 'tblTempUsageDetail_20' ) end [2025-04-12 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:15:22] Production.INFO: ==11113== Releasing lock... [2025-04-12 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:16:05 [end_date_ymd] => 2025-04-12 09:16:05 [RateCDR] => 1 ) [2025-04-12 09:16: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-04-12 06:16:05' and `end` < '2025-04-12 09:16: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-04-12 09:16:18] Production.INFO: count ==305 [2025-04-12 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:16:05 - End Time 2025-04-12 09:16:05 [2025-04-12 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890581', 'tblTempUsageDetail_20' ) start [2025-04-12 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890581', 'tblTempUsageDetail_20' ) end [2025-04-12 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890581', 'tblTempVendorCDR_20' ) start [2025-04-12 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890581', 'tblTempVendorCDR_20' ) end [2025-04-12 09:16:18] Production.INFO: ProcessCDR(1,14890581,1,1,2) [2025-04-12 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890581', 'tblTempUsageDetail_20' ) start [2025-04-12 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890581', 'tblTempUsageDetail_20' ) end [2025-04-12 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:16:22] Production.INFO: ==11186== Releasing lock... [2025-04-12 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:17:05 [end_date_ymd] => 2025-04-12 09:17:05 [RateCDR] => 1 ) [2025-04-12 09:17: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-04-12 06:17:05' and `end` < '2025-04-12 09:17: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-04-12 09:17:18] Production.INFO: count ==309 [2025-04-12 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:17:05 - End Time 2025-04-12 09:17:05 [2025-04-12 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890586', 'tblTempUsageDetail_20' ) start [2025-04-12 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890586', 'tblTempUsageDetail_20' ) end [2025-04-12 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890586', 'tblTempVendorCDR_20' ) start [2025-04-12 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890586', 'tblTempVendorCDR_20' ) end [2025-04-12 09:17:18] Production.INFO: ProcessCDR(1,14890586,1,1,2) [2025-04-12 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890586', 'tblTempUsageDetail_20' ) start [2025-04-12 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890586', 'tblTempUsageDetail_20' ) end [2025-04-12 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:17:22] Production.INFO: ==11259== Releasing lock... [2025-04-12 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:18:06 [end_date_ymd] => 2025-04-12 09:18:06 [RateCDR] => 1 ) [2025-04-12 09:18: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-04-12 06:18:06' and `end` < '2025-04-12 09:18: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-04-12 09:18:18] Production.INFO: count ==309 [2025-04-12 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:18:06 - End Time 2025-04-12 09:18:06 [2025-04-12 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890591', 'tblTempUsageDetail_20' ) start [2025-04-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890591', 'tblTempUsageDetail_20' ) end [2025-04-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890591', 'tblTempVendorCDR_20' ) start [2025-04-12 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890591', 'tblTempVendorCDR_20' ) end [2025-04-12 09:18:18] Production.INFO: ProcessCDR(1,14890591,1,1,2) [2025-04-12 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890591', 'tblTempUsageDetail_20' ) start [2025-04-12 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890591', 'tblTempUsageDetail_20' ) end [2025-04-12 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:18:22] Production.INFO: ==11344== Releasing lock... [2025-04-12 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:19:05 [end_date_ymd] => 2025-04-12 09:19:05 [RateCDR] => 1 ) [2025-04-12 09:19: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-04-12 06:19:05' and `end` < '2025-04-12 09:19: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-04-12 09:19:18] Production.INFO: count ==309 [2025-04-12 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:19:05 - End Time 2025-04-12 09:19:05 [2025-04-12 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890596', 'tblTempUsageDetail_20' ) start [2025-04-12 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890596', 'tblTempUsageDetail_20' ) end [2025-04-12 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890596', 'tblTempVendorCDR_20' ) start [2025-04-12 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890596', 'tblTempVendorCDR_20' ) end [2025-04-12 09:19:18] Production.INFO: ProcessCDR(1,14890596,1,1,2) [2025-04-12 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890596', 'tblTempUsageDetail_20' ) start [2025-04-12 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890596', 'tblTempUsageDetail_20' ) end [2025-04-12 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:19:21] Production.INFO: ==11418== Releasing lock... [2025-04-12 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:20:06 [end_date_ymd] => 2025-04-12 09:20:06 [RateCDR] => 1 ) [2025-04-12 09:20: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-04-12 06:20:06' and `end` < '2025-04-12 09:20: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-04-12 09:20:19] Production.INFO: count ==318 [2025-04-12 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:20:06 - End Time 2025-04-12 09:20:06 [2025-04-12 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890602', 'tblTempUsageDetail_20' ) start [2025-04-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890602', 'tblTempUsageDetail_20' ) end [2025-04-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890602', 'tblTempVendorCDR_20' ) start [2025-04-12 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890602', 'tblTempVendorCDR_20' ) end [2025-04-12 09:20:19] Production.INFO: ProcessCDR(1,14890602,1,1,2) [2025-04-12 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890602', 'tblTempUsageDetail_20' ) start [2025-04-12 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890602', 'tblTempUsageDetail_20' ) end [2025-04-12 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:20:24] Production.INFO: ==11490== Releasing lock... [2025-04-12 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:20:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:21:05 [end_date_ymd] => 2025-04-12 09:21:05 [RateCDR] => 1 ) [2025-04-12 09:21: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-04-12 06:21:05' and `end` < '2025-04-12 09:21: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-04-12 09:21:17] Production.INFO: count ==319 [2025-04-12 09:21:17] Production.ERROR: pbx CDR StartTime 2025-04-12 06:21:05 - End Time 2025-04-12 09:21:05 [2025-04-12 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890607', 'tblTempUsageDetail_20' ) start [2025-04-12 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890607', 'tblTempUsageDetail_20' ) end [2025-04-12 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890607', 'tblTempVendorCDR_20' ) start [2025-04-12 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890607', 'tblTempVendorCDR_20' ) end [2025-04-12 09:21:17] Production.INFO: ProcessCDR(1,14890607,1,1,2) [2025-04-12 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890607', 'tblTempUsageDetail_20' ) start [2025-04-12 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890607', 'tblTempUsageDetail_20' ) end [2025-04-12 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:21:23] Production.INFO: ==11562== Releasing lock... [2025-04-12 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:21:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:22:05 [end_date_ymd] => 2025-04-12 09:22:05 [RateCDR] => 1 ) [2025-04-12 09:22: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-04-12 06:22:05' and `end` < '2025-04-12 09:22: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-04-12 09:22:18] Production.INFO: count ==324 [2025-04-12 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:22:05 - End Time 2025-04-12 09:22:05 [2025-04-12 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890612', 'tblTempUsageDetail_20' ) start [2025-04-12 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890612', 'tblTempUsageDetail_20' ) end [2025-04-12 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890612', 'tblTempVendorCDR_20' ) start [2025-04-12 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890612', 'tblTempVendorCDR_20' ) end [2025-04-12 09:22:18] Production.INFO: ProcessCDR(1,14890612,1,1,2) [2025-04-12 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890612', 'tblTempUsageDetail_20' ) start [2025-04-12 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890612', 'tblTempUsageDetail_20' ) end [2025-04-12 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:22:22] Production.INFO: ==11636== Releasing lock... [2025-04-12 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:22:22] Production.INFO: 31 MB #Memory Used# [2025-04-12 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:23:06 [end_date_ymd] => 2025-04-12 09:23:06 [RateCDR] => 1 ) [2025-04-12 09:23: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-04-12 06:23:06' and `end` < '2025-04-12 09:23: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-04-12 09:23:19] Production.INFO: count ==329 [2025-04-12 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:23:06 - End Time 2025-04-12 09:23:06 [2025-04-12 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890617', 'tblTempUsageDetail_20' ) start [2025-04-12 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890617', 'tblTempUsageDetail_20' ) end [2025-04-12 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890617', 'tblTempVendorCDR_20' ) start [2025-04-12 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890617', 'tblTempVendorCDR_20' ) end [2025-04-12 09:23:19] Production.INFO: ProcessCDR(1,14890617,1,1,2) [2025-04-12 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890617', 'tblTempUsageDetail_20' ) start [2025-04-12 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890617', 'tblTempUsageDetail_20' ) end [2025-04-12 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:23:24] Production.INFO: ==11707== Releasing lock... [2025-04-12 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:23:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:24:06 [end_date_ymd] => 2025-04-12 09:24:06 [RateCDR] => 1 ) [2025-04-12 09:24: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-04-12 06:24:06' and `end` < '2025-04-12 09:24: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-04-12 09:24:18] Production.INFO: count ==335 [2025-04-12 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:24:06 - End Time 2025-04-12 09:24:06 [2025-04-12 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890622', 'tblTempUsageDetail_20' ) start [2025-04-12 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890622', 'tblTempUsageDetail_20' ) end [2025-04-12 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890622', 'tblTempVendorCDR_20' ) start [2025-04-12 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890622', 'tblTempVendorCDR_20' ) end [2025-04-12 09:24:18] Production.INFO: ProcessCDR(1,14890622,1,1,2) [2025-04-12 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890622', 'tblTempUsageDetail_20' ) start [2025-04-12 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890622', 'tblTempUsageDetail_20' ) end [2025-04-12 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:24:24] Production.INFO: ==11784== Releasing lock... [2025-04-12 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:24:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:25:05 [end_date_ymd] => 2025-04-12 09:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 06:25:05' and `end` < '2025-04-12 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-04-12 09:25:18] Production.INFO: count ==335 [2025-04-12 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:25:05 - End Time 2025-04-12 09:25:05 [2025-04-12 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890627', 'tblTempUsageDetail_20' ) start [2025-04-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890627', 'tblTempUsageDetail_20' ) end [2025-04-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890627', 'tblTempVendorCDR_20' ) start [2025-04-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890627', 'tblTempVendorCDR_20' ) end [2025-04-12 09:25:18] Production.INFO: ProcessCDR(1,14890627,1,1,2) [2025-04-12 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890627', 'tblTempUsageDetail_20' ) start [2025-04-12 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890627', 'tblTempUsageDetail_20' ) end [2025-04-12 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:25:21] Production.INFO: ==11897== Releasing lock... [2025-04-12 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-12 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:26:06 [end_date_ymd] => 2025-04-12 09:26:06 [RateCDR] => 1 ) [2025-04-12 09:26: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-04-12 06:26:06' and `end` < '2025-04-12 09:26: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-04-12 09:26:19] Production.INFO: count ==338 [2025-04-12 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:26:06 - End Time 2025-04-12 09:26:06 [2025-04-12 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890632', 'tblTempUsageDetail_20' ) start [2025-04-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890632', 'tblTempUsageDetail_20' ) end [2025-04-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890632', 'tblTempVendorCDR_20' ) start [2025-04-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890632', 'tblTempVendorCDR_20' ) end [2025-04-12 09:26:19] Production.INFO: ProcessCDR(1,14890632,1,1,2) [2025-04-12 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890632', 'tblTempUsageDetail_20' ) start [2025-04-12 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890632', 'tblTempUsageDetail_20' ) end [2025-04-12 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:26:22] Production.INFO: ==11969== Releasing lock... [2025-04-12 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-12 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:27:06 [end_date_ymd] => 2025-04-12 09:27:06 [RateCDR] => 1 ) [2025-04-12 09:27: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-04-12 06:27:06' and `end` < '2025-04-12 09:27: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-04-12 09:27:19] Production.INFO: count ==346 [2025-04-12 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:27:06 - End Time 2025-04-12 09:27:06 [2025-04-12 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890637', 'tblTempUsageDetail_20' ) start [2025-04-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890637', 'tblTempUsageDetail_20' ) end [2025-04-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890637', 'tblTempVendorCDR_20' ) start [2025-04-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890637', 'tblTempVendorCDR_20' ) end [2025-04-12 09:27:19] Production.INFO: ProcessCDR(1,14890637,1,1,2) [2025-04-12 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890637', 'tblTempUsageDetail_20' ) start [2025-04-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890637', 'tblTempUsageDetail_20' ) end [2025-04-12 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:27:24] Production.INFO: ==12040== Releasing lock... [2025-04-12 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:27:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:28:06 [end_date_ymd] => 2025-04-12 09:28:06 [RateCDR] => 1 ) [2025-04-12 09:28: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-04-12 06:28:06' and `end` < '2025-04-12 09:28: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-04-12 09:28:19] Production.INFO: count ==346 [2025-04-12 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:28:06 - End Time 2025-04-12 09:28:06 [2025-04-12 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890642', 'tblTempUsageDetail_20' ) start [2025-04-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890642', 'tblTempUsageDetail_20' ) end [2025-04-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890642', 'tblTempVendorCDR_20' ) start [2025-04-12 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890642', 'tblTempVendorCDR_20' ) end [2025-04-12 09:28:19] Production.INFO: ProcessCDR(1,14890642,1,1,2) [2025-04-12 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890642', 'tblTempUsageDetail_20' ) start [2025-04-12 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890642', 'tblTempUsageDetail_20' ) end [2025-04-12 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:28:22] Production.INFO: ==12147== Releasing lock... [2025-04-12 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:29:06 [end_date_ymd] => 2025-04-12 09:29:06 [RateCDR] => 1 ) [2025-04-12 09:29: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-04-12 06:29:06' and `end` < '2025-04-12 09:29: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-04-12 09:29:18] Production.INFO: count ==355 [2025-04-12 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:29:06 - End Time 2025-04-12 09:29:06 [2025-04-12 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890647', 'tblTempUsageDetail_20' ) start [2025-04-12 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890647', 'tblTempUsageDetail_20' ) end [2025-04-12 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890647', 'tblTempVendorCDR_20' ) start [2025-04-12 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890647', 'tblTempVendorCDR_20' ) end [2025-04-12 09:29:19] Production.INFO: ProcessCDR(1,14890647,1,1,2) [2025-04-12 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890647', 'tblTempUsageDetail_20' ) start [2025-04-12 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890647', 'tblTempUsageDetail_20' ) end [2025-04-12 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:29:24] Production.INFO: ==12223== Releasing lock... [2025-04-12 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:29:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-12 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:30:06 [end_date_ymd] => 2025-04-12 09:30:06 [RateCDR] => 1 ) [2025-04-12 09:30: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-04-12 06:30:06' and `end` < '2025-04-12 09:30: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-04-12 09:30:18] Production.INFO: count ==364 [2025-04-12 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:30:06 - End Time 2025-04-12 09:30:06 [2025-04-12 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890652', 'tblTempUsageDetail_20' ) start [2025-04-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890652', 'tblTempUsageDetail_20' ) end [2025-04-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890652', 'tblTempVendorCDR_20' ) start [2025-04-12 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890652', 'tblTempVendorCDR_20' ) end [2025-04-12 09:30:19] Production.INFO: ProcessCDR(1,14890652,1,1,2) [2025-04-12 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890652', 'tblTempUsageDetail_20' ) start [2025-04-12 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890652', 'tblTempUsageDetail_20' ) end [2025-04-12 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:30:24] Production.INFO: ==12299== Releasing lock... [2025-04-12 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:30:24] Production.INFO: 31 MB #Memory Used# [2025-04-12 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:31:05 [end_date_ymd] => 2025-04-12 09:31:05 [RateCDR] => 1 ) [2025-04-12 09:31: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-04-12 06:31:05' and `end` < '2025-04-12 09:31: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-04-12 09:31:18] Production.INFO: count ==375 [2025-04-12 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:31:05 - End Time 2025-04-12 09:31:05 [2025-04-12 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890658', 'tblTempUsageDetail_20' ) start [2025-04-12 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890658', 'tblTempUsageDetail_20' ) end [2025-04-12 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890658', 'tblTempVendorCDR_20' ) start [2025-04-12 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890658', 'tblTempVendorCDR_20' ) end [2025-04-12 09:31:18] Production.INFO: ProcessCDR(1,14890658,1,1,2) [2025-04-12 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890658', 'tblTempUsageDetail_20' ) start [2025-04-12 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890658', 'tblTempUsageDetail_20' ) end [2025-04-12 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:31:22] Production.INFO: ==12372== Releasing lock... [2025-04-12 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:32:06 [end_date_ymd] => 2025-04-12 09:32:06 [RateCDR] => 1 ) [2025-04-12 09:32: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-04-12 06:32:06' and `end` < '2025-04-12 09:32: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-04-12 09:32:18] Production.INFO: count ==372 [2025-04-12 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:32:06 - End Time 2025-04-12 09:32:06 [2025-04-12 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890663', 'tblTempUsageDetail_20' ) start [2025-04-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890663', 'tblTempUsageDetail_20' ) end [2025-04-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890663', 'tblTempVendorCDR_20' ) start [2025-04-12 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890663', 'tblTempVendorCDR_20' ) end [2025-04-12 09:32:19] Production.INFO: ProcessCDR(1,14890663,1,1,2) [2025-04-12 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890663', 'tblTempUsageDetail_20' ) start [2025-04-12 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890663', 'tblTempUsageDetail_20' ) end [2025-04-12 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:32:23] Production.INFO: ==12441== Releasing lock... [2025-04-12 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:32:23] Production.INFO: 31 MB #Memory Used# [2025-04-12 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:33:05 [end_date_ymd] => 2025-04-12 09:33:05 [RateCDR] => 1 ) [2025-04-12 09:33: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-04-12 06:33:05' and `end` < '2025-04-12 09:33: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-04-12 09:33:18] Production.INFO: count ==371 [2025-04-12 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:33:05 - End Time 2025-04-12 09:33:05 [2025-04-12 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890668', 'tblTempUsageDetail_20' ) start [2025-04-12 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890668', 'tblTempUsageDetail_20' ) end [2025-04-12 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890668', 'tblTempVendorCDR_20' ) start [2025-04-12 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890668', 'tblTempVendorCDR_20' ) end [2025-04-12 09:33:18] Production.INFO: ProcessCDR(1,14890668,1,1,2) [2025-04-12 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890668', 'tblTempUsageDetail_20' ) start [2025-04-12 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890668', 'tblTempUsageDetail_20' ) end [2025-04-12 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:33:21] Production.INFO: ==12511== Releasing lock... [2025-04-12 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:34:05 [end_date_ymd] => 2025-04-12 09:34:05 [RateCDR] => 1 ) [2025-04-12 09:34: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-04-12 06:34:05' and `end` < '2025-04-12 09:34: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-04-12 09:34:18] Production.INFO: count ==376 [2025-04-12 09:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:34:05 - End Time 2025-04-12 09:34:05 [2025-04-12 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890673', 'tblTempUsageDetail_20' ) start [2025-04-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890673', 'tblTempUsageDetail_20' ) end [2025-04-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890673', 'tblTempVendorCDR_20' ) start [2025-04-12 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890673', 'tblTempVendorCDR_20' ) end [2025-04-12 09:34:18] Production.INFO: ProcessCDR(1,14890673,1,1,2) [2025-04-12 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890673', 'tblTempUsageDetail_20' ) start [2025-04-12 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890673', 'tblTempUsageDetail_20' ) end [2025-04-12 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:34:22] Production.INFO: ==12582== Releasing lock... [2025-04-12 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:35:05 [end_date_ymd] => 2025-04-12 09:35:05 [RateCDR] => 1 ) [2025-04-12 09:35: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-04-12 06:35:05' and `end` < '2025-04-12 09:35: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-04-12 09:35:18] Production.INFO: count ==380 [2025-04-12 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:35:05 - End Time 2025-04-12 09:35:05 [2025-04-12 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890678', 'tblTempUsageDetail_20' ) start [2025-04-12 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890678', 'tblTempUsageDetail_20' ) end [2025-04-12 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890678', 'tblTempVendorCDR_20' ) start [2025-04-12 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890678', 'tblTempVendorCDR_20' ) end [2025-04-12 09:35:18] Production.INFO: ProcessCDR(1,14890678,1,1,2) [2025-04-12 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890678', 'tblTempUsageDetail_20' ) start [2025-04-12 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890678', 'tblTempUsageDetail_20' ) end [2025-04-12 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:35:22] Production.INFO: ==12657== Releasing lock... [2025-04-12 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-12 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:36:05 [end_date_ymd] => 2025-04-12 09:36:05 [RateCDR] => 1 ) [2025-04-12 09:36: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-04-12 06:36:05' and `end` < '2025-04-12 09:36: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-04-12 09:36:18] Production.INFO: count ==381 [2025-04-12 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:36:05 - End Time 2025-04-12 09:36:05 [2025-04-12 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890683', 'tblTempUsageDetail_20' ) start [2025-04-12 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890683', 'tblTempUsageDetail_20' ) end [2025-04-12 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890683', 'tblTempVendorCDR_20' ) start [2025-04-12 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890683', 'tblTempVendorCDR_20' ) end [2025-04-12 09:36:18] Production.INFO: ProcessCDR(1,14890683,1,1,2) [2025-04-12 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890683', 'tblTempUsageDetail_20' ) start [2025-04-12 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890683', 'tblTempUsageDetail_20' ) end [2025-04-12 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:36:23] Production.INFO: ==12731== Releasing lock... [2025-04-12 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:37:05 [end_date_ymd] => 2025-04-12 09:37:05 [RateCDR] => 1 ) [2025-04-12 09:37: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-04-12 06:37:05' and `end` < '2025-04-12 09:37: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-04-12 09:37:18] Production.INFO: count ==395 [2025-04-12 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:37:05 - End Time 2025-04-12 09:37:05 [2025-04-12 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890688', 'tblTempUsageDetail_20' ) start [2025-04-12 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890688', 'tblTempUsageDetail_20' ) end [2025-04-12 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890688', 'tblTempVendorCDR_20' ) start [2025-04-12 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890688', 'tblTempVendorCDR_20' ) end [2025-04-12 09:37:18] Production.INFO: ProcessCDR(1,14890688,1,1,2) [2025-04-12 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890688', 'tblTempUsageDetail_20' ) start [2025-04-12 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890688', 'tblTempUsageDetail_20' ) end [2025-04-12 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:37:23] Production.INFO: ==12805== Releasing lock... [2025-04-12 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:37:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-12 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:38:05 [end_date_ymd] => 2025-04-12 09:38:05 [RateCDR] => 1 ) [2025-04-12 09:38: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-04-12 06:38:05' and `end` < '2025-04-12 09:38: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-04-12 09:38:18] Production.INFO: count ==397 [2025-04-12 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:38:05 - End Time 2025-04-12 09:38:05 [2025-04-12 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890693', 'tblTempUsageDetail_20' ) start [2025-04-12 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890693', 'tblTempUsageDetail_20' ) end [2025-04-12 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890693', 'tblTempVendorCDR_20' ) start [2025-04-12 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890693', 'tblTempVendorCDR_20' ) end [2025-04-12 09:38:18] Production.INFO: ProcessCDR(1,14890693,1,1,2) [2025-04-12 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890693', 'tblTempUsageDetail_20' ) start [2025-04-12 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890693', 'tblTempUsageDetail_20' ) end [2025-04-12 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:38:22] Production.INFO: ==12877== Releasing lock... [2025-04-12 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-12 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:39:05 [end_date_ymd] => 2025-04-12 09:39:05 [RateCDR] => 1 ) [2025-04-12 09:39: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-04-12 06:39:05' and `end` < '2025-04-12 09:39: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-04-12 09:39:18] Production.INFO: count ==401 [2025-04-12 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:39:05 - End Time 2025-04-12 09:39:05 [2025-04-12 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890698', 'tblTempUsageDetail_20' ) start [2025-04-12 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890698', 'tblTempUsageDetail_20' ) end [2025-04-12 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890698', 'tblTempVendorCDR_20' ) start [2025-04-12 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890698', 'tblTempVendorCDR_20' ) end [2025-04-12 09:39:18] Production.INFO: ProcessCDR(1,14890698,1,1,2) [2025-04-12 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890698', 'tblTempUsageDetail_20' ) start [2025-04-12 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890698', 'tblTempUsageDetail_20' ) end [2025-04-12 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:39:22] Production.INFO: ==12955== Releasing lock... [2025-04-12 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-12 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:40:06 [end_date_ymd] => 2025-04-12 09:40:06 [RateCDR] => 1 ) [2025-04-12 09:40: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-04-12 06:40:06' and `end` < '2025-04-12 09:40: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-04-12 09:40:19] Production.INFO: count ==414 [2025-04-12 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:40:06 - End Time 2025-04-12 09:40:06 [2025-04-12 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890704', 'tblTempUsageDetail_20' ) start [2025-04-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890704', 'tblTempUsageDetail_20' ) end [2025-04-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890704', 'tblTempVendorCDR_20' ) start [2025-04-12 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890704', 'tblTempVendorCDR_20' ) end [2025-04-12 09:40:19] Production.INFO: ProcessCDR(1,14890704,1,1,2) [2025-04-12 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890704', 'tblTempUsageDetail_20' ) start [2025-04-12 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890704', 'tblTempUsageDetail_20' ) end [2025-04-12 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:40:23] Production.INFO: ==13070== Releasing lock... [2025-04-12 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-12 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:41:05 [end_date_ymd] => 2025-04-12 09:41:05 [RateCDR] => 1 ) [2025-04-12 09:41: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-04-12 06:41:05' and `end` < '2025-04-12 09:41: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-04-12 09:41:18] Production.INFO: count ==439 [2025-04-12 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:41:05 - End Time 2025-04-12 09:41:05 [2025-04-12 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890709', 'tblTempUsageDetail_20' ) start [2025-04-12 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890709', 'tblTempUsageDetail_20' ) end [2025-04-12 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890709', 'tblTempVendorCDR_20' ) start [2025-04-12 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890709', 'tblTempVendorCDR_20' ) end [2025-04-12 09:41:18] Production.INFO: ProcessCDR(1,14890709,1,1,2) [2025-04-12 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890709', 'tblTempUsageDetail_20' ) start [2025-04-12 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890709', 'tblTempUsageDetail_20' ) end [2025-04-12 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:41:21] Production.INFO: ==13144== Releasing lock... [2025-04-12 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-12 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:42:06 [end_date_ymd] => 2025-04-12 09:42:06 [RateCDR] => 1 ) [2025-04-12 09:42: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-04-12 06:42:06' and `end` < '2025-04-12 09:42: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-04-12 09:42:18] Production.INFO: count ==446 [2025-04-12 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:42:06 - End Time 2025-04-12 09:42:06 [2025-04-12 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890714', 'tblTempUsageDetail_20' ) start [2025-04-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890714', 'tblTempUsageDetail_20' ) end [2025-04-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890714', 'tblTempVendorCDR_20' ) start [2025-04-12 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890714', 'tblTempVendorCDR_20' ) end [2025-04-12 09:42:19] Production.INFO: ProcessCDR(1,14890714,1,1,2) [2025-04-12 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890714', 'tblTempUsageDetail_20' ) start [2025-04-12 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890714', 'tblTempUsageDetail_20' ) end [2025-04-12 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:42:24] Production.INFO: ==13215== Releasing lock... [2025-04-12 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:42:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-12 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:43:05 [end_date_ymd] => 2025-04-12 09:43:05 [RateCDR] => 1 ) [2025-04-12 09:43: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-04-12 06:43:05' and `end` < '2025-04-12 09:43: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-04-12 09:43:18] Production.INFO: count ==451 [2025-04-12 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:43:05 - End Time 2025-04-12 09:43:05 [2025-04-12 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890719', 'tblTempUsageDetail_20' ) start [2025-04-12 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890719', 'tblTempUsageDetail_20' ) end [2025-04-12 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890719', 'tblTempVendorCDR_20' ) start [2025-04-12 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890719', 'tblTempVendorCDR_20' ) end [2025-04-12 09:43:18] Production.INFO: ProcessCDR(1,14890719,1,1,2) [2025-04-12 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890719', 'tblTempUsageDetail_20' ) start [2025-04-12 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890719', 'tblTempUsageDetail_20' ) end [2025-04-12 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:43:23] Production.INFO: ==13289== Releasing lock... [2025-04-12 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:43:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:44:06 [end_date_ymd] => 2025-04-12 09:44:06 [RateCDR] => 1 ) [2025-04-12 09:44: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-04-12 06:44:06' and `end` < '2025-04-12 09:44: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-04-12 09:44:19] Production.INFO: count ==449 [2025-04-12 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:44:06 - End Time 2025-04-12 09:44:06 [2025-04-12 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890724', 'tblTempUsageDetail_20' ) start [2025-04-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890724', 'tblTempUsageDetail_20' ) end [2025-04-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890724', 'tblTempVendorCDR_20' ) start [2025-04-12 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890724', 'tblTempVendorCDR_20' ) end [2025-04-12 09:44:19] Production.INFO: ProcessCDR(1,14890724,1,1,2) [2025-04-12 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890724', 'tblTempUsageDetail_20' ) start [2025-04-12 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890724', 'tblTempUsageDetail_20' ) end [2025-04-12 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:44:22] Production.INFO: ==13361== Releasing lock... [2025-04-12 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:45:05 [end_date_ymd] => 2025-04-12 09:45:05 [RateCDR] => 1 ) [2025-04-12 09:45: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-04-12 06:45:05' and `end` < '2025-04-12 09:45: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-04-12 09:45:18] Production.INFO: count ==449 [2025-04-12 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:45:05 - End Time 2025-04-12 09:45:05 [2025-04-12 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890728', 'tblTempUsageDetail_20' ) start [2025-04-12 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890728', 'tblTempUsageDetail_20' ) end [2025-04-12 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890728', 'tblTempVendorCDR_20' ) start [2025-04-12 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890728', 'tblTempVendorCDR_20' ) end [2025-04-12 09:45:18] Production.INFO: ProcessCDR(1,14890728,1,1,2) [2025-04-12 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890728', 'tblTempUsageDetail_20' ) start [2025-04-12 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890728', 'tblTempUsageDetail_20' ) end [2025-04-12 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:45:21] Production.INFO: ==13430== Releasing lock... [2025-04-12 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:46:05 [end_date_ymd] => 2025-04-12 09:46:05 [RateCDR] => 1 ) [2025-04-12 09:46: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-04-12 06:46:05' and `end` < '2025-04-12 09:46: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-04-12 09:46:18] Production.INFO: count ==453 [2025-04-12 09:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:46:05 - End Time 2025-04-12 09:46:05 [2025-04-12 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890734', 'tblTempUsageDetail_20' ) start [2025-04-12 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890734', 'tblTempUsageDetail_20' ) end [2025-04-12 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890734', 'tblTempVendorCDR_20' ) start [2025-04-12 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890734', 'tblTempVendorCDR_20' ) end [2025-04-12 09:46:18] Production.INFO: ProcessCDR(1,14890734,1,1,2) [2025-04-12 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890734', 'tblTempUsageDetail_20' ) start [2025-04-12 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890734', 'tblTempUsageDetail_20' ) end [2025-04-12 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:46:22] Production.INFO: ==13504== Releasing lock... [2025-04-12 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:46:22] Production.INFO: 32 MB #Memory Used# [2025-04-12 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:47:05 [end_date_ymd] => 2025-04-12 09:47:05 [RateCDR] => 1 ) [2025-04-12 09:47: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-04-12 06:47:05' and `end` < '2025-04-12 09:47: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-04-12 09:47:18] Production.INFO: count ==456 [2025-04-12 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:47:05 - End Time 2025-04-12 09:47:05 [2025-04-12 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890739', 'tblTempUsageDetail_20' ) start [2025-04-12 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890739', 'tblTempUsageDetail_20' ) end [2025-04-12 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890739', 'tblTempVendorCDR_20' ) start [2025-04-12 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890739', 'tblTempVendorCDR_20' ) end [2025-04-12 09:47:18] Production.INFO: ProcessCDR(1,14890739,1,1,2) [2025-04-12 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890739', 'tblTempUsageDetail_20' ) start [2025-04-12 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890739', 'tblTempUsageDetail_20' ) end [2025-04-12 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:47:23] Production.INFO: ==13575== Releasing lock... [2025-04-12 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:47:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:48:05 [end_date_ymd] => 2025-04-12 09:48:05 [RateCDR] => 1 ) [2025-04-12 09:48: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-04-12 06:48:05' and `end` < '2025-04-12 09:48: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-04-12 09:48:18] Production.INFO: count ==456 [2025-04-12 09:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:48:05 - End Time 2025-04-12 09:48:05 [2025-04-12 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890744', 'tblTempUsageDetail_20' ) start [2025-04-12 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890744', 'tblTempUsageDetail_20' ) end [2025-04-12 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890744', 'tblTempVendorCDR_20' ) start [2025-04-12 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890744', 'tblTempVendorCDR_20' ) end [2025-04-12 09:48:18] Production.INFO: ProcessCDR(1,14890744,1,1,2) [2025-04-12 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890744', 'tblTempUsageDetail_20' ) start [2025-04-12 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890744', 'tblTempUsageDetail_20' ) end [2025-04-12 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:48:22] Production.INFO: ==13651== Releasing lock... [2025-04-12 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:49:05 [end_date_ymd] => 2025-04-12 09:49:05 [RateCDR] => 1 ) [2025-04-12 09:49: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-04-12 06:49:05' and `end` < '2025-04-12 09:49: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-04-12 09:49:18] Production.INFO: count ==456 [2025-04-12 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:49:05 - End Time 2025-04-12 09:49:05 [2025-04-12 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890749', 'tblTempUsageDetail_20' ) start [2025-04-12 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890749', 'tblTempUsageDetail_20' ) end [2025-04-12 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890749', 'tblTempVendorCDR_20' ) start [2025-04-12 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890749', 'tblTempVendorCDR_20' ) end [2025-04-12 09:49:18] Production.INFO: ProcessCDR(1,14890749,1,1,2) [2025-04-12 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890749', 'tblTempUsageDetail_20' ) start [2025-04-12 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890749', 'tblTempUsageDetail_20' ) end [2025-04-12 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:49:23] Production.INFO: ==13728== Releasing lock... [2025-04-12 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:49:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:50:06 [end_date_ymd] => 2025-04-12 09:50:06 [RateCDR] => 1 ) [2025-04-12 09:50: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-04-12 06:50:06' and `end` < '2025-04-12 09:50: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-04-12 09:50:19] Production.INFO: count ==473 [2025-04-12 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:50:06 - End Time 2025-04-12 09:50:06 [2025-04-12 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890755', 'tblTempUsageDetail_20' ) start [2025-04-12 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890755', 'tblTempUsageDetail_20' ) end [2025-04-12 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890755', 'tblTempVendorCDR_20' ) start [2025-04-12 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890755', 'tblTempVendorCDR_20' ) end [2025-04-12 09:50:19] Production.INFO: ProcessCDR(1,14890755,1,1,2) [2025-04-12 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890755', 'tblTempUsageDetail_20' ) start [2025-04-12 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890755', 'tblTempUsageDetail_20' ) end [2025-04-12 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:50:24] Production.INFO: ==13804== Releasing lock... [2025-04-12 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:50:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-12 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:51:05 [end_date_ymd] => 2025-04-12 09:51:05 [RateCDR] => 1 ) [2025-04-12 09:51: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-04-12 06:51:05' and `end` < '2025-04-12 09:51: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-04-12 09:51:18] Production.INFO: count ==512 [2025-04-12 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:51:05 - End Time 2025-04-12 09:51:05 [2025-04-12 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890760', 'tblTempUsageDetail_20' ) start [2025-04-12 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890760', 'tblTempUsageDetail_20' ) end [2025-04-12 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890760', 'tblTempVendorCDR_20' ) start [2025-04-12 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890760', 'tblTempVendorCDR_20' ) end [2025-04-12 09:51:18] Production.INFO: ProcessCDR(1,14890760,1,1,2) [2025-04-12 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890760', 'tblTempUsageDetail_20' ) start [2025-04-12 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890760', 'tblTempUsageDetail_20' ) end [2025-04-12 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:51:23] Production.INFO: ==13876== Releasing lock... [2025-04-12 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:51:23] Production.INFO: 33 MB #Memory Used# [2025-04-12 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:52:05 [end_date_ymd] => 2025-04-12 09:52:05 [RateCDR] => 1 ) [2025-04-12 09:52: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-04-12 06:52:05' and `end` < '2025-04-12 09:52: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-04-12 09:52:18] Production.INFO: count ==517 [2025-04-12 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:52:05 - End Time 2025-04-12 09:52:05 [2025-04-12 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890765', 'tblTempUsageDetail_20' ) start [2025-04-12 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890765', 'tblTempUsageDetail_20' ) end [2025-04-12 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890765', 'tblTempVendorCDR_20' ) start [2025-04-12 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890765', 'tblTempVendorCDR_20' ) end [2025-04-12 09:52:18] Production.INFO: ProcessCDR(1,14890765,1,1,2) [2025-04-12 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890765', 'tblTempUsageDetail_20' ) start [2025-04-12 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890765', 'tblTempUsageDetail_20' ) end [2025-04-12 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:52:21] Production.INFO: ==13952== Releasing lock... [2025-04-12 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:53:05 [end_date_ymd] => 2025-04-12 09:53:05 [RateCDR] => 1 ) [2025-04-12 09:53: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-04-12 06:53:05' and `end` < '2025-04-12 09:53: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-04-12 09:53:18] Production.INFO: count ==517 [2025-04-12 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:53:05 - End Time 2025-04-12 09:53:05 [2025-04-12 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890770', 'tblTempUsageDetail_20' ) start [2025-04-12 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890770', 'tblTempUsageDetail_20' ) end [2025-04-12 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890770', 'tblTempVendorCDR_20' ) start [2025-04-12 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890770', 'tblTempVendorCDR_20' ) end [2025-04-12 09:53:18] Production.INFO: ProcessCDR(1,14890770,1,1,2) [2025-04-12 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890770', 'tblTempUsageDetail_20' ) start [2025-04-12 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890770', 'tblTempUsageDetail_20' ) end [2025-04-12 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:53:22] Production.INFO: ==14026== Releasing lock... [2025-04-12 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:54:05 [end_date_ymd] => 2025-04-12 09:54:05 [RateCDR] => 1 ) [2025-04-12 09:54: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-04-12 06:54:05' and `end` < '2025-04-12 09:54: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-04-12 09:54:18] Production.INFO: count ==520 [2025-04-12 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:54:05 - End Time 2025-04-12 09:54:05 [2025-04-12 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890775', 'tblTempUsageDetail_20' ) start [2025-04-12 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890775', 'tblTempUsageDetail_20' ) end [2025-04-12 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890775', 'tblTempVendorCDR_20' ) start [2025-04-12 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890775', 'tblTempVendorCDR_20' ) end [2025-04-12 09:54:18] Production.INFO: ProcessCDR(1,14890775,1,1,2) [2025-04-12 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890775', 'tblTempUsageDetail_20' ) start [2025-04-12 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890775', 'tblTempUsageDetail_20' ) end [2025-04-12 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:54:22] Production.INFO: ==14096== Releasing lock... [2025-04-12 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:55:05 [end_date_ymd] => 2025-04-12 09:55:05 [RateCDR] => 1 ) [2025-04-12 09:55: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-04-12 06:55:05' and `end` < '2025-04-12 09:55: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-04-12 09:55:18] Production.INFO: count ==525 [2025-04-12 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:55:05 - End Time 2025-04-12 09:55:05 [2025-04-12 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890780', 'tblTempUsageDetail_20' ) start [2025-04-12 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890780', 'tblTempUsageDetail_20' ) end [2025-04-12 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890780', 'tblTempVendorCDR_20' ) start [2025-04-12 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890780', 'tblTempVendorCDR_20' ) end [2025-04-12 09:55:18] Production.INFO: ProcessCDR(1,14890780,1,1,2) [2025-04-12 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890780', 'tblTempUsageDetail_20' ) start [2025-04-12 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890780', 'tblTempUsageDetail_20' ) end [2025-04-12 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:55:23] Production.INFO: ==14168== Releasing lock... [2025-04-12 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:56:05 [end_date_ymd] => 2025-04-12 09:56:05 [RateCDR] => 1 ) [2025-04-12 09:56: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-04-12 06:56:05' and `end` < '2025-04-12 09:56: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-04-12 09:56:17] Production.INFO: count ==529 [2025-04-12 09:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:56:05 - End Time 2025-04-12 09:56:05 [2025-04-12 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890785', 'tblTempUsageDetail_20' ) start [2025-04-12 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890785', 'tblTempUsageDetail_20' ) end [2025-04-12 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890785', 'tblTempVendorCDR_20' ) start [2025-04-12 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890785', 'tblTempVendorCDR_20' ) end [2025-04-12 09:56:18] Production.INFO: ProcessCDR(1,14890785,1,1,2) [2025-04-12 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890785', 'tblTempUsageDetail_20' ) start [2025-04-12 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890785', 'tblTempUsageDetail_20' ) end [2025-04-12 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:56:21] Production.INFO: ==14277== Releasing lock... [2025-04-12 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:57:06 [end_date_ymd] => 2025-04-12 09:57:06 [RateCDR] => 1 ) [2025-04-12 09:57: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-04-12 06:57:06' and `end` < '2025-04-12 09:57: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-04-12 09:57:18] Production.INFO: count ==531 [2025-04-12 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:57:06 - End Time 2025-04-12 09:57:06 [2025-04-12 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890790', 'tblTempUsageDetail_20' ) start [2025-04-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890790', 'tblTempUsageDetail_20' ) end [2025-04-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890790', 'tblTempVendorCDR_20' ) start [2025-04-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890790', 'tblTempVendorCDR_20' ) end [2025-04-12 09:57:19] Production.INFO: ProcessCDR(1,14890790,1,1,2) [2025-04-12 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890790', 'tblTempUsageDetail_20' ) start [2025-04-12 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890790', 'tblTempUsageDetail_20' ) end [2025-04-12 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:57:22] Production.INFO: ==14347== Releasing lock... [2025-04-12 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:58:05 [end_date_ymd] => 2025-04-12 09:58:05 [RateCDR] => 1 ) [2025-04-12 09:58: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-04-12 06:58:05' and `end` < '2025-04-12 09:58: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-04-12 09:58:18] Production.INFO: count ==531 [2025-04-12 09:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 06:58:05 - End Time 2025-04-12 09:58:05 [2025-04-12 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890795', 'tblTempUsageDetail_20' ) start [2025-04-12 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890795', 'tblTempUsageDetail_20' ) end [2025-04-12 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890795', 'tblTempVendorCDR_20' ) start [2025-04-12 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890795', 'tblTempVendorCDR_20' ) end [2025-04-12 09:58:18] Production.INFO: ProcessCDR(1,14890795,1,1,2) [2025-04-12 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890795', 'tblTempUsageDetail_20' ) start [2025-04-12 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890795', 'tblTempUsageDetail_20' ) end [2025-04-12 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:58:21] Production.INFO: ==14420== Releasing lock... [2025-04-12 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 06:59:06 [end_date_ymd] => 2025-04-12 09:59:06 [RateCDR] => 1 ) [2025-04-12 09:59: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-04-12 06:59:06' and `end` < '2025-04-12 09:59: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-04-12 09:59:18] Production.INFO: count ==534 [2025-04-12 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 06:59:06 - End Time 2025-04-12 09:59:06 [2025-04-12 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890800', 'tblTempUsageDetail_20' ) start [2025-04-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890800', 'tblTempUsageDetail_20' ) end [2025-04-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890800', 'tblTempVendorCDR_20' ) start [2025-04-12 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890800', 'tblTempVendorCDR_20' ) end [2025-04-12 09:59:19] Production.INFO: ProcessCDR(1,14890800,1,1,2) [2025-04-12 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890800', 'tblTempUsageDetail_20' ) start [2025-04-12 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890800', 'tblTempUsageDetail_20' ) end [2025-04-12 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 09:59:24] Production.INFO: ==14494== Releasing lock... [2025-04-12 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 09:59:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-12 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:00:05 [end_date_ymd] => 2025-04-12 10:00:05 [RateCDR] => 1 ) [2025-04-12 10:00: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-04-12 07:00:05' and `end` < '2025-04-12 10:00: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-04-12 10:00:18] Production.INFO: count ==551 [2025-04-12 10:00:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:00:05 - End Time 2025-04-12 10:00:05 [2025-04-12 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890805', 'tblTempUsageDetail_20' ) start [2025-04-12 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890805', 'tblTempUsageDetail_20' ) end [2025-04-12 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890805', 'tblTempVendorCDR_20' ) start [2025-04-12 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890805', 'tblTempVendorCDR_20' ) end [2025-04-12 10:00:18] Production.INFO: ProcessCDR(1,14890805,1,1,2) [2025-04-12 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890805', 'tblTempUsageDetail_20' ) start [2025-04-12 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890805', 'tblTempUsageDetail_20' ) end [2025-04-12 10:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:00:23] Production.INFO: ==14566== Releasing lock... [2025-04-12 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-12 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:01:06 [end_date_ymd] => 2025-04-12 10:01:06 [RateCDR] => 1 ) [2025-04-12 10:01: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-04-12 07:01:06' and `end` < '2025-04-12 10:01: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-04-12 10:01:19] Production.INFO: count ==553 [2025-04-12 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:01:06 - End Time 2025-04-12 10:01:06 [2025-04-12 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890811', 'tblTempUsageDetail_20' ) start [2025-04-12 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890811', 'tblTempUsageDetail_20' ) end [2025-04-12 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890811', 'tblTempVendorCDR_20' ) start [2025-04-12 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890811', 'tblTempVendorCDR_20' ) end [2025-04-12 10:01:19] Production.INFO: ProcessCDR(1,14890811,1,1,2) [2025-04-12 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890811', 'tblTempUsageDetail_20' ) start [2025-04-12 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890811', 'tblTempUsageDetail_20' ) end [2025-04-12 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:01:22] Production.INFO: ==14654== Releasing lock... [2025-04-12 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-12 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:02:05 [end_date_ymd] => 2025-04-12 10:02:05 [RateCDR] => 1 ) [2025-04-12 10:02: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-04-12 07:02:05' and `end` < '2025-04-12 10:02: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-04-12 10:02:18] Production.INFO: count ==556 [2025-04-12 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:02:05 - End Time 2025-04-12 10:02:05 [2025-04-12 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890816', 'tblTempUsageDetail_20' ) start [2025-04-12 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890816', 'tblTempUsageDetail_20' ) end [2025-04-12 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890816', 'tblTempVendorCDR_20' ) start [2025-04-12 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890816', 'tblTempVendorCDR_20' ) end [2025-04-12 10:02:18] Production.INFO: ProcessCDR(1,14890816,1,1,2) [2025-04-12 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890816', 'tblTempUsageDetail_20' ) start [2025-04-12 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890816', 'tblTempUsageDetail_20' ) end [2025-04-12 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:02:22] Production.INFO: ==14723== Releasing lock... [2025-04-12 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:03:05 [end_date_ymd] => 2025-04-12 10:03:05 [RateCDR] => 1 ) [2025-04-12 10:03: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-04-12 07:03:05' and `end` < '2025-04-12 10:03: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-04-12 10:03:18] Production.INFO: count ==556 [2025-04-12 10:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:03:05 - End Time 2025-04-12 10:03:05 [2025-04-12 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890821', 'tblTempUsageDetail_20' ) start [2025-04-12 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890821', 'tblTempUsageDetail_20' ) end [2025-04-12 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890821', 'tblTempVendorCDR_20' ) start [2025-04-12 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890821', 'tblTempVendorCDR_20' ) end [2025-04-12 10:03:18] Production.INFO: ProcessCDR(1,14890821,1,1,2) [2025-04-12 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890821', 'tblTempUsageDetail_20' ) start [2025-04-12 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890821', 'tblTempUsageDetail_20' ) end [2025-04-12 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:03:22] Production.INFO: ==14794== Releasing lock... [2025-04-12 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:04:05 [end_date_ymd] => 2025-04-12 10:04:05 [RateCDR] => 1 ) [2025-04-12 10:04: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-04-12 07:04:05' and `end` < '2025-04-12 10:04: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-04-12 10:04:18] Production.INFO: count ==556 [2025-04-12 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:04:05 - End Time 2025-04-12 10:04:05 [2025-04-12 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890826', 'tblTempUsageDetail_20' ) start [2025-04-12 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890826', 'tblTempUsageDetail_20' ) end [2025-04-12 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890826', 'tblTempVendorCDR_20' ) start [2025-04-12 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890826', 'tblTempVendorCDR_20' ) end [2025-04-12 10:04:18] Production.INFO: ProcessCDR(1,14890826,1,1,2) [2025-04-12 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890826', 'tblTempUsageDetail_20' ) start [2025-04-12 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890826', 'tblTempUsageDetail_20' ) end [2025-04-12 10:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:04:22] Production.INFO: ==14864== Releasing lock... [2025-04-12 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:05:05 [end_date_ymd] => 2025-04-12 10:05:05 [RateCDR] => 1 ) [2025-04-12 10:05: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-04-12 07:05:05' and `end` < '2025-04-12 10:05: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-04-12 10:05:18] Production.INFO: count ==557 [2025-04-12 10:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:05:05 - End Time 2025-04-12 10:05:05 [2025-04-12 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890831', 'tblTempUsageDetail_20' ) start [2025-04-12 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890831', 'tblTempUsageDetail_20' ) end [2025-04-12 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890831', 'tblTempVendorCDR_20' ) start [2025-04-12 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890831', 'tblTempVendorCDR_20' ) end [2025-04-12 10:05:18] Production.INFO: ProcessCDR(1,14890831,1,1,2) [2025-04-12 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890831', 'tblTempUsageDetail_20' ) start [2025-04-12 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890831', 'tblTempUsageDetail_20' ) end [2025-04-12 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:05:23] Production.INFO: ==14939== Releasing lock... [2025-04-12 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:05:23] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:06:05 [end_date_ymd] => 2025-04-12 10:06:05 [RateCDR] => 1 ) [2025-04-12 10:06: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-04-12 07:06:05' and `end` < '2025-04-12 10:06: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-04-12 10:06:17] Production.INFO: count ==571 [2025-04-12 10:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:06:05 - End Time 2025-04-12 10:06:05 [2025-04-12 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890836', 'tblTempUsageDetail_20' ) start [2025-04-12 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890836', 'tblTempUsageDetail_20' ) end [2025-04-12 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890836', 'tblTempVendorCDR_20' ) start [2025-04-12 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890836', 'tblTempVendorCDR_20' ) end [2025-04-12 10:06:18] Production.INFO: ProcessCDR(1,14890836,1,1,2) [2025-04-12 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890836', 'tblTempUsageDetail_20' ) start [2025-04-12 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890836', 'tblTempUsageDetail_20' ) end [2025-04-12 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:06:23] Production.INFO: ==15013== Releasing lock... [2025-04-12 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:07:05 [end_date_ymd] => 2025-04-12 10:07:05 [RateCDR] => 1 ) [2025-04-12 10:07: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-04-12 07:07:05' and `end` < '2025-04-12 10:07: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-04-12 10:07:18] Production.INFO: count ==571 [2025-04-12 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:07:05 - End Time 2025-04-12 10:07:05 [2025-04-12 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890841', 'tblTempUsageDetail_20' ) start [2025-04-12 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890841', 'tblTempUsageDetail_20' ) end [2025-04-12 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890841', 'tblTempVendorCDR_20' ) start [2025-04-12 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890841', 'tblTempVendorCDR_20' ) end [2025-04-12 10:07:18] Production.INFO: ProcessCDR(1,14890841,1,1,2) [2025-04-12 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890841', 'tblTempUsageDetail_20' ) start [2025-04-12 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890841', 'tblTempUsageDetail_20' ) end [2025-04-12 10:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:07:22] Production.INFO: ==15085== Releasing lock... [2025-04-12 10:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:08:06 [end_date_ymd] => 2025-04-12 10:08:06 [RateCDR] => 1 ) [2025-04-12 10:08: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-04-12 07:08:06' and `end` < '2025-04-12 10:08: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-04-12 10:08:18] Production.INFO: count ==574 [2025-04-12 10:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:08:06 - End Time 2025-04-12 10:08:06 [2025-04-12 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890846', 'tblTempUsageDetail_20' ) start [2025-04-12 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890846', 'tblTempUsageDetail_20' ) end [2025-04-12 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890846', 'tblTempVendorCDR_20' ) start [2025-04-12 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890846', 'tblTempVendorCDR_20' ) end [2025-04-12 10:08:18] Production.INFO: ProcessCDR(1,14890846,1,1,2) [2025-04-12 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890846', 'tblTempUsageDetail_20' ) start [2025-04-12 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890846', 'tblTempUsageDetail_20' ) end [2025-04-12 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:08:23] Production.INFO: ==15157== Releasing lock... [2025-04-12 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:08:23] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:09:05 [end_date_ymd] => 2025-04-12 10:09:05 [RateCDR] => 1 ) [2025-04-12 10:09: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-04-12 07:09:05' and `end` < '2025-04-12 10:09: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-04-12 10:09:18] Production.INFO: count ==586 [2025-04-12 10:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:09:05 - End Time 2025-04-12 10:09:05 [2025-04-12 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890851', 'tblTempUsageDetail_20' ) start [2025-04-12 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890851', 'tblTempUsageDetail_20' ) end [2025-04-12 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890851', 'tblTempVendorCDR_20' ) start [2025-04-12 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890851', 'tblTempVendorCDR_20' ) end [2025-04-12 10:09:18] Production.INFO: ProcessCDR(1,14890851,1,1,2) [2025-04-12 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890851', 'tblTempUsageDetail_20' ) start [2025-04-12 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890851', 'tblTempUsageDetail_20' ) end [2025-04-12 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:09:22] Production.INFO: ==15226== Releasing lock... [2025-04-12 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:09:22] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:10:06 [end_date_ymd] => 2025-04-12 10:10:06 [RateCDR] => 1 ) [2025-04-12 10:10: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-04-12 07:10:06' and `end` < '2025-04-12 10:10: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-04-12 10:10:20] Production.INFO: count ==597 [2025-04-12 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 07:10:06 - End Time 2025-04-12 10:10:06 [2025-04-12 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890857', 'tblTempUsageDetail_20' ) start [2025-04-12 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890857', 'tblTempUsageDetail_20' ) end [2025-04-12 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890857', 'tblTempVendorCDR_20' ) start [2025-04-12 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890857', 'tblTempVendorCDR_20' ) end [2025-04-12 10:10:20] Production.INFO: ProcessCDR(1,14890857,1,1,2) [2025-04-12 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890857', 'tblTempUsageDetail_20' ) start [2025-04-12 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890857', 'tblTempUsageDetail_20' ) end [2025-04-12 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:10:25] Production.INFO: ==15299== Releasing lock... [2025-04-12 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:10:25] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:11:05 [end_date_ymd] => 2025-04-12 10:11:05 [RateCDR] => 1 ) [2025-04-12 10:11: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-04-12 07:11:05' and `end` < '2025-04-12 10:11: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-04-12 10:11:18] Production.INFO: count ==613 [2025-04-12 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:11:05 - End Time 2025-04-12 10:11:05 [2025-04-12 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890862', 'tblTempUsageDetail_20' ) start [2025-04-12 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890862', 'tblTempUsageDetail_20' ) end [2025-04-12 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890862', 'tblTempVendorCDR_20' ) start [2025-04-12 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890862', 'tblTempVendorCDR_20' ) end [2025-04-12 10:11:18] Production.INFO: ProcessCDR(1,14890862,1,1,2) [2025-04-12 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890862', 'tblTempUsageDetail_20' ) start [2025-04-12 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890862', 'tblTempUsageDetail_20' ) end [2025-04-12 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:11:23] Production.INFO: ==15415== Releasing lock... [2025-04-12 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:11:23] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:12:05 [end_date_ymd] => 2025-04-12 10:12:05 [RateCDR] => 1 ) [2025-04-12 10:12: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-04-12 07:12:05' and `end` < '2025-04-12 10:12: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-04-12 10:12:18] Production.INFO: count ==613 [2025-04-12 10:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:12:05 - End Time 2025-04-12 10:12:05 [2025-04-12 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890867', 'tblTempUsageDetail_20' ) start [2025-04-12 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890867', 'tblTempUsageDetail_20' ) end [2025-04-12 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890867', 'tblTempVendorCDR_20' ) start [2025-04-12 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890867', 'tblTempVendorCDR_20' ) end [2025-04-12 10:12:18] Production.INFO: ProcessCDR(1,14890867,1,1,2) [2025-04-12 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890867', 'tblTempUsageDetail_20' ) start [2025-04-12 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890867', 'tblTempUsageDetail_20' ) end [2025-04-12 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:12:22] Production.INFO: ==15487== Releasing lock... [2025-04-12 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:12:22] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:13:04 [end_date_ymd] => 2025-04-12 10:13:04 [RateCDR] => 1 ) [2025-04-12 10:13: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-04-12 07:13:04' and `end` < '2025-04-12 10:13: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-04-12 10:13:17] Production.INFO: count ==613 [2025-04-12 10:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:13:04 - End Time 2025-04-12 10:13:04 [2025-04-12 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890872', 'tblTempUsageDetail_20' ) start [2025-04-12 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890872', 'tblTempUsageDetail_20' ) end [2025-04-12 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890872', 'tblTempVendorCDR_20' ) start [2025-04-12 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890872', 'tblTempVendorCDR_20' ) end [2025-04-12 10:13:18] Production.INFO: ProcessCDR(1,14890872,1,1,2) [2025-04-12 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890872', 'tblTempUsageDetail_20' ) start [2025-04-12 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890872', 'tblTempUsageDetail_20' ) end [2025-04-12 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:13:23] Production.INFO: ==15558== Releasing lock... [2025-04-12 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:13:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:14:05 [end_date_ymd] => 2025-04-12 10:14:05 [RateCDR] => 1 ) [2025-04-12 10:14: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-04-12 07:14:05' and `end` < '2025-04-12 10:14: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-04-12 10:14:18] Production.INFO: count ==620 [2025-04-12 10:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:14:05 - End Time 2025-04-12 10:14:05 [2025-04-12 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890877', 'tblTempUsageDetail_20' ) start [2025-04-12 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890877', 'tblTempUsageDetail_20' ) end [2025-04-12 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890877', 'tblTempVendorCDR_20' ) start [2025-04-12 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890877', 'tblTempVendorCDR_20' ) end [2025-04-12 10:14:18] Production.INFO: ProcessCDR(1,14890877,1,1,2) [2025-04-12 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890877', 'tblTempUsageDetail_20' ) start [2025-04-12 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890877', 'tblTempUsageDetail_20' ) end [2025-04-12 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:14:24] Production.INFO: ==15633== Releasing lock... [2025-04-12 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:14:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:15:05 [end_date_ymd] => 2025-04-12 10:15:05 [RateCDR] => 1 ) [2025-04-12 10:15: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-04-12 07:15:05' and `end` < '2025-04-12 10:15: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-04-12 10:15:18] Production.INFO: count ==618 [2025-04-12 10:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:15:05 - End Time 2025-04-12 10:15:05 [2025-04-12 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890882', 'tblTempUsageDetail_20' ) start [2025-04-12 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890882', 'tblTempUsageDetail_20' ) end [2025-04-12 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890882', 'tblTempVendorCDR_20' ) start [2025-04-12 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890882', 'tblTempVendorCDR_20' ) end [2025-04-12 10:15:18] Production.INFO: ProcessCDR(1,14890882,1,1,2) [2025-04-12 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890882', 'tblTempUsageDetail_20' ) start [2025-04-12 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890882', 'tblTempUsageDetail_20' ) end [2025-04-12 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:15:21] Production.INFO: ==15703== Releasing lock... [2025-04-12 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:16:05 [end_date_ymd] => 2025-04-12 10:16:05 [RateCDR] => 1 ) [2025-04-12 10:16: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-04-12 07:16:05' and `end` < '2025-04-12 10:16: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-04-12 10:16:18] Production.INFO: count ==620 [2025-04-12 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:16:05 - End Time 2025-04-12 10:16:05 [2025-04-12 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890887', 'tblTempUsageDetail_20' ) start [2025-04-12 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890887', 'tblTempUsageDetail_20' ) end [2025-04-12 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890887', 'tblTempVendorCDR_20' ) start [2025-04-12 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890887', 'tblTempVendorCDR_20' ) end [2025-04-12 10:16:18] Production.INFO: ProcessCDR(1,14890887,1,1,2) [2025-04-12 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890887', 'tblTempUsageDetail_20' ) start [2025-04-12 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890887', 'tblTempUsageDetail_20' ) end [2025-04-12 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:16:24] Production.INFO: ==15773== Releasing lock... [2025-04-12 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:16:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:17:05 [end_date_ymd] => 2025-04-12 10:17:05 [RateCDR] => 1 ) [2025-04-12 10:17: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-04-12 07:17:05' and `end` < '2025-04-12 10:17: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-04-12 10:17:18] Production.INFO: count ==627 [2025-04-12 10:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:17:05 - End Time 2025-04-12 10:17:05 [2025-04-12 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890892', 'tblTempUsageDetail_20' ) start [2025-04-12 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890892', 'tblTempUsageDetail_20' ) end [2025-04-12 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890892', 'tblTempVendorCDR_20' ) start [2025-04-12 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890892', 'tblTempVendorCDR_20' ) end [2025-04-12 10:17:18] Production.INFO: ProcessCDR(1,14890892,1,1,2) [2025-04-12 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890892', 'tblTempUsageDetail_20' ) start [2025-04-12 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890892', 'tblTempUsageDetail_20' ) end [2025-04-12 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:17:23] Production.INFO: ==15845== Releasing lock... [2025-04-12 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:17:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:18:06 [end_date_ymd] => 2025-04-12 10:18:06 [RateCDR] => 1 ) [2025-04-12 10:18: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-04-12 07:18:06' and `end` < '2025-04-12 10:18: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-04-12 10:18:18] Production.INFO: count ==625 [2025-04-12 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:18:06 - End Time 2025-04-12 10:18:06 [2025-04-12 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890897', 'tblTempUsageDetail_20' ) start [2025-04-12 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890897', 'tblTempUsageDetail_20' ) end [2025-04-12 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890897', 'tblTempVendorCDR_20' ) start [2025-04-12 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890897', 'tblTempVendorCDR_20' ) end [2025-04-12 10:18:19] Production.INFO: ProcessCDR(1,14890897,1,1,2) [2025-04-12 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890897', 'tblTempUsageDetail_20' ) start [2025-04-12 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890897', 'tblTempUsageDetail_20' ) end [2025-04-12 10:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:18:22] Production.INFO: ==15917== Releasing lock... [2025-04-12 10:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:19:05 [end_date_ymd] => 2025-04-12 10:19:05 [RateCDR] => 1 ) [2025-04-12 10:19: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-04-12 07:19:05' and `end` < '2025-04-12 10:19: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-04-12 10:19:17] Production.INFO: count ==627 [2025-04-12 10:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:19:05 - End Time 2025-04-12 10:19:05 [2025-04-12 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890902', 'tblTempUsageDetail_20' ) start [2025-04-12 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890902', 'tblTempUsageDetail_20' ) end [2025-04-12 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890902', 'tblTempVendorCDR_20' ) start [2025-04-12 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890902', 'tblTempVendorCDR_20' ) end [2025-04-12 10:19:18] Production.INFO: ProcessCDR(1,14890902,1,1,2) [2025-04-12 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890902', 'tblTempUsageDetail_20' ) start [2025-04-12 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890902', 'tblTempUsageDetail_20' ) end [2025-04-12 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:19:21] Production.INFO: ==15986== Releasing lock... [2025-04-12 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:20:06 [end_date_ymd] => 2025-04-12 10:20:06 [RateCDR] => 1 ) [2025-04-12 10:20: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-04-12 07:20:06' and `end` < '2025-04-12 10:20: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-04-12 10:20:19] Production.INFO: count ==633 [2025-04-12 10:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:20:06 - End Time 2025-04-12 10:20:06 [2025-04-12 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890908', 'tblTempUsageDetail_20' ) start [2025-04-12 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890908', 'tblTempUsageDetail_20' ) end [2025-04-12 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890908', 'tblTempVendorCDR_20' ) start [2025-04-12 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890908', 'tblTempVendorCDR_20' ) end [2025-04-12 10:20:19] Production.INFO: ProcessCDR(1,14890908,1,1,2) [2025-04-12 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890908', 'tblTempUsageDetail_20' ) start [2025-04-12 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890908', 'tblTempUsageDetail_20' ) end [2025-04-12 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:20:23] Production.INFO: ==16065== Releasing lock... [2025-04-12 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:20:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-12 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:21:05 [end_date_ymd] => 2025-04-12 10:21:05 [RateCDR] => 1 ) [2025-04-12 10:21: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-04-12 07:21:05' and `end` < '2025-04-12 10:21: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-04-12 10:21:18] Production.INFO: count ==646 [2025-04-12 10:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:21:05 - End Time 2025-04-12 10:21:05 [2025-04-12 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890913', 'tblTempUsageDetail_20' ) start [2025-04-12 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890913', 'tblTempUsageDetail_20' ) end [2025-04-12 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890913', 'tblTempVendorCDR_20' ) start [2025-04-12 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890913', 'tblTempVendorCDR_20' ) end [2025-04-12 10:21:18] Production.INFO: ProcessCDR(1,14890913,1,1,2) [2025-04-12 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890913', 'tblTempUsageDetail_20' ) start [2025-04-12 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890913', 'tblTempUsageDetail_20' ) end [2025-04-12 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:21:22] Production.INFO: ==16137== Releasing lock... [2025-04-12 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:21:22] Production.INFO: 33 MB #Memory Used# [2025-04-12 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:22:05 [end_date_ymd] => 2025-04-12 10:22:05 [RateCDR] => 1 ) [2025-04-12 10:22: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-04-12 07:22:05' and `end` < '2025-04-12 10:22: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-04-12 10:22:18] Production.INFO: count ==647 [2025-04-12 10:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:22:05 - End Time 2025-04-12 10:22:05 [2025-04-12 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890918', 'tblTempUsageDetail_20' ) start [2025-04-12 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890918', 'tblTempUsageDetail_20' ) end [2025-04-12 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890918', 'tblTempVendorCDR_20' ) start [2025-04-12 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890918', 'tblTempVendorCDR_20' ) end [2025-04-12 10:22:18] Production.INFO: ProcessCDR(1,14890918,1,1,2) [2025-04-12 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890918', 'tblTempUsageDetail_20' ) start [2025-04-12 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890918', 'tblTempUsageDetail_20' ) end [2025-04-12 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:22:23] Production.INFO: ==16210== Releasing lock... [2025-04-12 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:22:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:23:05 [end_date_ymd] => 2025-04-12 10:23:05 [RateCDR] => 1 ) [2025-04-12 10:23: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-04-12 07:23:05' and `end` < '2025-04-12 10:23: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-04-12 10:23:18] Production.INFO: count ==648 [2025-04-12 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:23:05 - End Time 2025-04-12 10:23:05 [2025-04-12 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890923', 'tblTempUsageDetail_20' ) start [2025-04-12 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890923', 'tblTempUsageDetail_20' ) end [2025-04-12 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890923', 'tblTempVendorCDR_20' ) start [2025-04-12 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890923', 'tblTempVendorCDR_20' ) end [2025-04-12 10:23:19] Production.INFO: ProcessCDR(1,14890923,1,1,2) [2025-04-12 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890923', 'tblTempUsageDetail_20' ) start [2025-04-12 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890923', 'tblTempUsageDetail_20' ) end [2025-04-12 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:23:23] Production.INFO: ==16286== Releasing lock... [2025-04-12 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:23:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:24:05 [end_date_ymd] => 2025-04-12 10:24:05 [RateCDR] => 1 ) [2025-04-12 10:24: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-04-12 07:24:05' and `end` < '2025-04-12 10:24: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-04-12 10:24:18] Production.INFO: count ==653 [2025-04-12 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:24:05 - End Time 2025-04-12 10:24:05 [2025-04-12 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890928', 'tblTempUsageDetail_20' ) start [2025-04-12 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890928', 'tblTempUsageDetail_20' ) end [2025-04-12 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890928', 'tblTempVendorCDR_20' ) start [2025-04-12 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890928', 'tblTempVendorCDR_20' ) end [2025-04-12 10:24:18] Production.INFO: ProcessCDR(1,14890928,1,1,2) [2025-04-12 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890928', 'tblTempUsageDetail_20' ) start [2025-04-12 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890928', 'tblTempUsageDetail_20' ) end [2025-04-12 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:24:21] Production.INFO: ==16355== Releasing lock... [2025-04-12 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:24:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:25:05 [end_date_ymd] => 2025-04-12 10:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 07:25:05' and `end` < '2025-04-12 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-04-12 10:25:18] Production.INFO: count ==657 [2025-04-12 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:25:05 - End Time 2025-04-12 10:25:05 [2025-04-12 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890933', 'tblTempUsageDetail_20' ) start [2025-04-12 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890933', 'tblTempUsageDetail_20' ) end [2025-04-12 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890933', 'tblTempVendorCDR_20' ) start [2025-04-12 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890933', 'tblTempVendorCDR_20' ) end [2025-04-12 10:25:19] Production.INFO: ProcessCDR(1,14890933,1,1,2) [2025-04-12 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890933', 'tblTempUsageDetail_20' ) start [2025-04-12 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890933', 'tblTempUsageDetail_20' ) end [2025-04-12 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:25:22] Production.INFO: ==16424== Releasing lock... [2025-04-12 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-12 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:26:05 [end_date_ymd] => 2025-04-12 10:26:05 [RateCDR] => 1 ) [2025-04-12 10:26: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-04-12 07:26:05' and `end` < '2025-04-12 10:26: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-04-12 10:26:18] Production.INFO: count ==667 [2025-04-12 10:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:26:05 - End Time 2025-04-12 10:26:05 [2025-04-12 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890938', 'tblTempUsageDetail_20' ) start [2025-04-12 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890938', 'tblTempUsageDetail_20' ) end [2025-04-12 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890938', 'tblTempVendorCDR_20' ) start [2025-04-12 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890938', 'tblTempVendorCDR_20' ) end [2025-04-12 10:26:18] Production.INFO: ProcessCDR(1,14890938,1,1,2) [2025-04-12 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890938', 'tblTempUsageDetail_20' ) start [2025-04-12 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890938', 'tblTempUsageDetail_20' ) end [2025-04-12 10:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:26:23] Production.INFO: ==16495== Releasing lock... [2025-04-12 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:26:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:27:06 [end_date_ymd] => 2025-04-12 10:27:06 [RateCDR] => 1 ) [2025-04-12 10:27: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-04-12 07:27:06' and `end` < '2025-04-12 10:27: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-04-12 10:27:18] Production.INFO: count ==671 [2025-04-12 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:27:06 - End Time 2025-04-12 10:27:06 [2025-04-12 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890943', 'tblTempUsageDetail_20' ) start [2025-04-12 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890943', 'tblTempUsageDetail_20' ) end [2025-04-12 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890943', 'tblTempVendorCDR_20' ) start [2025-04-12 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890943', 'tblTempVendorCDR_20' ) end [2025-04-12 10:27:19] Production.INFO: ProcessCDR(1,14890943,1,1,2) [2025-04-12 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890943', 'tblTempUsageDetail_20' ) start [2025-04-12 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890943', 'tblTempUsageDetail_20' ) end [2025-04-12 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:27:24] Production.INFO: ==16607== Releasing lock... [2025-04-12 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:27:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:28:05 [end_date_ymd] => 2025-04-12 10:28:05 [RateCDR] => 1 ) [2025-04-12 10:28: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-04-12 07:28:05' and `end` < '2025-04-12 10:28: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-04-12 10:28:18] Production.INFO: count ==670 [2025-04-12 10:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:28:05 - End Time 2025-04-12 10:28:05 [2025-04-12 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890948', 'tblTempUsageDetail_20' ) start [2025-04-12 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890948', 'tblTempUsageDetail_20' ) end [2025-04-12 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890948', 'tblTempVendorCDR_20' ) start [2025-04-12 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890948', 'tblTempVendorCDR_20' ) end [2025-04-12 10:28:18] Production.INFO: ProcessCDR(1,14890948,1,1,2) [2025-04-12 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890948', 'tblTempUsageDetail_20' ) start [2025-04-12 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890948', 'tblTempUsageDetail_20' ) end [2025-04-12 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:28:21] Production.INFO: ==16680== Releasing lock... [2025-04-12 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:29:06 [end_date_ymd] => 2025-04-12 10:29:06 [RateCDR] => 1 ) [2025-04-12 10:29: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-04-12 07:29:06' and `end` < '2025-04-12 10:29: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-04-12 10:29:18] Production.INFO: count ==672 [2025-04-12 10:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:29:06 - End Time 2025-04-12 10:29:06 [2025-04-12 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890953', 'tblTempUsageDetail_20' ) start [2025-04-12 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890953', 'tblTempUsageDetail_20' ) end [2025-04-12 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890953', 'tblTempVendorCDR_20' ) start [2025-04-12 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890953', 'tblTempVendorCDR_20' ) end [2025-04-12 10:29:19] Production.INFO: ProcessCDR(1,14890953,1,1,2) [2025-04-12 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890953', 'tblTempUsageDetail_20' ) start [2025-04-12 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890953', 'tblTempUsageDetail_20' ) end [2025-04-12 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:29:24] Production.INFO: ==16753== Releasing lock... [2025-04-12 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:29:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:30:05 [end_date_ymd] => 2025-04-12 10:30:05 [RateCDR] => 1 ) [2025-04-12 10:30: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-04-12 07:30:05' and `end` < '2025-04-12 10:30: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-04-12 10:30:18] Production.INFO: count ==681 [2025-04-12 10:30:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:30:05 - End Time 2025-04-12 10:30:05 [2025-04-12 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890958', 'tblTempUsageDetail_20' ) start [2025-04-12 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890958', 'tblTempUsageDetail_20' ) end [2025-04-12 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890958', 'tblTempVendorCDR_20' ) start [2025-04-12 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890958', 'tblTempVendorCDR_20' ) end [2025-04-12 10:30:18] Production.INFO: ProcessCDR(1,14890958,1,1,2) [2025-04-12 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890958', 'tblTempUsageDetail_20' ) start [2025-04-12 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890958', 'tblTempUsageDetail_20' ) end [2025-04-12 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:30:24] Production.INFO: ==16828== Releasing lock... [2025-04-12 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-12 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:31:06 [end_date_ymd] => 2025-04-12 10:31:06 [RateCDR] => 1 ) [2025-04-12 10:31: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-04-12 07:31:06' and `end` < '2025-04-12 10:31: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-04-12 10:31:19] Production.INFO: count ==707 [2025-04-12 10:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:31:06 - End Time 2025-04-12 10:31:06 [2025-04-12 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890964', 'tblTempUsageDetail_20' ) start [2025-04-12 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890964', 'tblTempUsageDetail_20' ) end [2025-04-12 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890964', 'tblTempVendorCDR_20' ) start [2025-04-12 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890964', 'tblTempVendorCDR_20' ) end [2025-04-12 10:31:19] Production.INFO: ProcessCDR(1,14890964,1,1,2) [2025-04-12 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890964', 'tblTempUsageDetail_20' ) start [2025-04-12 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890964', 'tblTempUsageDetail_20' ) end [2025-04-12 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:31:22] Production.INFO: ==16900== Releasing lock... [2025-04-12 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:31:22] Production.INFO: 34 MB #Memory Used# [2025-04-12 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:32:05 [end_date_ymd] => 2025-04-12 10:32:05 [RateCDR] => 1 ) [2025-04-12 10:32: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-04-12 07:32:05' and `end` < '2025-04-12 10:32: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-04-12 10:32:18] Production.INFO: count ==707 [2025-04-12 10:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:32:05 - End Time 2025-04-12 10:32:05 [2025-04-12 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890969', 'tblTempUsageDetail_20' ) start [2025-04-12 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890969', 'tblTempUsageDetail_20' ) end [2025-04-12 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890969', 'tblTempVendorCDR_20' ) start [2025-04-12 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890969', 'tblTempVendorCDR_20' ) end [2025-04-12 10:32:18] Production.INFO: ProcessCDR(1,14890969,1,1,2) [2025-04-12 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890969', 'tblTempUsageDetail_20' ) start [2025-04-12 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890969', 'tblTempUsageDetail_20' ) end [2025-04-12 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:32:21] Production.INFO: ==16972== Releasing lock... [2025-04-12 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:32:21] Production.INFO: 34 MB #Memory Used# [2025-04-12 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:33:05 [end_date_ymd] => 2025-04-12 10:33:05 [RateCDR] => 1 ) [2025-04-12 10:33: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-04-12 07:33:05' and `end` < '2025-04-12 10:33: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-04-12 10:33:18] Production.INFO: count ==707 [2025-04-12 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:33:05 - End Time 2025-04-12 10:33:05 [2025-04-12 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890974', 'tblTempUsageDetail_20' ) start [2025-04-12 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890974', 'tblTempUsageDetail_20' ) end [2025-04-12 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890974', 'tblTempVendorCDR_20' ) start [2025-04-12 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890974', 'tblTempVendorCDR_20' ) end [2025-04-12 10:33:18] Production.INFO: ProcessCDR(1,14890974,1,1,2) [2025-04-12 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890974', 'tblTempUsageDetail_20' ) start [2025-04-12 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890974', 'tblTempUsageDetail_20' ) end [2025-04-12 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:33:21] Production.INFO: ==17054== Releasing lock... [2025-04-12 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:33:21] Production.INFO: 34 MB #Memory Used# [2025-04-12 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:34:05 [end_date_ymd] => 2025-04-12 10:34:05 [RateCDR] => 1 ) [2025-04-12 10:34: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-04-12 07:34:05' and `end` < '2025-04-12 10:34: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-04-12 10:34:18] Production.INFO: count ==719 [2025-04-12 10:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:34:05 - End Time 2025-04-12 10:34:05 [2025-04-12 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890979', 'tblTempUsageDetail_20' ) start [2025-04-12 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890979', 'tblTempUsageDetail_20' ) end [2025-04-12 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890979', 'tblTempVendorCDR_20' ) start [2025-04-12 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890979', 'tblTempVendorCDR_20' ) end [2025-04-12 10:34:18] Production.INFO: ProcessCDR(1,14890979,1,1,2) [2025-04-12 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890979', 'tblTempUsageDetail_20' ) start [2025-04-12 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890979', 'tblTempUsageDetail_20' ) end [2025-04-12 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:34:22] Production.INFO: ==17125== Releasing lock... [2025-04-12 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:35:05 [end_date_ymd] => 2025-04-12 10:35:05 [RateCDR] => 1 ) [2025-04-12 10:35: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-04-12 07:35:05' and `end` < '2025-04-12 10:35: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-04-12 10:35:18] Production.INFO: count ==721 [2025-04-12 10:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:35:05 - End Time 2025-04-12 10:35:05 [2025-04-12 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890984', 'tblTempUsageDetail_20' ) start [2025-04-12 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890984', 'tblTempUsageDetail_20' ) end [2025-04-12 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890984', 'tblTempVendorCDR_20' ) start [2025-04-12 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890984', 'tblTempVendorCDR_20' ) end [2025-04-12 10:35:18] Production.INFO: ProcessCDR(1,14890984,1,1,2) [2025-04-12 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890984', 'tblTempUsageDetail_20' ) start [2025-04-12 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890984', 'tblTempUsageDetail_20' ) end [2025-04-12 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:35:23] Production.INFO: ==17201== Releasing lock... [2025-04-12 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:35:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:36:05 [end_date_ymd] => 2025-04-12 10:36:05 [RateCDR] => 1 ) [2025-04-12 10:36: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-04-12 07:36:05' and `end` < '2025-04-12 10:36: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-04-12 10:36:18] Production.INFO: count ==725 [2025-04-12 10:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:36:05 - End Time 2025-04-12 10:36:05 [2025-04-12 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890989', 'tblTempUsageDetail_20' ) start [2025-04-12 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890989', 'tblTempUsageDetail_20' ) end [2025-04-12 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890989', 'tblTempVendorCDR_20' ) start [2025-04-12 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890989', 'tblTempVendorCDR_20' ) end [2025-04-12 10:36:18] Production.INFO: ProcessCDR(1,14890989,1,1,2) [2025-04-12 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890989', 'tblTempUsageDetail_20' ) start [2025-04-12 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890989', 'tblTempUsageDetail_20' ) end [2025-04-12 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:36:21] Production.INFO: ==17270== Releasing lock... [2025-04-12 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:37:05 [end_date_ymd] => 2025-04-12 10:37:05 [RateCDR] => 1 ) [2025-04-12 10:37: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-04-12 07:37:05' and `end` < '2025-04-12 10:37: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-04-12 10:37:18] Production.INFO: count ==731 [2025-04-12 10:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:37:05 - End Time 2025-04-12 10:37:05 [2025-04-12 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890994', 'tblTempUsageDetail_20' ) start [2025-04-12 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890994', 'tblTempUsageDetail_20' ) end [2025-04-12 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890994', 'tblTempVendorCDR_20' ) start [2025-04-12 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890994', 'tblTempVendorCDR_20' ) end [2025-04-12 10:37:18] Production.INFO: ProcessCDR(1,14890994,1,1,2) [2025-04-12 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890994', 'tblTempUsageDetail_20' ) start [2025-04-12 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890994', 'tblTempUsageDetail_20' ) end [2025-04-12 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:37:22] Production.INFO: ==17341== Releasing lock... [2025-04-12 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:37:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:38:05 [end_date_ymd] => 2025-04-12 10:38:05 [RateCDR] => 1 ) [2025-04-12 10:38: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-04-12 07:38:05' and `end` < '2025-04-12 10:38: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-04-12 10:38:18] Production.INFO: count ==736 [2025-04-12 10:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:38:05 - End Time 2025-04-12 10:38:05 [2025-04-12 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890999', 'tblTempUsageDetail_20' ) start [2025-04-12 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14890999', 'tblTempUsageDetail_20' ) end [2025-04-12 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890999', 'tblTempVendorCDR_20' ) start [2025-04-12 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14890999', 'tblTempVendorCDR_20' ) end [2025-04-12 10:38:19] Production.INFO: ProcessCDR(1,14890999,1,1,2) [2025-04-12 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14890999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14890999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14890999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14890999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890999', 'tblTempUsageDetail_20' ) start [2025-04-12 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14890999', 'tblTempUsageDetail_20' ) end [2025-04-12 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:38:22] Production.INFO: ==17414== Releasing lock... [2025-04-12 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:39:05 [end_date_ymd] => 2025-04-12 10:39:05 [RateCDR] => 1 ) [2025-04-12 10:39: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-04-12 07:39:05' and `end` < '2025-04-12 10:39: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-04-12 10:39:18] Production.INFO: count ==735 [2025-04-12 10:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:39:05 - End Time 2025-04-12 10:39:05 [2025-04-12 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891004', 'tblTempUsageDetail_20' ) start [2025-04-12 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891004', 'tblTempUsageDetail_20' ) end [2025-04-12 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891004', 'tblTempVendorCDR_20' ) start [2025-04-12 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891004', 'tblTempVendorCDR_20' ) end [2025-04-12 10:39:18] Production.INFO: ProcessCDR(1,14891004,1,1,2) [2025-04-12 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891004', 'tblTempUsageDetail_20' ) start [2025-04-12 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891004', 'tblTempUsageDetail_20' ) end [2025-04-12 10:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:39:21] Production.INFO: ==17489== Releasing lock... [2025-04-12 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:39:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:40:06 [end_date_ymd] => 2025-04-12 10:40:06 [RateCDR] => 1 ) [2025-04-12 10:40: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-04-12 07:40:06' and `end` < '2025-04-12 10:40: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-04-12 10:40:19] Production.INFO: count ==739 [2025-04-12 10:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:40:06 - End Time 2025-04-12 10:40:06 [2025-04-12 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891010', 'tblTempUsageDetail_20' ) start [2025-04-12 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891010', 'tblTempUsageDetail_20' ) end [2025-04-12 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891010', 'tblTempVendorCDR_20' ) start [2025-04-12 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891010', 'tblTempVendorCDR_20' ) end [2025-04-12 10:40:19] Production.INFO: ProcessCDR(1,14891010,1,1,2) [2025-04-12 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891010', 'tblTempUsageDetail_20' ) start [2025-04-12 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891010', 'tblTempUsageDetail_20' ) end [2025-04-12 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:40:24] Production.INFO: ==17564== Releasing lock... [2025-04-12 10:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:40:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-12 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:41:05 [end_date_ymd] => 2025-04-12 10:41:05 [RateCDR] => 1 ) [2025-04-12 10:41: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-04-12 07:41:05' and `end` < '2025-04-12 10:41: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-04-12 10:41:18] Production.INFO: count ==772 [2025-04-12 10:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:41:05 - End Time 2025-04-12 10:41:05 [2025-04-12 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891015', 'tblTempUsageDetail_20' ) start [2025-04-12 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891015', 'tblTempUsageDetail_20' ) end [2025-04-12 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891015', 'tblTempVendorCDR_20' ) start [2025-04-12 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891015', 'tblTempVendorCDR_20' ) end [2025-04-12 10:41:18] Production.INFO: ProcessCDR(1,14891015,1,1,2) [2025-04-12 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891015', 'tblTempUsageDetail_20' ) start [2025-04-12 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891015', 'tblTempUsageDetail_20' ) end [2025-04-12 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:41:23] Production.INFO: ==17640== Releasing lock... [2025-04-12 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:41:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:42:04 [end_date_ymd] => 2025-04-12 10:42:04 [RateCDR] => 1 ) [2025-04-12 10:42: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-04-12 07:42:04' and `end` < '2025-04-12 10:42: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-04-12 10:42:17] Production.INFO: count ==773 [2025-04-12 10:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:42:04 - End Time 2025-04-12 10:42:04 [2025-04-12 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891020', 'tblTempUsageDetail_20' ) start [2025-04-12 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891020', 'tblTempUsageDetail_20' ) end [2025-04-12 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891020', 'tblTempVendorCDR_20' ) start [2025-04-12 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891020', 'tblTempVendorCDR_20' ) end [2025-04-12 10:42:18] Production.INFO: ProcessCDR(1,14891020,1,1,2) [2025-04-12 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891020', 'tblTempUsageDetail_20' ) start [2025-04-12 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891020', 'tblTempUsageDetail_20' ) end [2025-04-12 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:42:23] Production.INFO: ==17755== Releasing lock... [2025-04-12 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:42:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:43:05 [end_date_ymd] => 2025-04-12 10:43:05 [RateCDR] => 1 ) [2025-04-12 10:43: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-04-12 07:43:05' and `end` < '2025-04-12 10:43: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-04-12 10:43:18] Production.INFO: count ==774 [2025-04-12 10:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:43:05 - End Time 2025-04-12 10:43:05 [2025-04-12 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891025', 'tblTempUsageDetail_20' ) start [2025-04-12 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891025', 'tblTempUsageDetail_20' ) end [2025-04-12 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891025', 'tblTempVendorCDR_20' ) start [2025-04-12 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891025', 'tblTempVendorCDR_20' ) end [2025-04-12 10:43:18] Production.INFO: ProcessCDR(1,14891025,1,1,2) [2025-04-12 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891025', 'tblTempUsageDetail_20' ) start [2025-04-12 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891025', 'tblTempUsageDetail_20' ) end [2025-04-12 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:43:23] Production.INFO: ==17829== Releasing lock... [2025-04-12 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:43:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:44:05 [end_date_ymd] => 2025-04-12 10:44:05 [RateCDR] => 1 ) [2025-04-12 10:44: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-04-12 07:44:05' and `end` < '2025-04-12 10:44: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-04-12 10:44:18] Production.INFO: count ==775 [2025-04-12 10:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:44:05 - End Time 2025-04-12 10:44:05 [2025-04-12 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891030', 'tblTempUsageDetail_20' ) start [2025-04-12 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891030', 'tblTempUsageDetail_20' ) end [2025-04-12 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891030', 'tblTempVendorCDR_20' ) start [2025-04-12 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891030', 'tblTempVendorCDR_20' ) end [2025-04-12 10:44:19] Production.INFO: ProcessCDR(1,14891030,1,1,2) [2025-04-12 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891030', 'tblTempUsageDetail_20' ) start [2025-04-12 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891030', 'tblTempUsageDetail_20' ) end [2025-04-12 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:44:23] Production.INFO: ==17902== Releasing lock... [2025-04-12 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:44:23] Production.INFO: 34 MB #Memory Used# [2025-04-12 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:45:05 [end_date_ymd] => 2025-04-12 10:45:05 [RateCDR] => 1 ) [2025-04-12 10:45: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-04-12 07:45:05' and `end` < '2025-04-12 10:45: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-04-12 10:45:18] Production.INFO: count ==780 [2025-04-12 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:45:05 - End Time 2025-04-12 10:45:05 [2025-04-12 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891035', 'tblTempUsageDetail_20' ) start [2025-04-12 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891035', 'tblTempUsageDetail_20' ) end [2025-04-12 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891035', 'tblTempVendorCDR_20' ) start [2025-04-12 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891035', 'tblTempVendorCDR_20' ) end [2025-04-12 10:45:18] Production.INFO: ProcessCDR(1,14891035,1,1,2) [2025-04-12 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891035', 'tblTempUsageDetail_20' ) start [2025-04-12 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891035', 'tblTempUsageDetail_20' ) end [2025-04-12 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:45:23] Production.INFO: ==17981== Releasing lock... [2025-04-12 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:46:05 [end_date_ymd] => 2025-04-12 10:46:05 [RateCDR] => 1 ) [2025-04-12 10:46: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-04-12 07:46:05' and `end` < '2025-04-12 10:46: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-04-12 10:46:18] Production.INFO: count ==781 [2025-04-12 10:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:46:05 - End Time 2025-04-12 10:46:05 [2025-04-12 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891040', 'tblTempUsageDetail_20' ) start [2025-04-12 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891040', 'tblTempUsageDetail_20' ) end [2025-04-12 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891040', 'tblTempVendorCDR_20' ) start [2025-04-12 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891040', 'tblTempVendorCDR_20' ) end [2025-04-12 10:46:19] Production.INFO: ProcessCDR(1,14891040,1,1,2) [2025-04-12 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891040', 'tblTempUsageDetail_20' ) start [2025-04-12 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891040', 'tblTempUsageDetail_20' ) end [2025-04-12 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:46:24] Production.INFO: ==18051== Releasing lock... [2025-04-12 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:46:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-12 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:47:05 [end_date_ymd] => 2025-04-12 10:47:05 [RateCDR] => 1 ) [2025-04-12 10:47: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-04-12 07:47:05' and `end` < '2025-04-12 10:47: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-04-12 10:47:18] Production.INFO: count ==783 [2025-04-12 10:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:47:05 - End Time 2025-04-12 10:47:05 [2025-04-12 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891045', 'tblTempUsageDetail_20' ) start [2025-04-12 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891045', 'tblTempUsageDetail_20' ) end [2025-04-12 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891045', 'tblTempVendorCDR_20' ) start [2025-04-12 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891045', 'tblTempVendorCDR_20' ) end [2025-04-12 10:47:18] Production.INFO: ProcessCDR(1,14891045,1,1,2) [2025-04-12 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891045', 'tblTempUsageDetail_20' ) start [2025-04-12 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891045', 'tblTempUsageDetail_20' ) end [2025-04-12 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:47:23] Production.INFO: ==18131== Releasing lock... [2025-04-12 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:47:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:48:05 [end_date_ymd] => 2025-04-12 10:48:05 [RateCDR] => 1 ) [2025-04-12 10:48: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-04-12 07:48:05' and `end` < '2025-04-12 10:48: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-04-12 10:48:18] Production.INFO: count ==785 [2025-04-12 10:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:48:05 - End Time 2025-04-12 10:48:05 [2025-04-12 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891050', 'tblTempUsageDetail_20' ) start [2025-04-12 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891050', 'tblTempUsageDetail_20' ) end [2025-04-12 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891050', 'tblTempVendorCDR_20' ) start [2025-04-12 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891050', 'tblTempVendorCDR_20' ) end [2025-04-12 10:48:18] Production.INFO: ProcessCDR(1,14891050,1,1,2) [2025-04-12 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891050', 'tblTempUsageDetail_20' ) start [2025-04-12 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891050', 'tblTempUsageDetail_20' ) end [2025-04-12 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:48:23] Production.INFO: ==18214== Releasing lock... [2025-04-12 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:49:05 [end_date_ymd] => 2025-04-12 10:49:05 [RateCDR] => 1 ) [2025-04-12 10:49: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-04-12 07:49:05' and `end` < '2025-04-12 10:49: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-04-12 10:49:18] Production.INFO: count ==786 [2025-04-12 10:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:49:05 - End Time 2025-04-12 10:49:05 [2025-04-12 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891055', 'tblTempUsageDetail_20' ) start [2025-04-12 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891055', 'tblTempUsageDetail_20' ) end [2025-04-12 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891055', 'tblTempVendorCDR_20' ) start [2025-04-12 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891055', 'tblTempVendorCDR_20' ) end [2025-04-12 10:49:18] Production.INFO: ProcessCDR(1,14891055,1,1,2) [2025-04-12 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891055', 'tblTempUsageDetail_20' ) start [2025-04-12 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891055', 'tblTempUsageDetail_20' ) end [2025-04-12 10:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:49:23] Production.INFO: ==18291== Releasing lock... [2025-04-12 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:49:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:50:06 [end_date_ymd] => 2025-04-12 10:50:06 [RateCDR] => 1 ) [2025-04-12 10:50: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-04-12 07:50:06' and `end` < '2025-04-12 10:50: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-04-12 10:50:19] Production.INFO: count ==790 [2025-04-12 10:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:50:06 - End Time 2025-04-12 10:50:06 [2025-04-12 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891061', 'tblTempUsageDetail_20' ) start [2025-04-12 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891061', 'tblTempUsageDetail_20' ) end [2025-04-12 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891061', 'tblTempVendorCDR_20' ) start [2025-04-12 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891061', 'tblTempVendorCDR_20' ) end [2025-04-12 10:50:19] Production.INFO: ProcessCDR(1,14891061,1,1,2) [2025-04-12 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891061', 'tblTempUsageDetail_20' ) start [2025-04-12 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891061', 'tblTempUsageDetail_20' ) end [2025-04-12 10:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:50:24] Production.INFO: ==18362== Releasing lock... [2025-04-12 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:50:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:51:05 [end_date_ymd] => 2025-04-12 10:51:05 [RateCDR] => 1 ) [2025-04-12 10:51: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-04-12 07:51:05' and `end` < '2025-04-12 10:51: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-04-12 10:51:17] Production.INFO: count ==844 [2025-04-12 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:51:05 - End Time 2025-04-12 10:51:05 [2025-04-12 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891066', 'tblTempUsageDetail_20' ) start [2025-04-12 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891066', 'tblTempUsageDetail_20' ) end [2025-04-12 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891066', 'tblTempVendorCDR_20' ) start [2025-04-12 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891066', 'tblTempVendorCDR_20' ) end [2025-04-12 10:51:18] Production.INFO: ProcessCDR(1,14891066,1,1,2) [2025-04-12 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891066', 'tblTempUsageDetail_20' ) start [2025-04-12 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891066', 'tblTempUsageDetail_20' ) end [2025-04-12 10:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:51:22] Production.INFO: ==18433== Releasing lock... [2025-04-12 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:52:05 [end_date_ymd] => 2025-04-12 10:52:05 [RateCDR] => 1 ) [2025-04-12 10:52: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-04-12 07:52:05' and `end` < '2025-04-12 10:52: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-04-12 10:52:18] Production.INFO: count ==846 [2025-04-12 10:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:52:05 - End Time 2025-04-12 10:52:05 [2025-04-12 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891071', 'tblTempUsageDetail_20' ) start [2025-04-12 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891071', 'tblTempUsageDetail_20' ) end [2025-04-12 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891071', 'tblTempVendorCDR_20' ) start [2025-04-12 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891071', 'tblTempVendorCDR_20' ) end [2025-04-12 10:52:18] Production.INFO: ProcessCDR(1,14891071,1,1,2) [2025-04-12 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891071', 'tblTempUsageDetail_20' ) start [2025-04-12 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891071', 'tblTempUsageDetail_20' ) end [2025-04-12 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:52:22] Production.INFO: ==18509== Releasing lock... [2025-04-12 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:53:05 [end_date_ymd] => 2025-04-12 10:53:05 [RateCDR] => 1 ) [2025-04-12 10:53: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-04-12 07:53:05' and `end` < '2025-04-12 10:53: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-04-12 10:53:18] Production.INFO: count ==849 [2025-04-12 10:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:53:05 - End Time 2025-04-12 10:53:05 [2025-04-12 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891076', 'tblTempUsageDetail_20' ) start [2025-04-12 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891076', 'tblTempUsageDetail_20' ) end [2025-04-12 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891076', 'tblTempVendorCDR_20' ) start [2025-04-12 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891076', 'tblTempVendorCDR_20' ) end [2025-04-12 10:53:18] Production.INFO: ProcessCDR(1,14891076,1,1,2) [2025-04-12 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891076', 'tblTempUsageDetail_20' ) start [2025-04-12 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891076', 'tblTempUsageDetail_20' ) end [2025-04-12 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:53:23] Production.INFO: ==18585== Releasing lock... [2025-04-12 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:53:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-12 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:54:06 [end_date_ymd] => 2025-04-12 10:54:06 [RateCDR] => 1 ) [2025-04-12 10:54: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-04-12 07:54:06' and `end` < '2025-04-12 10:54: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-04-12 10:54:19] Production.INFO: count ==854 [2025-04-12 10:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:54:06 - End Time 2025-04-12 10:54:06 [2025-04-12 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891081', 'tblTempUsageDetail_20' ) start [2025-04-12 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891081', 'tblTempUsageDetail_20' ) end [2025-04-12 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891081', 'tblTempVendorCDR_20' ) start [2025-04-12 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891081', 'tblTempVendorCDR_20' ) end [2025-04-12 10:54:19] Production.INFO: ProcessCDR(1,14891081,1,1,2) [2025-04-12 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891081', 'tblTempUsageDetail_20' ) start [2025-04-12 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891081', 'tblTempUsageDetail_20' ) end [2025-04-12 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:54:24] Production.INFO: ==18660== Releasing lock... [2025-04-12 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:54:24] Production.INFO: 35 MB #Memory Used# [2025-04-12 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:55:06 [end_date_ymd] => 2025-04-12 10:55:06 [RateCDR] => 1 ) [2025-04-12 10:55: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-04-12 07:55:06' and `end` < '2025-04-12 10:55: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-04-12 10:55:19] Production.INFO: count ==867 [2025-04-12 10:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:55:06 - End Time 2025-04-12 10:55:06 [2025-04-12 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891086', 'tblTempUsageDetail_20' ) start [2025-04-12 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891086', 'tblTempUsageDetail_20' ) end [2025-04-12 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891086', 'tblTempVendorCDR_20' ) start [2025-04-12 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891086', 'tblTempVendorCDR_20' ) end [2025-04-12 10:55:19] Production.INFO: ProcessCDR(1,14891086,1,1,2) [2025-04-12 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891086', 'tblTempUsageDetail_20' ) start [2025-04-12 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891086', 'tblTempUsageDetail_20' ) end [2025-04-12 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:55:24] Production.INFO: ==18730== Releasing lock... [2025-04-12 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:55:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-12 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:56:06 [end_date_ymd] => 2025-04-12 10:56:06 [RateCDR] => 1 ) [2025-04-12 10:56: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-04-12 07:56:06' and `end` < '2025-04-12 10:56: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-04-12 10:56:19] Production.INFO: count ==872 [2025-04-12 10:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:56:06 - End Time 2025-04-12 10:56:06 [2025-04-12 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891091', 'tblTempUsageDetail_20' ) start [2025-04-12 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891091', 'tblTempUsageDetail_20' ) end [2025-04-12 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891091', 'tblTempVendorCDR_20' ) start [2025-04-12 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891091', 'tblTempVendorCDR_20' ) end [2025-04-12 10:56:19] Production.INFO: ProcessCDR(1,14891091,1,1,2) [2025-04-12 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891091', 'tblTempUsageDetail_20' ) start [2025-04-12 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891091', 'tblTempUsageDetail_20' ) end [2025-04-12 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:56:24] Production.INFO: ==18808== Releasing lock... [2025-04-12 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:56:24] Production.INFO: 35 MB #Memory Used# [2025-04-12 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:57:05 [end_date_ymd] => 2025-04-12 10:57:05 [RateCDR] => 1 ) [2025-04-12 10:57: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-04-12 07:57:05' and `end` < '2025-04-12 10:57: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-04-12 10:57:18] Production.INFO: count ==873 [2025-04-12 10:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:57:05 - End Time 2025-04-12 10:57:05 [2025-04-12 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891096', 'tblTempUsageDetail_20' ) start [2025-04-12 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891096', 'tblTempUsageDetail_20' ) end [2025-04-12 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891096', 'tblTempVendorCDR_20' ) start [2025-04-12 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891096', 'tblTempVendorCDR_20' ) end [2025-04-12 10:57:18] Production.INFO: ProcessCDR(1,14891096,1,1,2) [2025-04-12 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891096', 'tblTempUsageDetail_20' ) start [2025-04-12 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891096', 'tblTempUsageDetail_20' ) end [2025-04-12 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:57:23] Production.INFO: ==18878== Releasing lock... [2025-04-12 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:57:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:58:05 [end_date_ymd] => 2025-04-12 10:58:05 [RateCDR] => 1 ) [2025-04-12 10:58: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-04-12 07:58:05' and `end` < '2025-04-12 10:58: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-04-12 10:58:18] Production.INFO: count ==874 [2025-04-12 10:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 07:58:05 - End Time 2025-04-12 10:58:05 [2025-04-12 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891101', 'tblTempUsageDetail_20' ) start [2025-04-12 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891101', 'tblTempUsageDetail_20' ) end [2025-04-12 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891101', 'tblTempVendorCDR_20' ) start [2025-04-12 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891101', 'tblTempVendorCDR_20' ) end [2025-04-12 10:58:19] Production.INFO: ProcessCDR(1,14891101,1,1,2) [2025-04-12 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891101', 'tblTempUsageDetail_20' ) start [2025-04-12 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891101', 'tblTempUsageDetail_20' ) end [2025-04-12 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:58:23] Production.INFO: ==18991== Releasing lock... [2025-04-12 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 07:59:06 [end_date_ymd] => 2025-04-12 10:59:06 [RateCDR] => 1 ) [2025-04-12 10:59: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-04-12 07:59:06' and `end` < '2025-04-12 10:59: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-04-12 10:59:18] Production.INFO: count ==876 [2025-04-12 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 07:59:06 - End Time 2025-04-12 10:59:06 [2025-04-12 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891106', 'tblTempUsageDetail_20' ) start [2025-04-12 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891106', 'tblTempUsageDetail_20' ) end [2025-04-12 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891106', 'tblTempVendorCDR_20' ) start [2025-04-12 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891106', 'tblTempVendorCDR_20' ) end [2025-04-12 10:59:19] Production.INFO: ProcessCDR(1,14891106,1,1,2) [2025-04-12 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891106', 'tblTempUsageDetail_20' ) start [2025-04-12 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891106', 'tblTempUsageDetail_20' ) end [2025-04-12 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 10:59:24] Production.INFO: ==19067== Releasing lock... [2025-04-12 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 10:59:24] Production.INFO: 35 MB #Memory Used# [2025-04-12 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:00:07 [end_date_ymd] => 2025-04-12 11:00:07 [RateCDR] => 1 ) [2025-04-12 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 08:00:07' and `end` < '2025-04-12 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 11:00:19] Production.INFO: count ==891 [2025-04-12 11:00:20] Production.ERROR: pbx CDR StartTime 2025-04-12 08:00:07 - End Time 2025-04-12 11:00:07 [2025-04-12 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891111', 'tblTempUsageDetail_20' ) start [2025-04-12 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891111', 'tblTempUsageDetail_20' ) end [2025-04-12 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891111', 'tblTempVendorCDR_20' ) start [2025-04-12 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891111', 'tblTempVendorCDR_20' ) end [2025-04-12 11:00:20] Production.INFO: ProcessCDR(1,14891111,1,1,2) [2025-04-12 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891111', 'tblTempUsageDetail_20' ) start [2025-04-12 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891111', 'tblTempUsageDetail_20' ) end [2025-04-12 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:00:25] Production.INFO: ==19153== Releasing lock... [2025-04-12 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:00:25] Production.INFO: 35 MB #Memory Used# [2025-04-12 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:01:05 [end_date_ymd] => 2025-04-12 11:01:05 [RateCDR] => 1 ) [2025-04-12 11:01: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-04-12 08:01:05' and `end` < '2025-04-12 11:01: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-04-12 11:01:18] Production.INFO: count ==940 [2025-04-12 11:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:01:05 - End Time 2025-04-12 11:01:05 [2025-04-12 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891117', 'tblTempUsageDetail_20' ) start [2025-04-12 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891117', 'tblTempUsageDetail_20' ) end [2025-04-12 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891117', 'tblTempVendorCDR_20' ) start [2025-04-12 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891117', 'tblTempVendorCDR_20' ) end [2025-04-12 11:01:18] Production.INFO: ProcessCDR(1,14891117,1,1,2) [2025-04-12 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891117', 'tblTempUsageDetail_20' ) start [2025-04-12 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891117', 'tblTempUsageDetail_20' ) end [2025-04-12 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:01:23] Production.INFO: ==19282== Releasing lock... [2025-04-12 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:02:06 [end_date_ymd] => 2025-04-12 11:02:06 [RateCDR] => 1 ) [2025-04-12 11:02: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-04-12 08:02:06' and `end` < '2025-04-12 11:02: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-04-12 11:02:19] Production.INFO: count ==942 [2025-04-12 11:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:02:06 - End Time 2025-04-12 11:02:06 [2025-04-12 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891122', 'tblTempUsageDetail_20' ) start [2025-04-12 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891122', 'tblTempUsageDetail_20' ) end [2025-04-12 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891122', 'tblTempVendorCDR_20' ) start [2025-04-12 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891122', 'tblTempVendorCDR_20' ) end [2025-04-12 11:02:19] Production.INFO: ProcessCDR(1,14891122,1,1,2) [2025-04-12 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891122', 'tblTempUsageDetail_20' ) start [2025-04-12 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891122', 'tblTempUsageDetail_20' ) end [2025-04-12 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:02:25] Production.INFO: ==19395== Releasing lock... [2025-04-12 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:02:25] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:03:05 [end_date_ymd] => 2025-04-12 11:03:05 [RateCDR] => 1 ) [2025-04-12 11:03: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-04-12 08:03:05' and `end` < '2025-04-12 11:03: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-04-12 11:03:18] Production.INFO: count ==943 [2025-04-12 11:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:03:05 - End Time 2025-04-12 11:03:05 [2025-04-12 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891127', 'tblTempUsageDetail_20' ) start [2025-04-12 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891127', 'tblTempUsageDetail_20' ) end [2025-04-12 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891127', 'tblTempVendorCDR_20' ) start [2025-04-12 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891127', 'tblTempVendorCDR_20' ) end [2025-04-12 11:03:18] Production.INFO: ProcessCDR(1,14891127,1,1,2) [2025-04-12 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891127', 'tblTempUsageDetail_20' ) start [2025-04-12 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891127', 'tblTempUsageDetail_20' ) end [2025-04-12 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:03:24] Production.INFO: ==19467== Releasing lock... [2025-04-12 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-12 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:04:05 [end_date_ymd] => 2025-04-12 11:04:05 [RateCDR] => 1 ) [2025-04-12 11:04: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-04-12 08:04:05' and `end` < '2025-04-12 11:04: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-04-12 11:04:18] Production.INFO: count ==944 [2025-04-12 11:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:04:05 - End Time 2025-04-12 11:04:05 [2025-04-12 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891132', 'tblTempUsageDetail_20' ) start [2025-04-12 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891132', 'tblTempUsageDetail_20' ) end [2025-04-12 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891132', 'tblTempVendorCDR_20' ) start [2025-04-12 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891132', 'tblTempVendorCDR_20' ) end [2025-04-12 11:04:19] Production.INFO: ProcessCDR(1,14891132,1,1,2) [2025-04-12 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891132', 'tblTempUsageDetail_20' ) start [2025-04-12 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891132', 'tblTempUsageDetail_20' ) end [2025-04-12 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:04:24] Production.INFO: ==19544== Releasing lock... [2025-04-12 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:04:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-12 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:05:05 [end_date_ymd] => 2025-04-12 11:05:05 [RateCDR] => 1 ) [2025-04-12 11:05: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-04-12 08:05:05' and `end` < '2025-04-12 11:05: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-04-12 11:05:18] Production.INFO: count ==945 [2025-04-12 11:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:05:05 - End Time 2025-04-12 11:05:05 [2025-04-12 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891137', 'tblTempUsageDetail_20' ) start [2025-04-12 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891137', 'tblTempUsageDetail_20' ) end [2025-04-12 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891137', 'tblTempVendorCDR_20' ) start [2025-04-12 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891137', 'tblTempVendorCDR_20' ) end [2025-04-12 11:05:18] Production.INFO: ProcessCDR(1,14891137,1,1,2) [2025-04-12 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891137', 'tblTempUsageDetail_20' ) start [2025-04-12 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891137', 'tblTempUsageDetail_20' ) end [2025-04-12 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:05:23] Production.INFO: ==19698== Releasing lock... [2025-04-12 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:05:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-12 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:06:06 [end_date_ymd] => 2025-04-12 11:06:06 [RateCDR] => 1 ) [2025-04-12 11:06: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-04-12 08:06:06' and `end` < '2025-04-12 11:06: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-04-12 11:06:19] Production.INFO: count ==947 [2025-04-12 11:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:06:06 - End Time 2025-04-12 11:06:06 [2025-04-12 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891142', 'tblTempUsageDetail_20' ) start [2025-04-12 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891142', 'tblTempUsageDetail_20' ) end [2025-04-12 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891142', 'tblTempVendorCDR_20' ) start [2025-04-12 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891142', 'tblTempVendorCDR_20' ) end [2025-04-12 11:06:19] Production.INFO: ProcessCDR(1,14891142,1,1,2) [2025-04-12 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891142', 'tblTempUsageDetail_20' ) start [2025-04-12 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891142', 'tblTempUsageDetail_20' ) end [2025-04-12 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:06:25] Production.INFO: ==19774== Releasing lock... [2025-04-12 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:06:25] Production.INFO: 36 MB #Memory Used# [2025-04-12 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:07:05 [end_date_ymd] => 2025-04-12 11:07:05 [RateCDR] => 1 ) [2025-04-12 11:07: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-04-12 08:07:05' and `end` < '2025-04-12 11:07: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-04-12 11:07:18] Production.INFO: count ==952 [2025-04-12 11:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:07:05 - End Time 2025-04-12 11:07:05 [2025-04-12 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891147', 'tblTempUsageDetail_20' ) start [2025-04-12 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891147', 'tblTempUsageDetail_20' ) end [2025-04-12 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891147', 'tblTempVendorCDR_20' ) start [2025-04-12 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891147', 'tblTempVendorCDR_20' ) end [2025-04-12 11:07:19] Production.INFO: ProcessCDR(1,14891147,1,1,2) [2025-04-12 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891147', 'tblTempUsageDetail_20' ) start [2025-04-12 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891147', 'tblTempUsageDetail_20' ) end [2025-04-12 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:07:24] Production.INFO: ==19844== Releasing lock... [2025-04-12 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:07:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-12 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:08:05 [end_date_ymd] => 2025-04-12 11:08:05 [RateCDR] => 1 ) [2025-04-12 11:08: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-04-12 08:08:05' and `end` < '2025-04-12 11:08: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-04-12 11:08:18] Production.INFO: count ==954 [2025-04-12 11:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:08:05 - End Time 2025-04-12 11:08:05 [2025-04-12 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891152', 'tblTempUsageDetail_20' ) start [2025-04-12 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891152', 'tblTempUsageDetail_20' ) end [2025-04-12 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891152', 'tblTempVendorCDR_20' ) start [2025-04-12 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891152', 'tblTempVendorCDR_20' ) end [2025-04-12 11:08:19] Production.INFO: ProcessCDR(1,14891152,1,1,2) [2025-04-12 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891152', 'tblTempUsageDetail_20' ) start [2025-04-12 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891152', 'tblTempUsageDetail_20' ) end [2025-04-12 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:08:24] Production.INFO: ==19994== Releasing lock... [2025-04-12 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:08:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-12 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:09:05 [end_date_ymd] => 2025-04-12 11:09:05 [RateCDR] => 1 ) [2025-04-12 11:09: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-04-12 08:09:05' and `end` < '2025-04-12 11:09: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-04-12 11:09:18] Production.INFO: count ==955 [2025-04-12 11:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:09:05 - End Time 2025-04-12 11:09:05 [2025-04-12 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891157', 'tblTempUsageDetail_20' ) start [2025-04-12 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891157', 'tblTempUsageDetail_20' ) end [2025-04-12 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891157', 'tblTempVendorCDR_20' ) start [2025-04-12 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891157', 'tblTempVendorCDR_20' ) end [2025-04-12 11:09:18] Production.INFO: ProcessCDR(1,14891157,1,1,2) [2025-04-12 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891157', 'tblTempUsageDetail_20' ) start [2025-04-12 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891157', 'tblTempUsageDetail_20' ) end [2025-04-12 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:09:23] Production.INFO: ==20071== Releasing lock... [2025-04-12 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:09:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-12 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:10:06 [end_date_ymd] => 2025-04-12 11:10:06 [RateCDR] => 1 ) [2025-04-12 11:10: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-04-12 08:10:06' and `end` < '2025-04-12 11:10: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-04-12 11:10:19] Production.INFO: count ==965 [2025-04-12 11:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 08:10:06 - End Time 2025-04-12 11:10:06 [2025-04-12 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891162', 'tblTempUsageDetail_20' ) start [2025-04-12 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891162', 'tblTempUsageDetail_20' ) end [2025-04-12 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891162', 'tblTempVendorCDR_20' ) start [2025-04-12 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891162', 'tblTempVendorCDR_20' ) end [2025-04-12 11:10:20] Production.INFO: ProcessCDR(1,14891162,1,1,2) [2025-04-12 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891162', 'tblTempUsageDetail_20' ) start [2025-04-12 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891162', 'tblTempUsageDetail_20' ) end [2025-04-12 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:10:25] Production.INFO: ==20144== Releasing lock... [2025-04-12 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-12 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:11:05 [end_date_ymd] => 2025-04-12 11:11:05 [RateCDR] => 1 ) [2025-04-12 11:11: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-04-12 08:11:05' and `end` < '2025-04-12 11:11: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-04-12 11:11:18] Production.INFO: count ==1015 [2025-04-12 11:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:11:05 - End Time 2025-04-12 11:11:05 [2025-04-12 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891168', 'tblTempUsageDetail_20' ) start [2025-04-12 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891168', 'tblTempUsageDetail_20' ) end [2025-04-12 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891168', 'tblTempVendorCDR_20' ) start [2025-04-12 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891168', 'tblTempVendorCDR_20' ) end [2025-04-12 11:11:18] Production.INFO: ProcessCDR(1,14891168,1,1,2) [2025-04-12 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891168', 'tblTempUsageDetail_20' ) start [2025-04-12 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891168', 'tblTempUsageDetail_20' ) end [2025-04-12 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:11:23] Production.INFO: ==20223== Releasing lock... [2025-04-12 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:12:05 [end_date_ymd] => 2025-04-12 11:12:05 [RateCDR] => 1 ) [2025-04-12 11:12: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-04-12 08:12:05' and `end` < '2025-04-12 11:12: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-04-12 11:12:18] Production.INFO: count ==1017 [2025-04-12 11:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:12:05 - End Time 2025-04-12 11:12:05 [2025-04-12 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891173', 'tblTempUsageDetail_20' ) start [2025-04-12 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891173', 'tblTempUsageDetail_20' ) end [2025-04-12 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891173', 'tblTempVendorCDR_20' ) start [2025-04-12 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891173', 'tblTempVendorCDR_20' ) end [2025-04-12 11:12:19] Production.INFO: ProcessCDR(1,14891173,1,1,2) [2025-04-12 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891173', 'tblTempUsageDetail_20' ) start [2025-04-12 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891173', 'tblTempUsageDetail_20' ) end [2025-04-12 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:12:23] Production.INFO: ==20372== Releasing lock... [2025-04-12 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:12:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:13:05 [end_date_ymd] => 2025-04-12 11:13:05 [RateCDR] => 1 ) [2025-04-12 11:13: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-04-12 08:13:05' and `end` < '2025-04-12 11:13: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-04-12 11:13:18] Production.INFO: count ==1014 [2025-04-12 11:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:13:05 - End Time 2025-04-12 11:13:05 [2025-04-12 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891178', 'tblTempUsageDetail_20' ) start [2025-04-12 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891178', 'tblTempUsageDetail_20' ) end [2025-04-12 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891178', 'tblTempVendorCDR_20' ) start [2025-04-12 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891178', 'tblTempVendorCDR_20' ) end [2025-04-12 11:13:18] Production.INFO: ProcessCDR(1,14891178,1,1,2) [2025-04-12 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891178', 'tblTempUsageDetail_20' ) start [2025-04-12 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891178', 'tblTempUsageDetail_20' ) end [2025-04-12 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:13:22] Production.INFO: ==20481== Releasing lock... [2025-04-12 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:13:22] Production.INFO: 36 MB #Memory Used# [2025-04-12 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:14:05 [end_date_ymd] => 2025-04-12 11:14:05 [RateCDR] => 1 ) [2025-04-12 11:14: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-04-12 08:14:05' and `end` < '2025-04-12 11:14: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-04-12 11:14:18] Production.INFO: count ==1025 [2025-04-12 11:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:14:05 - End Time 2025-04-12 11:14:05 [2025-04-12 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891183', 'tblTempUsageDetail_20' ) start [2025-04-12 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891183', 'tblTempUsageDetail_20' ) end [2025-04-12 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891183', 'tblTempVendorCDR_20' ) start [2025-04-12 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891183', 'tblTempVendorCDR_20' ) end [2025-04-12 11:14:19] Production.INFO: ProcessCDR(1,14891183,1,1,2) [2025-04-12 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891183', 'tblTempUsageDetail_20' ) start [2025-04-12 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891183', 'tblTempUsageDetail_20' ) end [2025-04-12 11:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:14:24] Production.INFO: ==20560== Releasing lock... [2025-04-12 11:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:14:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:15:05 [end_date_ymd] => 2025-04-12 11:15:05 [RateCDR] => 1 ) [2025-04-12 11:15: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-04-12 08:15:05' and `end` < '2025-04-12 11:15: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-04-12 11:15:18] Production.INFO: count ==1025 [2025-04-12 11:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:15:05 - End Time 2025-04-12 11:15:05 [2025-04-12 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891188', 'tblTempUsageDetail_20' ) start [2025-04-12 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891188', 'tblTempUsageDetail_20' ) end [2025-04-12 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891188', 'tblTempVendorCDR_20' ) start [2025-04-12 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891188', 'tblTempVendorCDR_20' ) end [2025-04-12 11:15:18] Production.INFO: ProcessCDR(1,14891188,1,1,2) [2025-04-12 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891188', 'tblTempUsageDetail_20' ) start [2025-04-12 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891188', 'tblTempUsageDetail_20' ) end [2025-04-12 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:15:21] Production.INFO: ==20711== Releasing lock... [2025-04-12 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:15:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:16:05 [end_date_ymd] => 2025-04-12 11:16:05 [RateCDR] => 1 ) [2025-04-12 11:16: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-04-12 08:16:05' and `end` < '2025-04-12 11:16: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-04-12 11:16:18] Production.INFO: count ==1027 [2025-04-12 11:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:16:05 - End Time 2025-04-12 11:16:05 [2025-04-12 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891193', 'tblTempUsageDetail_20' ) start [2025-04-12 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891193', 'tblTempUsageDetail_20' ) end [2025-04-12 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891193', 'tblTempVendorCDR_20' ) start [2025-04-12 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891193', 'tblTempVendorCDR_20' ) end [2025-04-12 11:16:19] Production.INFO: ProcessCDR(1,14891193,1,1,2) [2025-04-12 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891193', 'tblTempUsageDetail_20' ) start [2025-04-12 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891193', 'tblTempUsageDetail_20' ) end [2025-04-12 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:16:24] Production.INFO: ==20788== Releasing lock... [2025-04-12 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:16:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:17:04 [end_date_ymd] => 2025-04-12 11:17:04 [RateCDR] => 1 ) [2025-04-12 11:17: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-04-12 08:17:04' and `end` < '2025-04-12 11:17: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-04-12 11:17:17] Production.INFO: count ==1030 [2025-04-12 11:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:17:04 - End Time 2025-04-12 11:17:04 [2025-04-12 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891198', 'tblTempUsageDetail_20' ) start [2025-04-12 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891198', 'tblTempUsageDetail_20' ) end [2025-04-12 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891198', 'tblTempVendorCDR_20' ) start [2025-04-12 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891198', 'tblTempVendorCDR_20' ) end [2025-04-12 11:17:18] Production.INFO: ProcessCDR(1,14891198,1,1,2) [2025-04-12 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891198', 'tblTempUsageDetail_20' ) start [2025-04-12 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891198', 'tblTempUsageDetail_20' ) end [2025-04-12 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:17:22] Production.INFO: ==20862== Releasing lock... [2025-04-12 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:17:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:18:06 [end_date_ymd] => 2025-04-12 11:18:06 [RateCDR] => 1 ) [2025-04-12 11:18: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-04-12 08:18:06' and `end` < '2025-04-12 11:18: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-04-12 11:18:19] Production.INFO: count ==1033 [2025-04-12 11:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:18:06 - End Time 2025-04-12 11:18:06 [2025-04-12 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891203', 'tblTempUsageDetail_20' ) start [2025-04-12 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891203', 'tblTempUsageDetail_20' ) end [2025-04-12 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891203', 'tblTempVendorCDR_20' ) start [2025-04-12 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891203', 'tblTempVendorCDR_20' ) end [2025-04-12 11:18:19] Production.INFO: ProcessCDR(1,14891203,1,1,2) [2025-04-12 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891203', 'tblTempUsageDetail_20' ) start [2025-04-12 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891203', 'tblTempUsageDetail_20' ) end [2025-04-12 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:18:24] Production.INFO: ==20938== Releasing lock... [2025-04-12 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:18:24] Production.INFO: 36 MB #Memory Used# [2025-04-12 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:19:05 [end_date_ymd] => 2025-04-12 11:19:05 [RateCDR] => 1 ) [2025-04-12 11:19: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-04-12 08:19:05' and `end` < '2025-04-12 11:19: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-04-12 11:19:18] Production.INFO: count ==1040 [2025-04-12 11:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:19:05 - End Time 2025-04-12 11:19:05 [2025-04-12 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891208', 'tblTempUsageDetail_20' ) start [2025-04-12 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891208', 'tblTempUsageDetail_20' ) end [2025-04-12 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891208', 'tblTempVendorCDR_20' ) start [2025-04-12 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891208', 'tblTempVendorCDR_20' ) end [2025-04-12 11:19:18] Production.INFO: ProcessCDR(1,14891208,1,1,2) [2025-04-12 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891208', 'tblTempUsageDetail_20' ) start [2025-04-12 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891208', 'tblTempUsageDetail_20' ) end [2025-04-12 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:19:23] Production.INFO: ==21016== Releasing lock... [2025-04-12 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:19:23] Production.INFO: 36 MB #Memory Used# [2025-04-12 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:20:06 [end_date_ymd] => 2025-04-12 11:20:06 [RateCDR] => 1 ) [2025-04-12 11:20: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-04-12 08:20:06' and `end` < '2025-04-12 11:20: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-04-12 11:20:19] Production.INFO: count ==1042 [2025-04-12 11:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:20:06 - End Time 2025-04-12 11:20:06 [2025-04-12 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891214', 'tblTempUsageDetail_20' ) start [2025-04-12 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891214', 'tblTempUsageDetail_20' ) end [2025-04-12 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891214', 'tblTempVendorCDR_20' ) start [2025-04-12 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891214', 'tblTempVendorCDR_20' ) end [2025-04-12 11:20:19] Production.INFO: ProcessCDR(1,14891214,1,1,2) [2025-04-12 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891214', 'tblTempUsageDetail_20' ) start [2025-04-12 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891214', 'tblTempUsageDetail_20' ) end [2025-04-12 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:20:24] Production.INFO: ==21088== Releasing lock... [2025-04-12 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:20:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:21:05 [end_date_ymd] => 2025-04-12 11:21:05 [RateCDR] => 1 ) [2025-04-12 11:21: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-04-12 08:21:05' and `end` < '2025-04-12 11:21: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-04-12 11:21:18] Production.INFO: count ==1095 [2025-04-12 11:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:21:05 - End Time 2025-04-12 11:21:05 [2025-04-12 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891219', 'tblTempUsageDetail_20' ) start [2025-04-12 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891219', 'tblTempUsageDetail_20' ) end [2025-04-12 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891219', 'tblTempVendorCDR_20' ) start [2025-04-12 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891219', 'tblTempVendorCDR_20' ) end [2025-04-12 11:21:18] Production.INFO: ProcessCDR(1,14891219,1,1,2) [2025-04-12 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891219', 'tblTempUsageDetail_20' ) start [2025-04-12 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891219', 'tblTempUsageDetail_20' ) end [2025-04-12 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:21:23] Production.INFO: ==21161== Releasing lock... [2025-04-12 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:21:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:22:05 [end_date_ymd] => 2025-04-12 11:22:05 [RateCDR] => 1 ) [2025-04-12 11:22: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-04-12 08:22:05' and `end` < '2025-04-12 11:22: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-04-12 11:22:18] Production.INFO: count ==1098 [2025-04-12 11:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:22:05 - End Time 2025-04-12 11:22:05 [2025-04-12 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891224', 'tblTempUsageDetail_20' ) start [2025-04-12 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891224', 'tblTempUsageDetail_20' ) end [2025-04-12 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891224', 'tblTempVendorCDR_20' ) start [2025-04-12 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891224', 'tblTempVendorCDR_20' ) end [2025-04-12 11:22:18] Production.INFO: ProcessCDR(1,14891224,1,1,2) [2025-04-12 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891224', 'tblTempUsageDetail_20' ) start [2025-04-12 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891224', 'tblTempUsageDetail_20' ) end [2025-04-12 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:22:23] Production.INFO: ==21232== Releasing lock... [2025-04-12 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:22:23] Production.INFO: 37 MB #Memory Used# [2025-04-12 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:23:04 [end_date_ymd] => 2025-04-12 11:23:04 [RateCDR] => 1 ) [2025-04-12 11:23: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-04-12 08:23:04' and `end` < '2025-04-12 11:23: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-04-12 11:23:17] Production.INFO: count ==1099 [2025-04-12 11:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:23:04 - End Time 2025-04-12 11:23:04 [2025-04-12 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891229', 'tblTempUsageDetail_20' ) start [2025-04-12 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891229', 'tblTempUsageDetail_20' ) end [2025-04-12 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891229', 'tblTempVendorCDR_20' ) start [2025-04-12 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891229', 'tblTempVendorCDR_20' ) end [2025-04-12 11:23:18] Production.INFO: ProcessCDR(1,14891229,1,1,2) [2025-04-12 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891229', 'tblTempUsageDetail_20' ) start [2025-04-12 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891229', 'tblTempUsageDetail_20' ) end [2025-04-12 11:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:23:21] Production.INFO: ==21309== Releasing lock... [2025-04-12 11:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:23:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:24:05 [end_date_ymd] => 2025-04-12 11:24:05 [RateCDR] => 1 ) [2025-04-12 11:24: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-04-12 08:24:05' and `end` < '2025-04-12 11:24: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-04-12 11:24:18] Production.INFO: count ==1107 [2025-04-12 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:24:05 - End Time 2025-04-12 11:24:05 [2025-04-12 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891234', 'tblTempUsageDetail_20' ) start [2025-04-12 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891234', 'tblTempUsageDetail_20' ) end [2025-04-12 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891234', 'tblTempVendorCDR_20' ) start [2025-04-12 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891234', 'tblTempVendorCDR_20' ) end [2025-04-12 11:24:18] Production.INFO: ProcessCDR(1,14891234,1,1,2) [2025-04-12 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891234', 'tblTempUsageDetail_20' ) start [2025-04-12 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891234', 'tblTempUsageDetail_20' ) end [2025-04-12 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:24:23] Production.INFO: ==21386== Releasing lock... [2025-04-12 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:24:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:25:06 [end_date_ymd] => 2025-04-12 11:25:06 [RateCDR] => 1 ) [2025-04-12 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-04-12 08:25:06' and `end` < '2025-04-12 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-04-12 11:25:19] Production.INFO: count ==1109 [2025-04-12 11:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:25:06 - End Time 2025-04-12 11:25:06 [2025-04-12 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891239', 'tblTempUsageDetail_20' ) start [2025-04-12 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891239', 'tblTempUsageDetail_20' ) end [2025-04-12 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891239', 'tblTempVendorCDR_20' ) start [2025-04-12 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891239', 'tblTempVendorCDR_20' ) end [2025-04-12 11:25:19] Production.INFO: ProcessCDR(1,14891239,1,1,2) [2025-04-12 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891239', 'tblTempUsageDetail_20' ) start [2025-04-12 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891239', 'tblTempUsageDetail_20' ) end [2025-04-12 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:25:24] Production.INFO: ==21457== Releasing lock... [2025-04-12 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:25:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:26:05 [end_date_ymd] => 2025-04-12 11:26:05 [RateCDR] => 1 ) [2025-04-12 11:26: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-04-12 08:26:05' and `end` < '2025-04-12 11:26: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-04-12 11:26:18] Production.INFO: count ==1111 [2025-04-12 11:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:26:05 - End Time 2025-04-12 11:26:05 [2025-04-12 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891244', 'tblTempUsageDetail_20' ) start [2025-04-12 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891244', 'tblTempUsageDetail_20' ) end [2025-04-12 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891244', 'tblTempVendorCDR_20' ) start [2025-04-12 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891244', 'tblTempVendorCDR_20' ) end [2025-04-12 11:26:19] Production.INFO: ProcessCDR(1,14891244,1,1,2) [2025-04-12 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891244', 'tblTempUsageDetail_20' ) start [2025-04-12 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891244', 'tblTempUsageDetail_20' ) end [2025-04-12 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:26:24] Production.INFO: ==21533== Releasing lock... [2025-04-12 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:26:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:27:05 [end_date_ymd] => 2025-04-12 11:27:05 [RateCDR] => 1 ) [2025-04-12 11:27: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-04-12 08:27:05' and `end` < '2025-04-12 11:27: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-04-12 11:27:18] Production.INFO: count ==1111 [2025-04-12 11:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:27:05 - End Time 2025-04-12 11:27:05 [2025-04-12 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891249', 'tblTempUsageDetail_20' ) start [2025-04-12 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891249', 'tblTempUsageDetail_20' ) end [2025-04-12 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891249', 'tblTempVendorCDR_20' ) start [2025-04-12 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891249', 'tblTempVendorCDR_20' ) end [2025-04-12 11:27:18] Production.INFO: ProcessCDR(1,14891249,1,1,2) [2025-04-12 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891249', 'tblTempUsageDetail_20' ) start [2025-04-12 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891249', 'tblTempUsageDetail_20' ) end [2025-04-12 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:27:22] Production.INFO: ==21604== Releasing lock... [2025-04-12 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:28:05 [end_date_ymd] => 2025-04-12 11:28:05 [RateCDR] => 1 ) [2025-04-12 11:28: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-04-12 08:28:05' and `end` < '2025-04-12 11:28: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-04-12 11:28:18] Production.INFO: count ==1112 [2025-04-12 11:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:28:05 - End Time 2025-04-12 11:28:05 [2025-04-12 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891254', 'tblTempUsageDetail_20' ) start [2025-04-12 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891254', 'tblTempUsageDetail_20' ) end [2025-04-12 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891254', 'tblTempVendorCDR_20' ) start [2025-04-12 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891254', 'tblTempVendorCDR_20' ) end [2025-04-12 11:28:18] Production.INFO: ProcessCDR(1,14891254,1,1,2) [2025-04-12 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891254', 'tblTempUsageDetail_20' ) start [2025-04-12 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891254', 'tblTempUsageDetail_20' ) end [2025-04-12 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:28:23] Production.INFO: ==21718== Releasing lock... [2025-04-12 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:28:23] Production.INFO: 37 MB #Memory Used# [2025-04-12 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:29:05 [end_date_ymd] => 2025-04-12 11:29:05 [RateCDR] => 1 ) [2025-04-12 11:29: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-04-12 08:29:05' and `end` < '2025-04-12 11:29: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-04-12 11:29:18] Production.INFO: count ==1112 [2025-04-12 11:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:29:05 - End Time 2025-04-12 11:29:05 [2025-04-12 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891259', 'tblTempUsageDetail_20' ) start [2025-04-12 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891259', 'tblTempUsageDetail_20' ) end [2025-04-12 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891259', 'tblTempVendorCDR_20' ) start [2025-04-12 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891259', 'tblTempVendorCDR_20' ) end [2025-04-12 11:29:19] Production.INFO: ProcessCDR(1,14891259,1,1,2) [2025-04-12 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891259', 'tblTempUsageDetail_20' ) start [2025-04-12 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891259', 'tblTempUsageDetail_20' ) end [2025-04-12 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:29:22] Production.INFO: ==21800== Releasing lock... [2025-04-12 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:29:22] Production.INFO: 37 MB #Memory Used# [2025-04-12 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:30:06 [end_date_ymd] => 2025-04-12 11:30:06 [RateCDR] => 1 ) [2025-04-12 11:30: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-04-12 08:30:06' and `end` < '2025-04-12 11:30: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-04-12 11:30:19] Production.INFO: count ==1116 [2025-04-12 11:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:30:06 - End Time 2025-04-12 11:30:06 [2025-04-12 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891265', 'tblTempUsageDetail_20' ) start [2025-04-12 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891265', 'tblTempUsageDetail_20' ) end [2025-04-12 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891265', 'tblTempVendorCDR_20' ) start [2025-04-12 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891265', 'tblTempVendorCDR_20' ) end [2025-04-12 11:30:19] Production.INFO: ProcessCDR(1,14891265,1,1,2) [2025-04-12 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891265', 'tblTempUsageDetail_20' ) start [2025-04-12 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891265', 'tblTempUsageDetail_20' ) end [2025-04-12 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:30:23] Production.INFO: ==21879== Releasing lock... [2025-04-12 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:31:05 [end_date_ymd] => 2025-04-12 11:31:05 [RateCDR] => 1 ) [2025-04-12 11:31: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-04-12 08:31:05' and `end` < '2025-04-12 11:31: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-04-12 11:31:18] Production.INFO: count ==1183 [2025-04-12 11:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:31:05 - End Time 2025-04-12 11:31:05 [2025-04-12 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891270', 'tblTempUsageDetail_20' ) start [2025-04-12 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891270', 'tblTempUsageDetail_20' ) end [2025-04-12 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891270', 'tblTempVendorCDR_20' ) start [2025-04-12 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891270', 'tblTempVendorCDR_20' ) end [2025-04-12 11:31:18] Production.INFO: ProcessCDR(1,14891270,1,1,2) [2025-04-12 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891270', 'tblTempUsageDetail_20' ) start [2025-04-12 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891270', 'tblTempUsageDetail_20' ) end [2025-04-12 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:31:23] Production.INFO: ==21954== Releasing lock... [2025-04-12 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:31:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:32:05 [end_date_ymd] => 2025-04-12 11:32:05 [RateCDR] => 1 ) [2025-04-12 11:32: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-04-12 08:32:05' and `end` < '2025-04-12 11:32: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-04-12 11:32:18] Production.INFO: count ==1203 [2025-04-12 11:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:32:05 - End Time 2025-04-12 11:32:05 [2025-04-12 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891275', 'tblTempUsageDetail_20' ) start [2025-04-12 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891275', 'tblTempUsageDetail_20' ) end [2025-04-12 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891275', 'tblTempVendorCDR_20' ) start [2025-04-12 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891275', 'tblTempVendorCDR_20' ) end [2025-04-12 11:32:18] Production.INFO: ProcessCDR(1,14891275,1,1,2) [2025-04-12 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891275', 'tblTempUsageDetail_20' ) start [2025-04-12 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891275', 'tblTempUsageDetail_20' ) end [2025-04-12 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:32:24] Production.INFO: ==22030== Releasing lock... [2025-04-12 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:32:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:33:05 [end_date_ymd] => 2025-04-12 11:33:05 [RateCDR] => 1 ) [2025-04-12 11:33: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-04-12 08:33:05' and `end` < '2025-04-12 11:33: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-04-12 11:33:18] Production.INFO: count ==1199 [2025-04-12 11:33:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:33:05 - End Time 2025-04-12 11:33:05 [2025-04-12 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891280', 'tblTempUsageDetail_20' ) start [2025-04-12 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891280', 'tblTempUsageDetail_20' ) end [2025-04-12 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891280', 'tblTempVendorCDR_20' ) start [2025-04-12 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891280', 'tblTempVendorCDR_20' ) end [2025-04-12 11:33:19] Production.INFO: ProcessCDR(1,14891280,1,1,2) [2025-04-12 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891280', 'tblTempUsageDetail_20' ) start [2025-04-12 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891280', 'tblTempUsageDetail_20' ) end [2025-04-12 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:33:24] Production.INFO: ==22101== Releasing lock... [2025-04-12 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:33:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:34:05 [end_date_ymd] => 2025-04-12 11:34:05 [RateCDR] => 1 ) [2025-04-12 11:34: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-04-12 08:34:05' and `end` < '2025-04-12 11:34: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-04-12 11:34:18] Production.INFO: count ==1200 [2025-04-12 11:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:34:05 - End Time 2025-04-12 11:34:05 [2025-04-12 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891285', 'tblTempUsageDetail_20' ) start [2025-04-12 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891285', 'tblTempUsageDetail_20' ) end [2025-04-12 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891285', 'tblTempVendorCDR_20' ) start [2025-04-12 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891285', 'tblTempVendorCDR_20' ) end [2025-04-12 11:34:18] Production.INFO: ProcessCDR(1,14891285,1,1,2) [2025-04-12 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891285', 'tblTempUsageDetail_20' ) start [2025-04-12 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891285', 'tblTempUsageDetail_20' ) end [2025-04-12 11:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:34:21] Production.INFO: ==22177== Releasing lock... [2025-04-12 11:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:34:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:35:05 [end_date_ymd] => 2025-04-12 11:35:05 [RateCDR] => 1 ) [2025-04-12 11:35: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-04-12 08:35:05' and `end` < '2025-04-12 11:35: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-04-12 11:35:19] Production.INFO: count ==1208 [2025-04-12 11:35:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:35:05 - End Time 2025-04-12 11:35:05 [2025-04-12 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891290', 'tblTempUsageDetail_20' ) start [2025-04-12 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891290', 'tblTempUsageDetail_20' ) end [2025-04-12 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891290', 'tblTempVendorCDR_20' ) start [2025-04-12 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891290', 'tblTempVendorCDR_20' ) end [2025-04-12 11:35:19] Production.INFO: ProcessCDR(1,14891290,1,1,2) [2025-04-12 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891290', 'tblTempUsageDetail_20' ) start [2025-04-12 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891290', 'tblTempUsageDetail_20' ) end [2025-04-12 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:35:22] Production.INFO: ==22257== Releasing lock... [2025-04-12 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:36:05 [end_date_ymd] => 2025-04-12 11:36:05 [RateCDR] => 1 ) [2025-04-12 11:36: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-04-12 08:36:05' and `end` < '2025-04-12 11:36: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-04-12 11:36:18] Production.INFO: count ==1211 [2025-04-12 11:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:36:05 - End Time 2025-04-12 11:36:05 [2025-04-12 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891295', 'tblTempUsageDetail_20' ) start [2025-04-12 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891295', 'tblTempUsageDetail_20' ) end [2025-04-12 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891295', 'tblTempVendorCDR_20' ) start [2025-04-12 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891295', 'tblTempVendorCDR_20' ) end [2025-04-12 11:36:18] Production.INFO: ProcessCDR(1,14891295,1,1,2) [2025-04-12 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891295', 'tblTempUsageDetail_20' ) start [2025-04-12 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891295', 'tblTempUsageDetail_20' ) end [2025-04-12 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:36:23] Production.INFO: ==22335== Releasing lock... [2025-04-12 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:36:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:37:05 [end_date_ymd] => 2025-04-12 11:37:05 [RateCDR] => 1 ) [2025-04-12 11:37: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-04-12 08:37:05' and `end` < '2025-04-12 11:37: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-04-12 11:37:18] Production.INFO: count ==1212 [2025-04-12 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:37:05 - End Time 2025-04-12 11:37:05 [2025-04-12 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891300', 'tblTempUsageDetail_20' ) start [2025-04-12 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891300', 'tblTempUsageDetail_20' ) end [2025-04-12 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891300', 'tblTempVendorCDR_20' ) start [2025-04-12 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891300', 'tblTempVendorCDR_20' ) end [2025-04-12 11:37:18] Production.INFO: ProcessCDR(1,14891300,1,1,2) [2025-04-12 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891300', 'tblTempUsageDetail_20' ) start [2025-04-12 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891300', 'tblTempUsageDetail_20' ) end [2025-04-12 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:37:23] Production.INFO: ==22423== Releasing lock... [2025-04-12 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:38:06 [end_date_ymd] => 2025-04-12 11:38:06 [RateCDR] => 1 ) [2025-04-12 11:38: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-04-12 08:38:06' and `end` < '2025-04-12 11:38: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-04-12 11:38:19] Production.INFO: count ==1212 [2025-04-12 11:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:38:06 - End Time 2025-04-12 11:38:06 [2025-04-12 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891305', 'tblTempUsageDetail_20' ) start [2025-04-12 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891305', 'tblTempUsageDetail_20' ) end [2025-04-12 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891305', 'tblTempVendorCDR_20' ) start [2025-04-12 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891305', 'tblTempVendorCDR_20' ) end [2025-04-12 11:38:19] Production.INFO: ProcessCDR(1,14891305,1,1,2) [2025-04-12 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891305', 'tblTempUsageDetail_20' ) start [2025-04-12 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891305', 'tblTempUsageDetail_20' ) end [2025-04-12 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:38:22] Production.INFO: ==22495== Releasing lock... [2025-04-12 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:39:05 [end_date_ymd] => 2025-04-12 11:39:05 [RateCDR] => 1 ) [2025-04-12 11:39: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-04-12 08:39:05' and `end` < '2025-04-12 11:39: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-04-12 11:39:18] Production.INFO: count ==1215 [2025-04-12 11:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:39:05 - End Time 2025-04-12 11:39:05 [2025-04-12 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891310', 'tblTempUsageDetail_20' ) start [2025-04-12 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891310', 'tblTempUsageDetail_20' ) end [2025-04-12 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891310', 'tblTempVendorCDR_20' ) start [2025-04-12 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891310', 'tblTempVendorCDR_20' ) end [2025-04-12 11:39:18] Production.INFO: ProcessCDR(1,14891310,1,1,2) [2025-04-12 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891310', 'tblTempUsageDetail_20' ) start [2025-04-12 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891310', 'tblTempUsageDetail_20' ) end [2025-04-12 11:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:39:21] Production.INFO: ==22571== Releasing lock... [2025-04-12 11:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:40:06 [end_date_ymd] => 2025-04-12 11:40:06 [RateCDR] => 1 ) [2025-04-12 11:40: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-04-12 08:40:06' and `end` < '2025-04-12 11:40: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-04-12 11:40:19] Production.INFO: count ==1222 [2025-04-12 11:40:20] Production.ERROR: pbx CDR StartTime 2025-04-12 08:40:06 - End Time 2025-04-12 11:40:06 [2025-04-12 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891316', 'tblTempUsageDetail_20' ) start [2025-04-12 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891316', 'tblTempUsageDetail_20' ) end [2025-04-12 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891316', 'tblTempVendorCDR_20' ) start [2025-04-12 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891316', 'tblTempVendorCDR_20' ) end [2025-04-12 11:40:20] Production.INFO: ProcessCDR(1,14891316,1,1,2) [2025-04-12 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891316', 'tblTempUsageDetail_20' ) start [2025-04-12 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891316', 'tblTempUsageDetail_20' ) end [2025-04-12 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:40:23] Production.INFO: ==22647== Releasing lock... [2025-04-12 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:40:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:41:05 [end_date_ymd] => 2025-04-12 11:41:05 [RateCDR] => 1 ) [2025-04-12 11:41: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-04-12 08:41:05' and `end` < '2025-04-12 11:41: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-04-12 11:41:18] Production.INFO: count ==1254 [2025-04-12 11:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:41:05 - End Time 2025-04-12 11:41:05 [2025-04-12 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891321', 'tblTempUsageDetail_20' ) start [2025-04-12 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891321', 'tblTempUsageDetail_20' ) end [2025-04-12 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891321', 'tblTempVendorCDR_20' ) start [2025-04-12 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891321', 'tblTempVendorCDR_20' ) end [2025-04-12 11:41:19] Production.INFO: ProcessCDR(1,14891321,1,1,2) [2025-04-12 11:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891321', 'tblTempUsageDetail_20' ) start [2025-04-12 11:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891321', 'tblTempUsageDetail_20' ) end [2025-04-12 11:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:41:24] Production.INFO: ==22729== Releasing lock... [2025-04-12 11:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:41:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:42:04 [end_date_ymd] => 2025-04-12 11:42:04 [RateCDR] => 1 ) [2025-04-12 11:42: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-04-12 08:42:04' and `end` < '2025-04-12 11:42: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-04-12 11:42:17] Production.INFO: count ==1257 [2025-04-12 11:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:42:04 - End Time 2025-04-12 11:42:04 [2025-04-12 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891326', 'tblTempUsageDetail_20' ) start [2025-04-12 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891326', 'tblTempUsageDetail_20' ) end [2025-04-12 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891326', 'tblTempVendorCDR_20' ) start [2025-04-12 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891326', 'tblTempVendorCDR_20' ) end [2025-04-12 11:42:18] Production.INFO: ProcessCDR(1,14891326,1,1,2) [2025-04-12 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891326', 'tblTempUsageDetail_20' ) start [2025-04-12 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891326', 'tblTempUsageDetail_20' ) end [2025-04-12 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:42:21] Production.INFO: ==22806== Releasing lock... [2025-04-12 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:42:21] Production.INFO: 38 MB #Memory Used# [2025-04-12 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:43:05 [end_date_ymd] => 2025-04-12 11:43:05 [RateCDR] => 1 ) [2025-04-12 11:43: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-04-12 08:43:05' and `end` < '2025-04-12 11:43: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-04-12 11:43:18] Production.INFO: count ==1257 [2025-04-12 11:43:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:43:05 - End Time 2025-04-12 11:43:05 [2025-04-12 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891331', 'tblTempUsageDetail_20' ) start [2025-04-12 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891331', 'tblTempUsageDetail_20' ) end [2025-04-12 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891331', 'tblTempVendorCDR_20' ) start [2025-04-12 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891331', 'tblTempVendorCDR_20' ) end [2025-04-12 11:43:19] Production.INFO: ProcessCDR(1,14891331,1,1,2) [2025-04-12 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891331', 'tblTempUsageDetail_20' ) start [2025-04-12 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891331', 'tblTempUsageDetail_20' ) end [2025-04-12 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:43:24] Production.INFO: ==22882== Releasing lock... [2025-04-12 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:43:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:44:06 [end_date_ymd] => 2025-04-12 11:44:06 [RateCDR] => 1 ) [2025-04-12 11:44: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-04-12 08:44:06' and `end` < '2025-04-12 11:44: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-04-12 11:44:19] Production.INFO: count ==1259 [2025-04-12 11:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:44:06 - End Time 2025-04-12 11:44:06 [2025-04-12 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891336', 'tblTempUsageDetail_20' ) start [2025-04-12 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891336', 'tblTempUsageDetail_20' ) end [2025-04-12 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891336', 'tblTempVendorCDR_20' ) start [2025-04-12 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891336', 'tblTempVendorCDR_20' ) end [2025-04-12 11:44:19] Production.INFO: ProcessCDR(1,14891336,1,1,2) [2025-04-12 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891336', 'tblTempUsageDetail_20' ) start [2025-04-12 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891336', 'tblTempUsageDetail_20' ) end [2025-04-12 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:44:24] Production.INFO: ==22994== Releasing lock... [2025-04-12 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:44:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:45:05 [end_date_ymd] => 2025-04-12 11:45:05 [RateCDR] => 1 ) [2025-04-12 11:45: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-04-12 08:45:05' and `end` < '2025-04-12 11:45: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-04-12 11:45:18] Production.INFO: count ==1272 [2025-04-12 11:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:45:05 - End Time 2025-04-12 11:45:05 [2025-04-12 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891341', 'tblTempUsageDetail_20' ) start [2025-04-12 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891341', 'tblTempUsageDetail_20' ) end [2025-04-12 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891341', 'tblTempVendorCDR_20' ) start [2025-04-12 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891341', 'tblTempVendorCDR_20' ) end [2025-04-12 11:45:18] Production.INFO: ProcessCDR(1,14891341,1,1,2) [2025-04-12 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891341', 'tblTempUsageDetail_20' ) start [2025-04-12 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891341', 'tblTempUsageDetail_20' ) end [2025-04-12 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:45:23] Production.INFO: ==23069== Releasing lock... [2025-04-12 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:45:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:46:05 [end_date_ymd] => 2025-04-12 11:46:05 [RateCDR] => 1 ) [2025-04-12 11:46: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-04-12 08:46:05' and `end` < '2025-04-12 11:46: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-04-12 11:46:18] Production.INFO: count ==1276 [2025-04-12 11:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:46:05 - End Time 2025-04-12 11:46:05 [2025-04-12 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891346', 'tblTempUsageDetail_20' ) start [2025-04-12 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891346', 'tblTempUsageDetail_20' ) end [2025-04-12 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891346', 'tblTempVendorCDR_20' ) start [2025-04-12 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891346', 'tblTempVendorCDR_20' ) end [2025-04-12 11:46:19] Production.INFO: ProcessCDR(1,14891346,1,1,2) [2025-04-12 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891346', 'tblTempUsageDetail_20' ) start [2025-04-12 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891346', 'tblTempUsageDetail_20' ) end [2025-04-12 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:46:22] Production.INFO: ==23144== Releasing lock... [2025-04-12 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:47:05 [end_date_ymd] => 2025-04-12 11:47:05 [RateCDR] => 1 ) [2025-04-12 11:47: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-04-12 08:47:05' and `end` < '2025-04-12 11:47: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-04-12 11:47:18] Production.INFO: count ==1274 [2025-04-12 11:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:47:05 - End Time 2025-04-12 11:47:05 [2025-04-12 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891351', 'tblTempUsageDetail_20' ) start [2025-04-12 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891351', 'tblTempUsageDetail_20' ) end [2025-04-12 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891351', 'tblTempVendorCDR_20' ) start [2025-04-12 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891351', 'tblTempVendorCDR_20' ) end [2025-04-12 11:47:18] Production.INFO: ProcessCDR(1,14891351,1,1,2) [2025-04-12 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891351', 'tblTempUsageDetail_20' ) start [2025-04-12 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891351', 'tblTempUsageDetail_20' ) end [2025-04-12 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:47:22] Production.INFO: ==23227== Releasing lock... [2025-04-12 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:47:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:48:05 [end_date_ymd] => 2025-04-12 11:48:05 [RateCDR] => 1 ) [2025-04-12 11:48: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-04-12 08:48:05' and `end` < '2025-04-12 11:48: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-04-12 11:48:18] Production.INFO: count ==1276 [2025-04-12 11:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:48:05 - End Time 2025-04-12 11:48:05 [2025-04-12 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891356', 'tblTempUsageDetail_20' ) start [2025-04-12 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891356', 'tblTempUsageDetail_20' ) end [2025-04-12 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891356', 'tblTempVendorCDR_20' ) start [2025-04-12 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891356', 'tblTempVendorCDR_20' ) end [2025-04-12 11:48:18] Production.INFO: ProcessCDR(1,14891356,1,1,2) [2025-04-12 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891356', 'tblTempUsageDetail_20' ) start [2025-04-12 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891356', 'tblTempUsageDetail_20' ) end [2025-04-12 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:48:23] Production.INFO: ==23306== Releasing lock... [2025-04-12 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:48:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:49:05 [end_date_ymd] => 2025-04-12 11:49:05 [RateCDR] => 1 ) [2025-04-12 11:49: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-04-12 08:49:05' and `end` < '2025-04-12 11:49: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-04-12 11:49:18] Production.INFO: count ==1288 [2025-04-12 11:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:49:05 - End Time 2025-04-12 11:49:05 [2025-04-12 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891361', 'tblTempUsageDetail_20' ) start [2025-04-12 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891361', 'tblTempUsageDetail_20' ) end [2025-04-12 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891361', 'tblTempVendorCDR_20' ) start [2025-04-12 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891361', 'tblTempVendorCDR_20' ) end [2025-04-12 11:49:18] Production.INFO: ProcessCDR(1,14891361,1,1,2) [2025-04-12 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891361', 'tblTempUsageDetail_20' ) start [2025-04-12 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891361', 'tblTempUsageDetail_20' ) end [2025-04-12 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:49:23] Production.INFO: ==23379== Releasing lock... [2025-04-12 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:49:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:50:06 [end_date_ymd] => 2025-04-12 11:50:06 [RateCDR] => 1 ) [2025-04-12 11:50: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-04-12 08:50:06' and `end` < '2025-04-12 11:50: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-04-12 11:50:19] Production.INFO: count ==1289 [2025-04-12 11:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:50:06 - End Time 2025-04-12 11:50:06 [2025-04-12 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891367', 'tblTempUsageDetail_20' ) start [2025-04-12 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891367', 'tblTempUsageDetail_20' ) end [2025-04-12 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891367', 'tblTempVendorCDR_20' ) start [2025-04-12 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891367', 'tblTempVendorCDR_20' ) end [2025-04-12 11:50:19] Production.INFO: ProcessCDR(1,14891367,1,1,2) [2025-04-12 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891367', 'tblTempUsageDetail_20' ) start [2025-04-12 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891367', 'tblTempUsageDetail_20' ) end [2025-04-12 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:50:24] Production.INFO: ==23458== Releasing lock... [2025-04-12 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:50:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:51:05 [end_date_ymd] => 2025-04-12 11:51:05 [RateCDR] => 1 ) [2025-04-12 11:51: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-04-12 08:51:05' and `end` < '2025-04-12 11:51: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-04-12 11:51:18] Production.INFO: count ==1318 [2025-04-12 11:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:51:05 - End Time 2025-04-12 11:51:05 [2025-04-12 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891372', 'tblTempUsageDetail_20' ) start [2025-04-12 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891372', 'tblTempUsageDetail_20' ) end [2025-04-12 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891372', 'tblTempVendorCDR_20' ) start [2025-04-12 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891372', 'tblTempVendorCDR_20' ) end [2025-04-12 11:51:18] Production.INFO: ProcessCDR(1,14891372,1,1,2) [2025-04-12 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891372', 'tblTempUsageDetail_20' ) start [2025-04-12 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891372', 'tblTempUsageDetail_20' ) end [2025-04-12 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:51:23] Production.INFO: ==23531== Releasing lock... [2025-04-12 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:51:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:52:05 [end_date_ymd] => 2025-04-12 11:52:05 [RateCDR] => 1 ) [2025-04-12 11:52: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-04-12 08:52:05' and `end` < '2025-04-12 11:52: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-04-12 11:52:18] Production.INFO: count ==1332 [2025-04-12 11:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:52:05 - End Time 2025-04-12 11:52:05 [2025-04-12 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891377', 'tblTempUsageDetail_20' ) start [2025-04-12 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891377', 'tblTempUsageDetail_20' ) end [2025-04-12 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891377', 'tblTempVendorCDR_20' ) start [2025-04-12 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891377', 'tblTempVendorCDR_20' ) end [2025-04-12 11:52:18] Production.INFO: ProcessCDR(1,14891377,1,1,2) [2025-04-12 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891377', 'tblTempUsageDetail_20' ) start [2025-04-12 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891377', 'tblTempUsageDetail_20' ) end [2025-04-12 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:52:23] Production.INFO: ==23609== Releasing lock... [2025-04-12 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:52:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:53:04 [end_date_ymd] => 2025-04-12 11:53:04 [RateCDR] => 1 ) [2025-04-12 11:53: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-04-12 08:53:04' and `end` < '2025-04-12 11:53: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-04-12 11:53:17] Production.INFO: count ==1334 [2025-04-12 11:53:17] Production.ERROR: pbx CDR StartTime 2025-04-12 08:53:04 - End Time 2025-04-12 11:53:04 [2025-04-12 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891382', 'tblTempUsageDetail_20' ) start [2025-04-12 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891382', 'tblTempUsageDetail_20' ) end [2025-04-12 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891382', 'tblTempVendorCDR_20' ) start [2025-04-12 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891382', 'tblTempVendorCDR_20' ) end [2025-04-12 11:53:17] Production.INFO: ProcessCDR(1,14891382,1,1,2) [2025-04-12 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891382', 'tblTempUsageDetail_20' ) start [2025-04-12 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891382', 'tblTempUsageDetail_20' ) end [2025-04-12 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:53:22] Production.INFO: ==23684== Releasing lock... [2025-04-12 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:53:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:54:05 [end_date_ymd] => 2025-04-12 11:54:05 [RateCDR] => 1 ) [2025-04-12 11:54: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-04-12 08:54:05' and `end` < '2025-04-12 11:54: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-04-12 11:54:18] Production.INFO: count ==1327 [2025-04-12 11:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:54:05 - End Time 2025-04-12 11:54:05 [2025-04-12 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891387', 'tblTempUsageDetail_20' ) start [2025-04-12 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891387', 'tblTempUsageDetail_20' ) end [2025-04-12 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891387', 'tblTempVendorCDR_20' ) start [2025-04-12 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891387', 'tblTempVendorCDR_20' ) end [2025-04-12 11:54:18] Production.INFO: ProcessCDR(1,14891387,1,1,2) [2025-04-12 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891387', 'tblTempUsageDetail_20' ) start [2025-04-12 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891387', 'tblTempUsageDetail_20' ) end [2025-04-12 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:54:24] Production.INFO: ==23756== Releasing lock... [2025-04-12 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:54:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:55:05 [end_date_ymd] => 2025-04-12 11:55:05 [RateCDR] => 1 ) [2025-04-12 11:55: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-04-12 08:55:05' and `end` < '2025-04-12 11:55: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-04-12 11:55:18] Production.INFO: count ==1329 [2025-04-12 11:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:55:05 - End Time 2025-04-12 11:55:05 [2025-04-12 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891392', 'tblTempUsageDetail_20' ) start [2025-04-12 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891392', 'tblTempUsageDetail_20' ) end [2025-04-12 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891392', 'tblTempVendorCDR_20' ) start [2025-04-12 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891392', 'tblTempVendorCDR_20' ) end [2025-04-12 11:55:18] Production.INFO: ProcessCDR(1,14891392,1,1,2) [2025-04-12 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891392', 'tblTempUsageDetail_20' ) start [2025-04-12 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891392', 'tblTempUsageDetail_20' ) end [2025-04-12 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:55:23] Production.INFO: ==23840== Releasing lock... [2025-04-12 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:55:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:56:05 [end_date_ymd] => 2025-04-12 11:56:05 [RateCDR] => 1 ) [2025-04-12 11:56: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-04-12 08:56:05' and `end` < '2025-04-12 11:56: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-04-12 11:56:18] Production.INFO: count ==1332 [2025-04-12 11:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 08:56:05 - End Time 2025-04-12 11:56:05 [2025-04-12 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891397', 'tblTempUsageDetail_20' ) start [2025-04-12 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891397', 'tblTempUsageDetail_20' ) end [2025-04-12 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891397', 'tblTempVendorCDR_20' ) start [2025-04-12 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891397', 'tblTempVendorCDR_20' ) end [2025-04-12 11:56:18] Production.INFO: ProcessCDR(1,14891397,1,1,2) [2025-04-12 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891397', 'tblTempUsageDetail_20' ) start [2025-04-12 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891397', 'tblTempUsageDetail_20' ) end [2025-04-12 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:56:23] Production.INFO: ==23916== Releasing lock... [2025-04-12 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:56:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:57:05 [end_date_ymd] => 2025-04-12 11:57:05 [RateCDR] => 1 ) [2025-04-12 11:57: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-04-12 08:57:05' and `end` < '2025-04-12 11:57: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-04-12 11:57:18] Production.INFO: count ==1342 [2025-04-12 11:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:57:05 - End Time 2025-04-12 11:57:05 [2025-04-12 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891402', 'tblTempUsageDetail_20' ) start [2025-04-12 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891402', 'tblTempUsageDetail_20' ) end [2025-04-12 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891402', 'tblTempVendorCDR_20' ) start [2025-04-12 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891402', 'tblTempVendorCDR_20' ) end [2025-04-12 11:57:19] Production.INFO: ProcessCDR(1,14891402,1,1,2) [2025-04-12 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891402', 'tblTempUsageDetail_20' ) start [2025-04-12 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891402', 'tblTempUsageDetail_20' ) end [2025-04-12 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:57:22] Production.INFO: ==23988== Releasing lock... [2025-04-12 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:57:22] Production.INFO: 38 MB #Memory Used# [2025-04-12 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:58:06 [end_date_ymd] => 2025-04-12 11:58:06 [RateCDR] => 1 ) [2025-04-12 11:58: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-04-12 08:58:06' and `end` < '2025-04-12 11:58: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-04-12 11:58:19] Production.INFO: count ==1344 [2025-04-12 11:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:58:06 - End Time 2025-04-12 11:58:06 [2025-04-12 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891407', 'tblTempUsageDetail_20' ) start [2025-04-12 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891407', 'tblTempUsageDetail_20' ) end [2025-04-12 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891407', 'tblTempVendorCDR_20' ) start [2025-04-12 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891407', 'tblTempVendorCDR_20' ) end [2025-04-12 11:58:19] Production.INFO: ProcessCDR(1,14891407,1,1,2) [2025-04-12 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891407', 'tblTempUsageDetail_20' ) start [2025-04-12 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891407', 'tblTempUsageDetail_20' ) end [2025-04-12 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:58:24] Production.INFO: ==24062== Releasing lock... [2025-04-12 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:58:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 08:59:05 [end_date_ymd] => 2025-04-12 11:59:05 [RateCDR] => 1 ) [2025-04-12 11:59: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-04-12 08:59:05' and `end` < '2025-04-12 11:59: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-04-12 11:59:18] Production.INFO: count ==1346 [2025-04-12 11:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 08:59:05 - End Time 2025-04-12 11:59:05 [2025-04-12 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891412', 'tblTempUsageDetail_20' ) start [2025-04-12 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891412', 'tblTempUsageDetail_20' ) end [2025-04-12 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891412', 'tblTempVendorCDR_20' ) start [2025-04-12 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891412', 'tblTempVendorCDR_20' ) end [2025-04-12 11:59:19] Production.INFO: ProcessCDR(1,14891412,1,1,2) [2025-04-12 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891412', 'tblTempUsageDetail_20' ) start [2025-04-12 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891412', 'tblTempUsageDetail_20' ) end [2025-04-12 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 11:59:24] Production.INFO: ==24179== Releasing lock... [2025-04-12 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 11:59:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:00:06 [end_date_ymd] => 2025-04-12 12:00:06 [RateCDR] => 1 ) [2025-04-12 12:00: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-04-12 09:00:06' and `end` < '2025-04-12 12:00: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-04-12 12:00:19] Production.INFO: count ==1347 [2025-04-12 12:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:00:06 - End Time 2025-04-12 12:00:06 [2025-04-12 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891417', 'tblTempUsageDetail_20' ) start [2025-04-12 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891417', 'tblTempUsageDetail_20' ) end [2025-04-12 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891417', 'tblTempVendorCDR_20' ) start [2025-04-12 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891417', 'tblTempVendorCDR_20' ) end [2025-04-12 12:00:19] Production.INFO: ProcessCDR(1,14891417,1,1,2) [2025-04-12 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891417', 'tblTempUsageDetail_20' ) start [2025-04-12 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891417', 'tblTempUsageDetail_20' ) end [2025-04-12 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:00:24] Production.INFO: ==24255== Releasing lock... [2025-04-12 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:00:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:01:05 [end_date_ymd] => 2025-04-12 12:01:05 [RateCDR] => 1 ) [2025-04-12 12:01: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-04-12 09:01:05' and `end` < '2025-04-12 12:01: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-04-12 12:01:18] Production.INFO: count ==1399 [2025-04-12 12:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:01:05 - End Time 2025-04-12 12:01:05 [2025-04-12 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891423', 'tblTempUsageDetail_20' ) start [2025-04-12 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891423', 'tblTempUsageDetail_20' ) end [2025-04-12 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891423', 'tblTempVendorCDR_20' ) start [2025-04-12 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891423', 'tblTempVendorCDR_20' ) end [2025-04-12 12:01:18] Production.INFO: ProcessCDR(1,14891423,1,1,2) [2025-04-12 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891423', 'tblTempUsageDetail_20' ) start [2025-04-12 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891423', 'tblTempUsageDetail_20' ) end [2025-04-12 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:01:23] Production.INFO: ==24343== Releasing lock... [2025-04-12 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:01:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:02:05 [end_date_ymd] => 2025-04-12 12:02:05 [RateCDR] => 1 ) [2025-04-12 12:02: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-04-12 09:02:05' and `end` < '2025-04-12 12:02: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-04-12 12:02:18] Production.INFO: count ==1398 [2025-04-12 12:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:02:05 - End Time 2025-04-12 12:02:05 [2025-04-12 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891428', 'tblTempUsageDetail_20' ) start [2025-04-12 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891428', 'tblTempUsageDetail_20' ) end [2025-04-12 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891428', 'tblTempVendorCDR_20' ) start [2025-04-12 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891428', 'tblTempVendorCDR_20' ) end [2025-04-12 12:02:19] Production.INFO: ProcessCDR(1,14891428,1,1,2) [2025-04-12 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891428', 'tblTempUsageDetail_20' ) start [2025-04-12 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891428', 'tblTempUsageDetail_20' ) end [2025-04-12 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:02:22] Production.INFO: ==24415== Releasing lock... [2025-04-12 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:02:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:03:05 [end_date_ymd] => 2025-04-12 12:03:05 [RateCDR] => 1 ) [2025-04-12 12:03: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-04-12 09:03:05' and `end` < '2025-04-12 12:03: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-04-12 12:03:18] Production.INFO: count ==1406 [2025-04-12 12:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:03:05 - End Time 2025-04-12 12:03:05 [2025-04-12 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891433', 'tblTempUsageDetail_20' ) start [2025-04-12 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891433', 'tblTempUsageDetail_20' ) end [2025-04-12 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891433', 'tblTempVendorCDR_20' ) start [2025-04-12 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891433', 'tblTempVendorCDR_20' ) end [2025-04-12 12:03:18] Production.INFO: ProcessCDR(1,14891433,1,1,2) [2025-04-12 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891433', 'tblTempUsageDetail_20' ) start [2025-04-12 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891433', 'tblTempUsageDetail_20' ) end [2025-04-12 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:03:23] Production.INFO: ==24487== Releasing lock... [2025-04-12 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:04:05 [end_date_ymd] => 2025-04-12 12:04:05 [RateCDR] => 1 ) [2025-04-12 12:04: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-04-12 09:04:05' and `end` < '2025-04-12 12:04: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-04-12 12:04:18] Production.INFO: count ==1412 [2025-04-12 12:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:04:05 - End Time 2025-04-12 12:04:05 [2025-04-12 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891438', 'tblTempUsageDetail_20' ) start [2025-04-12 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891438', 'tblTempUsageDetail_20' ) end [2025-04-12 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891438', 'tblTempVendorCDR_20' ) start [2025-04-12 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891438', 'tblTempVendorCDR_20' ) end [2025-04-12 12:04:19] Production.INFO: ProcessCDR(1,14891438,1,1,2) [2025-04-12 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891438', 'tblTempUsageDetail_20' ) start [2025-04-12 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891438', 'tblTempUsageDetail_20' ) end [2025-04-12 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:04:24] Production.INFO: ==24560== Releasing lock... [2025-04-12 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:04:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:05:05 [end_date_ymd] => 2025-04-12 12:05:05 [RateCDR] => 1 ) [2025-04-12 12:05: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-04-12 09:05:05' and `end` < '2025-04-12 12:05: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-04-12 12:05:18] Production.INFO: count ==1407 [2025-04-12 12:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:05:05 - End Time 2025-04-12 12:05:05 [2025-04-12 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891443', 'tblTempUsageDetail_20' ) start [2025-04-12 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891443', 'tblTempUsageDetail_20' ) end [2025-04-12 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891443', 'tblTempVendorCDR_20' ) start [2025-04-12 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891443', 'tblTempVendorCDR_20' ) end [2025-04-12 12:05:18] Production.INFO: ProcessCDR(1,14891443,1,1,2) [2025-04-12 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891443', 'tblTempUsageDetail_20' ) start [2025-04-12 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891443', 'tblTempUsageDetail_20' ) end [2025-04-12 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:05:23] Production.INFO: ==24636== Releasing lock... [2025-04-12 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:06:05 [end_date_ymd] => 2025-04-12 12:06:05 [RateCDR] => 1 ) [2025-04-12 12:06: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-04-12 09:06:05' and `end` < '2025-04-12 12:06: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-04-12 12:06:19] Production.INFO: count ==1404 [2025-04-12 12:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:06:05 - End Time 2025-04-12 12:06:05 [2025-04-12 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891448', 'tblTempUsageDetail_20' ) start [2025-04-12 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891448', 'tblTempUsageDetail_20' ) end [2025-04-12 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891448', 'tblTempVendorCDR_20' ) start [2025-04-12 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891448', 'tblTempVendorCDR_20' ) end [2025-04-12 12:06:19] Production.INFO: ProcessCDR(1,14891448,1,1,2) [2025-04-12 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891448', 'tblTempUsageDetail_20' ) start [2025-04-12 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891448', 'tblTempUsageDetail_20' ) end [2025-04-12 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:06:24] Production.INFO: ==24711== Releasing lock... [2025-04-12 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:06:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:07:05 [end_date_ymd] => 2025-04-12 12:07:05 [RateCDR] => 1 ) [2025-04-12 12:07: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-04-12 09:07:05' and `end` < '2025-04-12 12:07: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-04-12 12:07:18] Production.INFO: count ==1407 [2025-04-12 12:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:07:05 - End Time 2025-04-12 12:07:05 [2025-04-12 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891453', 'tblTempUsageDetail_20' ) start [2025-04-12 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891453', 'tblTempUsageDetail_20' ) end [2025-04-12 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891453', 'tblTempVendorCDR_20' ) start [2025-04-12 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891453', 'tblTempVendorCDR_20' ) end [2025-04-12 12:07:18] Production.INFO: ProcessCDR(1,14891453,1,1,2) [2025-04-12 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891453', 'tblTempUsageDetail_20' ) start [2025-04-12 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891453', 'tblTempUsageDetail_20' ) end [2025-04-12 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:07:23] Production.INFO: ==24783== Releasing lock... [2025-04-12 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:07:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:08:05 [end_date_ymd] => 2025-04-12 12:08:05 [RateCDR] => 1 ) [2025-04-12 12:08: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-04-12 09:08:05' and `end` < '2025-04-12 12:08: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-04-12 12:08:18] Production.INFO: count ==1408 [2025-04-12 12:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:08:05 - End Time 2025-04-12 12:08:05 [2025-04-12 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891458', 'tblTempUsageDetail_20' ) start [2025-04-12 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891458', 'tblTempUsageDetail_20' ) end [2025-04-12 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891458', 'tblTempVendorCDR_20' ) start [2025-04-12 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891458', 'tblTempVendorCDR_20' ) end [2025-04-12 12:08:19] Production.INFO: ProcessCDR(1,14891458,1,1,2) [2025-04-12 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891458', 'tblTempUsageDetail_20' ) start [2025-04-12 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891458', 'tblTempUsageDetail_20' ) end [2025-04-12 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:08:24] Production.INFO: ==24859== Releasing lock... [2025-04-12 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:08:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:09:05 [end_date_ymd] => 2025-04-12 12:09:05 [RateCDR] => 1 ) [2025-04-12 12:09: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-04-12 09:09:05' and `end` < '2025-04-12 12:09: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-04-12 12:09:18] Production.INFO: count ==1409 [2025-04-12 12:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:09:05 - End Time 2025-04-12 12:09:05 [2025-04-12 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891463', 'tblTempUsageDetail_20' ) start [2025-04-12 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891463', 'tblTempUsageDetail_20' ) end [2025-04-12 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891463', 'tblTempVendorCDR_20' ) start [2025-04-12 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891463', 'tblTempVendorCDR_20' ) end [2025-04-12 12:09:18] Production.INFO: ProcessCDR(1,14891463,1,1,2) [2025-04-12 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891463', 'tblTempUsageDetail_20' ) start [2025-04-12 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891463', 'tblTempUsageDetail_20' ) end [2025-04-12 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:09:23] Production.INFO: ==24937== Releasing lock... [2025-04-12 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:09:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:10:06 [end_date_ymd] => 2025-04-12 12:10:06 [RateCDR] => 1 ) [2025-04-12 12:10: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-04-12 09:10:06' and `end` < '2025-04-12 12:10: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-04-12 12:10:19] Production.INFO: count ==1409 [2025-04-12 12:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:10:06 - End Time 2025-04-12 12:10:06 [2025-04-12 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891469', 'tblTempUsageDetail_20' ) start [2025-04-12 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891469', 'tblTempUsageDetail_20' ) end [2025-04-12 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891469', 'tblTempVendorCDR_20' ) start [2025-04-12 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891469', 'tblTempVendorCDR_20' ) end [2025-04-12 12:10:19] Production.INFO: ProcessCDR(1,14891469,1,1,2) [2025-04-12 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891469', 'tblTempUsageDetail_20' ) start [2025-04-12 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891469', 'tblTempUsageDetail_20' ) end [2025-04-12 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:10:23] Production.INFO: ==25015== Releasing lock... [2025-04-12 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:10:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:11:05 [end_date_ymd] => 2025-04-12 12:11:05 [RateCDR] => 1 ) [2025-04-12 12:11: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-04-12 09:11:05' and `end` < '2025-04-12 12:11: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-04-12 12:11:18] Production.INFO: count ==1430 [2025-04-12 12:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:11:05 - End Time 2025-04-12 12:11:05 [2025-04-12 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891474', 'tblTempUsageDetail_20' ) start [2025-04-12 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891474', 'tblTempUsageDetail_20' ) end [2025-04-12 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891474', 'tblTempVendorCDR_20' ) start [2025-04-12 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891474', 'tblTempVendorCDR_20' ) end [2025-04-12 12:11:18] Production.INFO: ProcessCDR(1,14891474,1,1,2) [2025-04-12 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891474', 'tblTempUsageDetail_20' ) start [2025-04-12 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891474', 'tblTempUsageDetail_20' ) end [2025-04-12 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:11:23] Production.INFO: ==25089== Releasing lock... [2025-04-12 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:12:05 [end_date_ymd] => 2025-04-12 12:12:05 [RateCDR] => 1 ) [2025-04-12 12:12: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-04-12 09:12:05' and `end` < '2025-04-12 12:12: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-04-12 12:12:18] Production.INFO: count ==1431 [2025-04-12 12:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:12:05 - End Time 2025-04-12 12:12:05 [2025-04-12 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891479', 'tblTempUsageDetail_20' ) start [2025-04-12 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891479', 'tblTempUsageDetail_20' ) end [2025-04-12 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891479', 'tblTempVendorCDR_20' ) start [2025-04-12 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891479', 'tblTempVendorCDR_20' ) end [2025-04-12 12:12:19] Production.INFO: ProcessCDR(1,14891479,1,1,2) [2025-04-12 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891479', 'tblTempUsageDetail_20' ) start [2025-04-12 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891479', 'tblTempUsageDetail_20' ) end [2025-04-12 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:12:24] Production.INFO: ==25165== Releasing lock... [2025-04-12 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:13:05 [end_date_ymd] => 2025-04-12 12:13:05 [RateCDR] => 1 ) [2025-04-12 12:13: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-04-12 09:13:05' and `end` < '2025-04-12 12:13: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-04-12 12:13:18] Production.INFO: count ==1419 [2025-04-12 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:13:05 - End Time 2025-04-12 12:13:05 [2025-04-12 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891484', 'tblTempUsageDetail_20' ) start [2025-04-12 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891484', 'tblTempUsageDetail_20' ) end [2025-04-12 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891484', 'tblTempVendorCDR_20' ) start [2025-04-12 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891484', 'tblTempVendorCDR_20' ) end [2025-04-12 12:13:18] Production.INFO: ProcessCDR(1,14891484,1,1,2) [2025-04-12 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891484', 'tblTempUsageDetail_20' ) start [2025-04-12 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891484', 'tblTempUsageDetail_20' ) end [2025-04-12 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:13:21] Production.INFO: ==25235== Releasing lock... [2025-04-12 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:13:21] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:14:05 [end_date_ymd] => 2025-04-12 12:14:05 [RateCDR] => 1 ) [2025-04-12 12:14: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-04-12 09:14:05' and `end` < '2025-04-12 12:14: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-04-12 12:14:18] Production.INFO: count ==1425 [2025-04-12 12:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:14:05 - End Time 2025-04-12 12:14:05 [2025-04-12 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891489', 'tblTempUsageDetail_20' ) start [2025-04-12 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891489', 'tblTempUsageDetail_20' ) end [2025-04-12 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891489', 'tblTempVendorCDR_20' ) start [2025-04-12 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891489', 'tblTempVendorCDR_20' ) end [2025-04-12 12:14:18] Production.INFO: ProcessCDR(1,14891489,1,1,2) [2025-04-12 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891489', 'tblTempUsageDetail_20' ) start [2025-04-12 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891489', 'tblTempUsageDetail_20' ) end [2025-04-12 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:14:24] Production.INFO: ==25315== Releasing lock... [2025-04-12 12:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:14:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:15:05 [end_date_ymd] => 2025-04-12 12:15:05 [RateCDR] => 1 ) [2025-04-12 12:15: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-04-12 09:15:05' and `end` < '2025-04-12 12:15: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-04-12 12:15:18] Production.INFO: count ==1424 [2025-04-12 12:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:15:05 - End Time 2025-04-12 12:15:05 [2025-04-12 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891494', 'tblTempUsageDetail_20' ) start [2025-04-12 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891494', 'tblTempUsageDetail_20' ) end [2025-04-12 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891494', 'tblTempVendorCDR_20' ) start [2025-04-12 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891494', 'tblTempVendorCDR_20' ) end [2025-04-12 12:15:18] Production.INFO: ProcessCDR(1,14891494,1,1,2) [2025-04-12 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891494', 'tblTempUsageDetail_20' ) start [2025-04-12 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891494', 'tblTempUsageDetail_20' ) end [2025-04-12 12:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:15:21] Production.INFO: ==25431== Releasing lock... [2025-04-12 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:16:05 [end_date_ymd] => 2025-04-12 12:16:05 [RateCDR] => 1 ) [2025-04-12 12:16: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-04-12 09:16:05' and `end` < '2025-04-12 12:16: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-04-12 12:16:18] Production.INFO: count ==1425 [2025-04-12 12:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:16:05 - End Time 2025-04-12 12:16:05 [2025-04-12 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891499', 'tblTempUsageDetail_20' ) start [2025-04-12 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891499', 'tblTempUsageDetail_20' ) end [2025-04-12 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891499', 'tblTempVendorCDR_20' ) start [2025-04-12 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891499', 'tblTempVendorCDR_20' ) end [2025-04-12 12:16:19] Production.INFO: ProcessCDR(1,14891499,1,1,2) [2025-04-12 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891499', 'tblTempUsageDetail_20' ) start [2025-04-12 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891499', 'tblTempUsageDetail_20' ) end [2025-04-12 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:16:24] Production.INFO: ==25502== Releasing lock... [2025-04-12 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:17:05 [end_date_ymd] => 2025-04-12 12:17:05 [RateCDR] => 1 ) [2025-04-12 12:17: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-04-12 09:17:05' and `end` < '2025-04-12 12:17: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-04-12 12:17:18] Production.INFO: count ==1425 [2025-04-12 12:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:17:05 - End Time 2025-04-12 12:17:05 [2025-04-12 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891504', 'tblTempUsageDetail_20' ) start [2025-04-12 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891504', 'tblTempUsageDetail_20' ) end [2025-04-12 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891504', 'tblTempVendorCDR_20' ) start [2025-04-12 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891504', 'tblTempVendorCDR_20' ) end [2025-04-12 12:17:18] Production.INFO: ProcessCDR(1,14891504,1,1,2) [2025-04-12 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891504', 'tblTempUsageDetail_20' ) start [2025-04-12 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891504', 'tblTempUsageDetail_20' ) end [2025-04-12 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:17:23] Production.INFO: ==25578== Releasing lock... [2025-04-12 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:17:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:18:05 [end_date_ymd] => 2025-04-12 12:18:05 [RateCDR] => 1 ) [2025-04-12 12:18: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-04-12 09:18:05' and `end` < '2025-04-12 12:18: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-04-12 12:18:18] Production.INFO: count ==1428 [2025-04-12 12:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:18:05 - End Time 2025-04-12 12:18:05 [2025-04-12 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891509', 'tblTempUsageDetail_20' ) start [2025-04-12 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891509', 'tblTempUsageDetail_20' ) end [2025-04-12 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891509', 'tblTempVendorCDR_20' ) start [2025-04-12 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891509', 'tblTempVendorCDR_20' ) end [2025-04-12 12:18:18] Production.INFO: ProcessCDR(1,14891509,1,1,2) [2025-04-12 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891509', 'tblTempUsageDetail_20' ) start [2025-04-12 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891509', 'tblTempUsageDetail_20' ) end [2025-04-12 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:18:23] Production.INFO: ==25652== Releasing lock... [2025-04-12 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:18:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:19:06 [end_date_ymd] => 2025-04-12 12:19:06 [RateCDR] => 1 ) [2025-04-12 12:19: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-04-12 09:19:06' and `end` < '2025-04-12 12:19: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-04-12 12:19:19] Production.INFO: count ==1429 [2025-04-12 12:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:19:06 - End Time 2025-04-12 12:19:06 [2025-04-12 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891514', 'tblTempUsageDetail_20' ) start [2025-04-12 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891514', 'tblTempUsageDetail_20' ) end [2025-04-12 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891514', 'tblTempVendorCDR_20' ) start [2025-04-12 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891514', 'tblTempVendorCDR_20' ) end [2025-04-12 12:19:19] Production.INFO: ProcessCDR(1,14891514,1,1,2) [2025-04-12 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891514', 'tblTempUsageDetail_20' ) start [2025-04-12 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891514', 'tblTempUsageDetail_20' ) end [2025-04-12 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:19:24] Production.INFO: ==25730== Releasing lock... [2025-04-12 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:19:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:20:05 [end_date_ymd] => 2025-04-12 12:20:05 [RateCDR] => 1 ) [2025-04-12 12:20: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-04-12 09:20:05' and `end` < '2025-04-12 12:20: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-04-12 12:20:18] Production.INFO: count ==1433 [2025-04-12 12:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:20:05 - End Time 2025-04-12 12:20:05 [2025-04-12 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891520', 'tblTempUsageDetail_20' ) start [2025-04-12 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891520', 'tblTempUsageDetail_20' ) end [2025-04-12 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891520', 'tblTempVendorCDR_20' ) start [2025-04-12 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891520', 'tblTempVendorCDR_20' ) end [2025-04-12 12:20:19] Production.INFO: ProcessCDR(1,14891520,1,1,2) [2025-04-12 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891520', 'tblTempUsageDetail_20' ) start [2025-04-12 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891520', 'tblTempUsageDetail_20' ) end [2025-04-12 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:20:24] Production.INFO: ==25806== Releasing lock... [2025-04-12 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:20:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:21:06 [end_date_ymd] => 2025-04-12 12:21:06 [RateCDR] => 1 ) [2025-04-12 12:21: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-04-12 09:21:06' and `end` < '2025-04-12 12:21: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-04-12 12:21:19] Production.INFO: count ==1491 [2025-04-12 12:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:21:06 - End Time 2025-04-12 12:21:06 [2025-04-12 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891525', 'tblTempUsageDetail_20' ) start [2025-04-12 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891525', 'tblTempUsageDetail_20' ) end [2025-04-12 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891525', 'tblTempVendorCDR_20' ) start [2025-04-12 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891525', 'tblTempVendorCDR_20' ) end [2025-04-12 12:21:19] Production.INFO: ProcessCDR(1,14891525,1,1,2) [2025-04-12 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891525', 'tblTempUsageDetail_20' ) start [2025-04-12 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891525', 'tblTempUsageDetail_20' ) end [2025-04-12 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:21:24] Production.INFO: ==25881== Releasing lock... [2025-04-12 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:21:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:22:05 [end_date_ymd] => 2025-04-12 12:22:05 [RateCDR] => 1 ) [2025-04-12 12:22: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-04-12 09:22:05' and `end` < '2025-04-12 12:22: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-04-12 12:22:18] Production.INFO: count ==1492 [2025-04-12 12:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:22:05 - End Time 2025-04-12 12:22:05 [2025-04-12 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891530', 'tblTempUsageDetail_20' ) start [2025-04-12 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891530', 'tblTempUsageDetail_20' ) end [2025-04-12 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891530', 'tblTempVendorCDR_20' ) start [2025-04-12 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891530', 'tblTempVendorCDR_20' ) end [2025-04-12 12:22:18] Production.INFO: ProcessCDR(1,14891530,1,1,2) [2025-04-12 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891530', 'tblTempUsageDetail_20' ) start [2025-04-12 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891530', 'tblTempUsageDetail_20' ) end [2025-04-12 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:22:22] Production.INFO: ==25955== Releasing lock... [2025-04-12 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:23:05 [end_date_ymd] => 2025-04-12 12:23:05 [RateCDR] => 1 ) [2025-04-12 12:23: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-04-12 09:23:05' and `end` < '2025-04-12 12:23: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-04-12 12:23:18] Production.INFO: count ==1486 [2025-04-12 12:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:23:05 - End Time 2025-04-12 12:23:05 [2025-04-12 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891535', 'tblTempUsageDetail_20' ) start [2025-04-12 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891535', 'tblTempUsageDetail_20' ) end [2025-04-12 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891535', 'tblTempVendorCDR_20' ) start [2025-04-12 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891535', 'tblTempVendorCDR_20' ) end [2025-04-12 12:23:19] Production.INFO: ProcessCDR(1,14891535,1,1,2) [2025-04-12 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891535', 'tblTempUsageDetail_20' ) start [2025-04-12 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891535', 'tblTempUsageDetail_20' ) end [2025-04-12 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:23:22] Production.INFO: ==26030== Releasing lock... [2025-04-12 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:24:05 [end_date_ymd] => 2025-04-12 12:24:05 [RateCDR] => 1 ) [2025-04-12 12:24: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-04-12 09:24:05' and `end` < '2025-04-12 12:24: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-04-12 12:24:18] Production.INFO: count ==1484 [2025-04-12 12:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:24:05 - End Time 2025-04-12 12:24:05 [2025-04-12 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891540', 'tblTempUsageDetail_20' ) start [2025-04-12 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891540', 'tblTempUsageDetail_20' ) end [2025-04-12 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891540', 'tblTempVendorCDR_20' ) start [2025-04-12 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891540', 'tblTempVendorCDR_20' ) end [2025-04-12 12:24:19] Production.INFO: ProcessCDR(1,14891540,1,1,2) [2025-04-12 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891540', 'tblTempUsageDetail_20' ) start [2025-04-12 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891540', 'tblTempUsageDetail_20' ) end [2025-04-12 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:24:22] Production.INFO: ==26108== Releasing lock... [2025-04-12 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:24:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:25:05 [end_date_ymd] => 2025-04-12 12:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 09:25:05' and `end` < '2025-04-12 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-04-12 12:25:18] Production.INFO: count ==1479 [2025-04-12 12:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:25:05 - End Time 2025-04-12 12:25:05 [2025-04-12 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891545', 'tblTempUsageDetail_20' ) start [2025-04-12 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891545', 'tblTempUsageDetail_20' ) end [2025-04-12 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891545', 'tblTempVendorCDR_20' ) start [2025-04-12 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891545', 'tblTempVendorCDR_20' ) end [2025-04-12 12:25:19] Production.INFO: ProcessCDR(1,14891545,1,1,2) [2025-04-12 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891545', 'tblTempUsageDetail_20' ) start [2025-04-12 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891545', 'tblTempUsageDetail_20' ) end [2025-04-12 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:25:22] Production.INFO: ==26184== Releasing lock... [2025-04-12 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:25:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:26:05 [end_date_ymd] => 2025-04-12 12:26:05 [RateCDR] => 1 ) [2025-04-12 12:26: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-04-12 09:26:05' and `end` < '2025-04-12 12:26: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-04-12 12:26:18] Production.INFO: count ==1477 [2025-04-12 12:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:26:05 - End Time 2025-04-12 12:26:05 [2025-04-12 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891550', 'tblTempUsageDetail_20' ) start [2025-04-12 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891550', 'tblTempUsageDetail_20' ) end [2025-04-12 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891550', 'tblTempVendorCDR_20' ) start [2025-04-12 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891550', 'tblTempVendorCDR_20' ) end [2025-04-12 12:26:19] Production.INFO: ProcessCDR(1,14891550,1,1,2) [2025-04-12 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891550', 'tblTempUsageDetail_20' ) start [2025-04-12 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891550', 'tblTempUsageDetail_20' ) end [2025-04-12 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:26:24] Production.INFO: ==26259== Releasing lock... [2025-04-12 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:26:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:27:05 [end_date_ymd] => 2025-04-12 12:27:05 [RateCDR] => 1 ) [2025-04-12 12:27: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-04-12 09:27:05' and `end` < '2025-04-12 12:27: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-04-12 12:27:19] Production.INFO: count ==1475 [2025-04-12 12:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:27:05 - End Time 2025-04-12 12:27:05 [2025-04-12 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891555', 'tblTempUsageDetail_20' ) start [2025-04-12 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891555', 'tblTempUsageDetail_20' ) end [2025-04-12 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891555', 'tblTempVendorCDR_20' ) start [2025-04-12 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891555', 'tblTempVendorCDR_20' ) end [2025-04-12 12:27:19] Production.INFO: ProcessCDR(1,14891555,1,1,2) [2025-04-12 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891555', 'tblTempUsageDetail_20' ) start [2025-04-12 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891555', 'tblTempUsageDetail_20' ) end [2025-04-12 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:27:22] Production.INFO: ==26332== Releasing lock... [2025-04-12 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:27:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:28:05 [end_date_ymd] => 2025-04-12 12:28:05 [RateCDR] => 1 ) [2025-04-12 12:28: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-04-12 09:28:05' and `end` < '2025-04-12 12:28: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-04-12 12:28:18] Production.INFO: count ==1475 [2025-04-12 12:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:28:05 - End Time 2025-04-12 12:28:05 [2025-04-12 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891560', 'tblTempUsageDetail_20' ) start [2025-04-12 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891560', 'tblTempUsageDetail_20' ) end [2025-04-12 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891560', 'tblTempVendorCDR_20' ) start [2025-04-12 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891560', 'tblTempVendorCDR_20' ) end [2025-04-12 12:28:18] Production.INFO: ProcessCDR(1,14891560,1,1,2) [2025-04-12 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891560', 'tblTempUsageDetail_20' ) start [2025-04-12 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891560', 'tblTempUsageDetail_20' ) end [2025-04-12 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:28:22] Production.INFO: ==26410== Releasing lock... [2025-04-12 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:28:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:29:05 [end_date_ymd] => 2025-04-12 12:29:05 [RateCDR] => 1 ) [2025-04-12 12:29: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-04-12 09:29:05' and `end` < '2025-04-12 12:29: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-04-12 12:29:18] Production.INFO: count ==1483 [2025-04-12 12:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:29:05 - End Time 2025-04-12 12:29:05 [2025-04-12 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891565', 'tblTempUsageDetail_20' ) start [2025-04-12 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891565', 'tblTempUsageDetail_20' ) end [2025-04-12 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891565', 'tblTempVendorCDR_20' ) start [2025-04-12 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891565', 'tblTempVendorCDR_20' ) end [2025-04-12 12:29:19] Production.INFO: ProcessCDR(1,14891565,1,1,2) [2025-04-12 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891565', 'tblTempUsageDetail_20' ) start [2025-04-12 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891565', 'tblTempUsageDetail_20' ) end [2025-04-12 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:29:22] Production.INFO: ==26499== Releasing lock... [2025-04-12 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:29:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:30:05 [end_date_ymd] => 2025-04-12 12:30:05 [RateCDR] => 1 ) [2025-04-12 12:30: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-04-12 09:30:05' and `end` < '2025-04-12 12:30: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-04-12 12:30:18] Production.INFO: count ==1492 [2025-04-12 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:30:05 - End Time 2025-04-12 12:30:05 [2025-04-12 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891571', 'tblTempUsageDetail_20' ) start [2025-04-12 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891571', 'tblTempUsageDetail_20' ) end [2025-04-12 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891571', 'tblTempVendorCDR_20' ) start [2025-04-12 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891571', 'tblTempVendorCDR_20' ) end [2025-04-12 12:30:19] Production.INFO: ProcessCDR(1,14891571,1,1,2) [2025-04-12 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891571', 'tblTempUsageDetail_20' ) start [2025-04-12 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891571', 'tblTempUsageDetail_20' ) end [2025-04-12 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:30:24] Production.INFO: ==26625== Releasing lock... [2025-04-12 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:30:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:31:05 [end_date_ymd] => 2025-04-12 12:31:05 [RateCDR] => 1 ) [2025-04-12 12:31: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-04-12 09:31:05' and `end` < '2025-04-12 12:31: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-04-12 12:31:18] Production.INFO: count ==1503 [2025-04-12 12:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:31:05 - End Time 2025-04-12 12:31:05 [2025-04-12 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891576', 'tblTempUsageDetail_20' ) start [2025-04-12 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891576', 'tblTempUsageDetail_20' ) end [2025-04-12 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891576', 'tblTempVendorCDR_20' ) start [2025-04-12 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891576', 'tblTempVendorCDR_20' ) end [2025-04-12 12:31:18] Production.INFO: ProcessCDR(1,14891576,1,1,2) [2025-04-12 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891576', 'tblTempUsageDetail_20' ) start [2025-04-12 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891576', 'tblTempUsageDetail_20' ) end [2025-04-12 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:31:22] Production.INFO: ==26710== Releasing lock... [2025-04-12 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:31:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:32:05 [end_date_ymd] => 2025-04-12 12:32:05 [RateCDR] => 1 ) [2025-04-12 12:32: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-04-12 09:32:05' and `end` < '2025-04-12 12:32: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-04-12 12:32:18] Production.INFO: count ==1502 [2025-04-12 12:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:32:05 - End Time 2025-04-12 12:32:05 [2025-04-12 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891581', 'tblTempUsageDetail_20' ) start [2025-04-12 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891581', 'tblTempUsageDetail_20' ) end [2025-04-12 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891581', 'tblTempVendorCDR_20' ) start [2025-04-12 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891581', 'tblTempVendorCDR_20' ) end [2025-04-12 12:32:19] Production.INFO: ProcessCDR(1,14891581,1,1,2) [2025-04-12 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891581', 'tblTempUsageDetail_20' ) start [2025-04-12 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891581', 'tblTempUsageDetail_20' ) end [2025-04-12 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:32:22] Production.INFO: ==26792== Releasing lock... [2025-04-12 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:32:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:33:05 [end_date_ymd] => 2025-04-12 12:33:05 [RateCDR] => 1 ) [2025-04-12 12:33: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-04-12 09:33:05' and `end` < '2025-04-12 12:33: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-04-12 12:33:18] Production.INFO: count ==1508 [2025-04-12 12:33:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:33:05 - End Time 2025-04-12 12:33:05 [2025-04-12 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891586', 'tblTempUsageDetail_20' ) start [2025-04-12 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891586', 'tblTempUsageDetail_20' ) end [2025-04-12 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891586', 'tblTempVendorCDR_20' ) start [2025-04-12 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891586', 'tblTempVendorCDR_20' ) end [2025-04-12 12:33:19] Production.INFO: ProcessCDR(1,14891586,1,1,2) [2025-04-12 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891586', 'tblTempUsageDetail_20' ) start [2025-04-12 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891586', 'tblTempUsageDetail_20' ) end [2025-04-12 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:33:22] Production.INFO: ==26874== Releasing lock... [2025-04-12 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:34:05 [end_date_ymd] => 2025-04-12 12:34:05 [RateCDR] => 1 ) [2025-04-12 12:34: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-04-12 09:34:05' and `end` < '2025-04-12 12:34: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-04-12 12:34:18] Production.INFO: count ==1505 [2025-04-12 12:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:34:05 - End Time 2025-04-12 12:34:05 [2025-04-12 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891591', 'tblTempUsageDetail_20' ) start [2025-04-12 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891591', 'tblTempUsageDetail_20' ) end [2025-04-12 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891591', 'tblTempVendorCDR_20' ) start [2025-04-12 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891591', 'tblTempVendorCDR_20' ) end [2025-04-12 12:34:18] Production.INFO: ProcessCDR(1,14891591,1,1,2) [2025-04-12 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891591', 'tblTempUsageDetail_20' ) start [2025-04-12 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891591', 'tblTempUsageDetail_20' ) end [2025-04-12 12:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:34:22] Production.INFO: ==26960== Releasing lock... [2025-04-12 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:34:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:35:05 [end_date_ymd] => 2025-04-12 12:35:05 [RateCDR] => 1 ) [2025-04-12 12:35: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-04-12 09:35:05' and `end` < '2025-04-12 12:35: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-04-12 12:35:18] Production.INFO: count ==1503 [2025-04-12 12:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:35:05 - End Time 2025-04-12 12:35:05 [2025-04-12 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891596', 'tblTempUsageDetail_20' ) start [2025-04-12 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891596', 'tblTempUsageDetail_20' ) end [2025-04-12 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891596', 'tblTempVendorCDR_20' ) start [2025-04-12 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891596', 'tblTempVendorCDR_20' ) end [2025-04-12 12:35:18] Production.INFO: ProcessCDR(1,14891596,1,1,2) [2025-04-12 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891596', 'tblTempUsageDetail_20' ) start [2025-04-12 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891596', 'tblTempUsageDetail_20' ) end [2025-04-12 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:35:22] Production.INFO: ==27035== Releasing lock... [2025-04-12 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:36:05 [end_date_ymd] => 2025-04-12 12:36:05 [RateCDR] => 1 ) [2025-04-12 12:36: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-04-12 09:36:05' and `end` < '2025-04-12 12:36: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-04-12 12:36:18] Production.INFO: count ==1498 [2025-04-12 12:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:36:05 - End Time 2025-04-12 12:36:05 [2025-04-12 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891601', 'tblTempUsageDetail_20' ) start [2025-04-12 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891601', 'tblTempUsageDetail_20' ) end [2025-04-12 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891601', 'tblTempVendorCDR_20' ) start [2025-04-12 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891601', 'tblTempVendorCDR_20' ) end [2025-04-12 12:36:18] Production.INFO: ProcessCDR(1,14891601,1,1,2) [2025-04-12 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891601', 'tblTempUsageDetail_20' ) start [2025-04-12 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891601', 'tblTempUsageDetail_20' ) end [2025-04-12 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:36:23] Production.INFO: ==27113== Releasing lock... [2025-04-12 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:37:05 [end_date_ymd] => 2025-04-12 12:37:05 [RateCDR] => 1 ) [2025-04-12 12:37: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-04-12 09:37:05' and `end` < '2025-04-12 12:37: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-04-12 12:37:18] Production.INFO: count ==1491 [2025-04-12 12:37:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:37:05 - End Time 2025-04-12 12:37:05 [2025-04-12 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891606', 'tblTempUsageDetail_20' ) start [2025-04-12 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891606', 'tblTempUsageDetail_20' ) end [2025-04-12 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891606', 'tblTempVendorCDR_20' ) start [2025-04-12 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891606', 'tblTempVendorCDR_20' ) end [2025-04-12 12:37:19] Production.INFO: ProcessCDR(1,14891606,1,1,2) [2025-04-12 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891606', 'tblTempUsageDetail_20' ) start [2025-04-12 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891606', 'tblTempUsageDetail_20' ) end [2025-04-12 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:37:22] Production.INFO: ==27183== Releasing lock... [2025-04-12 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:38:06 [end_date_ymd] => 2025-04-12 12:38:06 [RateCDR] => 1 ) [2025-04-12 12:38: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-04-12 09:38:06' and `end` < '2025-04-12 12:38: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-04-12 12:38:19] Production.INFO: count ==1486 [2025-04-12 12:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:38:06 - End Time 2025-04-12 12:38:06 [2025-04-12 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891611', 'tblTempUsageDetail_20' ) start [2025-04-12 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891611', 'tblTempUsageDetail_20' ) end [2025-04-12 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891611', 'tblTempVendorCDR_20' ) start [2025-04-12 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891611', 'tblTempVendorCDR_20' ) end [2025-04-12 12:38:19] Production.INFO: ProcessCDR(1,14891611,1,1,2) [2025-04-12 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891611', 'tblTempUsageDetail_20' ) start [2025-04-12 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891611', 'tblTempUsageDetail_20' ) end [2025-04-12 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:38:23] Production.INFO: ==27260== Releasing lock... [2025-04-12 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:38:23] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:39:05 [end_date_ymd] => 2025-04-12 12:39:05 [RateCDR] => 1 ) [2025-04-12 12:39: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-04-12 09:39:05' and `end` < '2025-04-12 12:39: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-04-12 12:39:18] Production.INFO: count ==1485 [2025-04-12 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:39:05 - End Time 2025-04-12 12:39:05 [2025-04-12 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891616', 'tblTempUsageDetail_20' ) start [2025-04-12 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891616', 'tblTempUsageDetail_20' ) end [2025-04-12 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891616', 'tblTempVendorCDR_20' ) start [2025-04-12 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891616', 'tblTempVendorCDR_20' ) end [2025-04-12 12:39:18] Production.INFO: ProcessCDR(1,14891616,1,1,2) [2025-04-12 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891616', 'tblTempUsageDetail_20' ) start [2025-04-12 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891616', 'tblTempUsageDetail_20' ) end [2025-04-12 12:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:39:21] Production.INFO: ==27342== Releasing lock... [2025-04-12 12:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:39:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:40:06 [end_date_ymd] => 2025-04-12 12:40:06 [RateCDR] => 1 ) [2025-04-12 12:40: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-04-12 09:40:06' and `end` < '2025-04-12 12:40: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-04-12 12:40:19] Production.INFO: count ==1497 [2025-04-12 12:40:20] Production.ERROR: pbx CDR StartTime 2025-04-12 09:40:06 - End Time 2025-04-12 12:40:06 [2025-04-12 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891622', 'tblTempUsageDetail_20' ) start [2025-04-12 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891622', 'tblTempUsageDetail_20' ) end [2025-04-12 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891622', 'tblTempVendorCDR_20' ) start [2025-04-12 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891622', 'tblTempVendorCDR_20' ) end [2025-04-12 12:40:20] Production.INFO: ProcessCDR(1,14891622,1,1,2) [2025-04-12 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891622', 'tblTempUsageDetail_20' ) start [2025-04-12 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891622', 'tblTempUsageDetail_20' ) end [2025-04-12 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:40:25] Production.INFO: ==27421== Releasing lock... [2025-04-12 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:40:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:41:05 [end_date_ymd] => 2025-04-12 12:41:05 [RateCDR] => 1 ) [2025-04-12 12:41: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-04-12 09:41:05' and `end` < '2025-04-12 12:41: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-04-12 12:41:18] Production.INFO: count ==1522 [2025-04-12 12:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:41:05 - End Time 2025-04-12 12:41:05 [2025-04-12 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891627', 'tblTempUsageDetail_20' ) start [2025-04-12 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891627', 'tblTempUsageDetail_20' ) end [2025-04-12 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891627', 'tblTempVendorCDR_20' ) start [2025-04-12 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891627', 'tblTempVendorCDR_20' ) end [2025-04-12 12:41:18] Production.INFO: ProcessCDR(1,14891627,1,1,2) [2025-04-12 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891627', 'tblTempUsageDetail_20' ) start [2025-04-12 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891627', 'tblTempUsageDetail_20' ) end [2025-04-12 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:41:23] Production.INFO: ==27494== Releasing lock... [2025-04-12 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:42:05 [end_date_ymd] => 2025-04-12 12:42:05 [RateCDR] => 1 ) [2025-04-12 12:42: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-04-12 09:42:05' and `end` < '2025-04-12 12:42: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-04-12 12:42:18] Production.INFO: count ==1521 [2025-04-12 12:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:42:05 - End Time 2025-04-12 12:42:05 [2025-04-12 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891632', 'tblTempUsageDetail_20' ) start [2025-04-12 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891632', 'tblTempUsageDetail_20' ) end [2025-04-12 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891632', 'tblTempVendorCDR_20' ) start [2025-04-12 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891632', 'tblTempVendorCDR_20' ) end [2025-04-12 12:42:19] Production.INFO: ProcessCDR(1,14891632,1,1,2) [2025-04-12 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891632', 'tblTempUsageDetail_20' ) start [2025-04-12 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891632', 'tblTempUsageDetail_20' ) end [2025-04-12 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:42:24] Production.INFO: ==27565== Releasing lock... [2025-04-12 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:43:04 [end_date_ymd] => 2025-04-12 12:43:04 [RateCDR] => 1 ) [2025-04-12 12:43: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-04-12 09:43:04' and `end` < '2025-04-12 12:43: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-04-12 12:43:17] Production.INFO: count ==1519 [2025-04-12 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:43:04 - End Time 2025-04-12 12:43:04 [2025-04-12 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891637', 'tblTempUsageDetail_20' ) start [2025-04-12 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891637', 'tblTempUsageDetail_20' ) end [2025-04-12 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891637', 'tblTempVendorCDR_20' ) start [2025-04-12 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891637', 'tblTempVendorCDR_20' ) end [2025-04-12 12:43:18] Production.INFO: ProcessCDR(1,14891637,1,1,2) [2025-04-12 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891637', 'tblTempUsageDetail_20' ) start [2025-04-12 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891637', 'tblTempUsageDetail_20' ) end [2025-04-12 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:43:21] Production.INFO: ==27637== Releasing lock... [2025-04-12 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:43:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:44:05 [end_date_ymd] => 2025-04-12 12:44:05 [RateCDR] => 1 ) [2025-04-12 12:44: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-04-12 09:44:05' and `end` < '2025-04-12 12:44: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-04-12 12:44:18] Production.INFO: count ==1520 [2025-04-12 12:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:44:05 - End Time 2025-04-12 12:44:05 [2025-04-12 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891642', 'tblTempUsageDetail_20' ) start [2025-04-12 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891642', 'tblTempUsageDetail_20' ) end [2025-04-12 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891642', 'tblTempVendorCDR_20' ) start [2025-04-12 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891642', 'tblTempVendorCDR_20' ) end [2025-04-12 12:44:18] Production.INFO: ProcessCDR(1,14891642,1,1,2) [2025-04-12 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891642', 'tblTempUsageDetail_20' ) start [2025-04-12 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891642', 'tblTempUsageDetail_20' ) end [2025-04-12 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:44:23] Production.INFO: ==27716== Releasing lock... [2025-04-12 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:44:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:45:05 [end_date_ymd] => 2025-04-12 12:45:05 [RateCDR] => 1 ) [2025-04-12 12:45: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-04-12 09:45:05' and `end` < '2025-04-12 12:45: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-04-12 12:45:18] Production.INFO: count ==1517 [2025-04-12 12:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:45:05 - End Time 2025-04-12 12:45:05 [2025-04-12 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891647', 'tblTempUsageDetail_20' ) start [2025-04-12 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891647', 'tblTempUsageDetail_20' ) end [2025-04-12 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891647', 'tblTempVendorCDR_20' ) start [2025-04-12 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891647', 'tblTempVendorCDR_20' ) end [2025-04-12 12:45:18] Production.INFO: ProcessCDR(1,14891647,1,1,2) [2025-04-12 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891647', 'tblTempUsageDetail_20' ) start [2025-04-12 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891647', 'tblTempUsageDetail_20' ) end [2025-04-12 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:45:23] Production.INFO: ==27795== Releasing lock... [2025-04-12 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:45:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:46:05 [end_date_ymd] => 2025-04-12 12:46:05 [RateCDR] => 1 ) [2025-04-12 12:46: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-04-12 09:46:05' and `end` < '2025-04-12 12:46: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-04-12 12:46:18] Production.INFO: count ==1516 [2025-04-12 12:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:46:05 - End Time 2025-04-12 12:46:05 [2025-04-12 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891652', 'tblTempUsageDetail_20' ) start [2025-04-12 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891652', 'tblTempUsageDetail_20' ) end [2025-04-12 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891652', 'tblTempVendorCDR_20' ) start [2025-04-12 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891652', 'tblTempVendorCDR_20' ) end [2025-04-12 12:46:19] Production.INFO: ProcessCDR(1,14891652,1,1,2) [2025-04-12 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891652', 'tblTempUsageDetail_20' ) start [2025-04-12 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891652', 'tblTempUsageDetail_20' ) end [2025-04-12 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:46:22] Production.INFO: ==27907== Releasing lock... [2025-04-12 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:47:05 [end_date_ymd] => 2025-04-12 12:47:05 [RateCDR] => 1 ) [2025-04-12 12:47: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-04-12 09:47:05' and `end` < '2025-04-12 12:47: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-04-12 12:47:18] Production.INFO: count ==1519 [2025-04-12 12:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:47:05 - End Time 2025-04-12 12:47:05 [2025-04-12 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891657', 'tblTempUsageDetail_20' ) start [2025-04-12 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891657', 'tblTempUsageDetail_20' ) end [2025-04-12 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891657', 'tblTempVendorCDR_20' ) start [2025-04-12 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891657', 'tblTempVendorCDR_20' ) end [2025-04-12 12:47:18] Production.INFO: ProcessCDR(1,14891657,1,1,2) [2025-04-12 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891657', 'tblTempUsageDetail_20' ) start [2025-04-12 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891657', 'tblTempUsageDetail_20' ) end [2025-04-12 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:47:23] Production.INFO: ==27980== Releasing lock... [2025-04-12 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:47:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:48:05 [end_date_ymd] => 2025-04-12 12:48:05 [RateCDR] => 1 ) [2025-04-12 12:48: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-04-12 09:48:05' and `end` < '2025-04-12 12:48: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-04-12 12:48:18] Production.INFO: count ==1519 [2025-04-12 12:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:48:05 - End Time 2025-04-12 12:48:05 [2025-04-12 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891662', 'tblTempUsageDetail_20' ) start [2025-04-12 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891662', 'tblTempUsageDetail_20' ) end [2025-04-12 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891662', 'tblTempVendorCDR_20' ) start [2025-04-12 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891662', 'tblTempVendorCDR_20' ) end [2025-04-12 12:48:18] Production.INFO: ProcessCDR(1,14891662,1,1,2) [2025-04-12 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891662', 'tblTempUsageDetail_20' ) start [2025-04-12 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891662', 'tblTempUsageDetail_20' ) end [2025-04-12 12:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:48:23] Production.INFO: ==28051== Releasing lock... [2025-04-12 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:48:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:49:05 [end_date_ymd] => 2025-04-12 12:49:05 [RateCDR] => 1 ) [2025-04-12 12:49: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-04-12 09:49:05' and `end` < '2025-04-12 12:49: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-04-12 12:49:18] Production.INFO: count ==1521 [2025-04-12 12:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:49:05 - End Time 2025-04-12 12:49:05 [2025-04-12 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891667', 'tblTempUsageDetail_20' ) start [2025-04-12 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891667', 'tblTempUsageDetail_20' ) end [2025-04-12 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891667', 'tblTempVendorCDR_20' ) start [2025-04-12 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891667', 'tblTempVendorCDR_20' ) end [2025-04-12 12:49:19] Production.INFO: ProcessCDR(1,14891667,1,1,2) [2025-04-12 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891667', 'tblTempUsageDetail_20' ) start [2025-04-12 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891667', 'tblTempUsageDetail_20' ) end [2025-04-12 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:49:23] Production.INFO: ==28129== Releasing lock... [2025-04-12 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:49:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:50:06 [end_date_ymd] => 2025-04-12 12:50:06 [RateCDR] => 1 ) [2025-04-12 12:50: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-04-12 09:50:06' and `end` < '2025-04-12 12:50: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-04-12 12:50:19] Production.INFO: count ==1510 [2025-04-12 12:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:50:06 - End Time 2025-04-12 12:50:06 [2025-04-12 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891673', 'tblTempUsageDetail_20' ) start [2025-04-12 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891673', 'tblTempUsageDetail_20' ) end [2025-04-12 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891673', 'tblTempVendorCDR_20' ) start [2025-04-12 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891673', 'tblTempVendorCDR_20' ) end [2025-04-12 12:50:20] Production.INFO: ProcessCDR(1,14891673,1,1,2) [2025-04-12 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891673', 'tblTempUsageDetail_20' ) start [2025-04-12 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891673', 'tblTempUsageDetail_20' ) end [2025-04-12 12:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:50:23] Production.INFO: ==28207== Releasing lock... [2025-04-12 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:51:04 [end_date_ymd] => 2025-04-12 12:51:04 [RateCDR] => 1 ) [2025-04-12 12:51: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-04-12 09:51:04' and `end` < '2025-04-12 12:51: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-04-12 12:51:17] Production.INFO: count ==1501 [2025-04-12 12:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:51:04 - End Time 2025-04-12 12:51:04 [2025-04-12 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891678', 'tblTempUsageDetail_20' ) start [2025-04-12 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891678', 'tblTempUsageDetail_20' ) end [2025-04-12 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891678', 'tblTempVendorCDR_20' ) start [2025-04-12 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891678', 'tblTempVendorCDR_20' ) end [2025-04-12 12:51:18] Production.INFO: ProcessCDR(1,14891678,1,1,2) [2025-04-12 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891678', 'tblTempUsageDetail_20' ) start [2025-04-12 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891678', 'tblTempUsageDetail_20' ) end [2025-04-12 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:51:21] Production.INFO: ==28285== Releasing lock... [2025-04-12 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:51:21] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:52:05 [end_date_ymd] => 2025-04-12 12:52:05 [RateCDR] => 1 ) [2025-04-12 12:52: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-04-12 09:52:05' and `end` < '2025-04-12 12:52: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-04-12 12:52:18] Production.INFO: count ==1505 [2025-04-12 12:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:52:05 - End Time 2025-04-12 12:52:05 [2025-04-12 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891683', 'tblTempUsageDetail_20' ) start [2025-04-12 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891683', 'tblTempUsageDetail_20' ) end [2025-04-12 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891683', 'tblTempVendorCDR_20' ) start [2025-04-12 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891683', 'tblTempVendorCDR_20' ) end [2025-04-12 12:52:18] Production.INFO: ProcessCDR(1,14891683,1,1,2) [2025-04-12 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891683', 'tblTempUsageDetail_20' ) start [2025-04-12 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891683', 'tblTempUsageDetail_20' ) end [2025-04-12 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:52:23] Production.INFO: ==28359== Releasing lock... [2025-04-12 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:52:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:53:05 [end_date_ymd] => 2025-04-12 12:53:05 [RateCDR] => 1 ) [2025-04-12 12:53: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-04-12 09:53:05' and `end` < '2025-04-12 12:53: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-04-12 12:53:18] Production.INFO: count ==1499 [2025-04-12 12:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:53:05 - End Time 2025-04-12 12:53:05 [2025-04-12 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891688', 'tblTempUsageDetail_20' ) start [2025-04-12 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891688', 'tblTempUsageDetail_20' ) end [2025-04-12 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891688', 'tblTempVendorCDR_20' ) start [2025-04-12 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891688', 'tblTempVendorCDR_20' ) end [2025-04-12 12:53:19] Production.INFO: ProcessCDR(1,14891688,1,1,2) [2025-04-12 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891688', 'tblTempUsageDetail_20' ) start [2025-04-12 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891688', 'tblTempUsageDetail_20' ) end [2025-04-12 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:53:22] Production.INFO: ==28433== Releasing lock... [2025-04-12 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:54:05 [end_date_ymd] => 2025-04-12 12:54:05 [RateCDR] => 1 ) [2025-04-12 12:54: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-04-12 09:54:05' and `end` < '2025-04-12 12:54: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-04-12 12:54:18] Production.INFO: count ==1499 [2025-04-12 12:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:54:05 - End Time 2025-04-12 12:54:05 [2025-04-12 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891693', 'tblTempUsageDetail_20' ) start [2025-04-12 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891693', 'tblTempUsageDetail_20' ) end [2025-04-12 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891693', 'tblTempVendorCDR_20' ) start [2025-04-12 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891693', 'tblTempVendorCDR_20' ) end [2025-04-12 12:54:18] Production.INFO: ProcessCDR(1,14891693,1,1,2) [2025-04-12 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891693', 'tblTempUsageDetail_20' ) start [2025-04-12 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891693', 'tblTempUsageDetail_20' ) end [2025-04-12 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:54:21] Production.INFO: ==28503== Releasing lock... [2025-04-12 12:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:54:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:55:05 [end_date_ymd] => 2025-04-12 12:55:05 [RateCDR] => 1 ) [2025-04-12 12:55: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-04-12 09:55:05' and `end` < '2025-04-12 12:55: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-04-12 12:55:18] Production.INFO: count ==1495 [2025-04-12 12:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 09:55:05 - End Time 2025-04-12 12:55:05 [2025-04-12 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891698', 'tblTempUsageDetail_20' ) start [2025-04-12 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891698', 'tblTempUsageDetail_20' ) end [2025-04-12 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891698', 'tblTempVendorCDR_20' ) start [2025-04-12 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891698', 'tblTempVendorCDR_20' ) end [2025-04-12 12:55:19] Production.INFO: ProcessCDR(1,14891698,1,1,2) [2025-04-12 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891698', 'tblTempUsageDetail_20' ) start [2025-04-12 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891698', 'tblTempUsageDetail_20' ) end [2025-04-12 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:55:23] Production.INFO: ==28578== Releasing lock... [2025-04-12 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:55:23] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:56:05 [end_date_ymd] => 2025-04-12 12:56:05 [RateCDR] => 1 ) [2025-04-12 12:56: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-04-12 09:56:05' and `end` < '2025-04-12 12:56: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-04-12 12:56:18] Production.INFO: count ==1493 [2025-04-12 12:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:56:05 - End Time 2025-04-12 12:56:05 [2025-04-12 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891703', 'tblTempUsageDetail_20' ) start [2025-04-12 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891703', 'tblTempUsageDetail_20' ) end [2025-04-12 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891703', 'tblTempVendorCDR_20' ) start [2025-04-12 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891703', 'tblTempVendorCDR_20' ) end [2025-04-12 12:56:18] Production.INFO: ProcessCDR(1,14891703,1,1,2) [2025-04-12 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891703', 'tblTempUsageDetail_20' ) start [2025-04-12 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891703', 'tblTempUsageDetail_20' ) end [2025-04-12 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:56:22] Production.INFO: ==28650== Releasing lock... [2025-04-12 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:56:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:57:05 [end_date_ymd] => 2025-04-12 12:57:05 [RateCDR] => 1 ) [2025-04-12 12:57: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-04-12 09:57:05' and `end` < '2025-04-12 12:57: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-04-12 12:57:18] Production.INFO: count ==1492 [2025-04-12 12:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:57:05 - End Time 2025-04-12 12:57:05 [2025-04-12 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891708', 'tblTempUsageDetail_20' ) start [2025-04-12 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891708', 'tblTempUsageDetail_20' ) end [2025-04-12 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891708', 'tblTempVendorCDR_20' ) start [2025-04-12 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891708', 'tblTempVendorCDR_20' ) end [2025-04-12 12:57:18] Production.INFO: ProcessCDR(1,14891708,1,1,2) [2025-04-12 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891708', 'tblTempUsageDetail_20' ) start [2025-04-12 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891708', 'tblTempUsageDetail_20' ) end [2025-04-12 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:57:22] Production.INFO: ==28723== Releasing lock... [2025-04-12 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:57:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:58:05 [end_date_ymd] => 2025-04-12 12:58:05 [RateCDR] => 1 ) [2025-04-12 12:58: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-04-12 09:58:05' and `end` < '2025-04-12 12:58: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-04-12 12:58:18] Production.INFO: count ==1489 [2025-04-12 12:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:58:05 - End Time 2025-04-12 12:58:05 [2025-04-12 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891713', 'tblTempUsageDetail_20' ) start [2025-04-12 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891713', 'tblTempUsageDetail_20' ) end [2025-04-12 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891713', 'tblTempVendorCDR_20' ) start [2025-04-12 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891713', 'tblTempVendorCDR_20' ) end [2025-04-12 12:58:18] Production.INFO: ProcessCDR(1,14891713,1,1,2) [2025-04-12 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891713', 'tblTempUsageDetail_20' ) start [2025-04-12 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891713', 'tblTempUsageDetail_20' ) end [2025-04-12 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:58:22] Production.INFO: ==28799== Releasing lock... [2025-04-12 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:58:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 09:59:05 [end_date_ymd] => 2025-04-12 12:59:05 [RateCDR] => 1 ) [2025-04-12 12:59: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-04-12 09:59:05' and `end` < '2025-04-12 12:59: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-04-12 12:59:18] Production.INFO: count ==1512 [2025-04-12 12:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 09:59:05 - End Time 2025-04-12 12:59:05 [2025-04-12 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891718', 'tblTempUsageDetail_20' ) start [2025-04-12 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891718', 'tblTempUsageDetail_20' ) end [2025-04-12 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891718', 'tblTempVendorCDR_20' ) start [2025-04-12 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891718', 'tblTempVendorCDR_20' ) end [2025-04-12 12:59:18] Production.INFO: ProcessCDR(1,14891718,1,1,2) [2025-04-12 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891718', 'tblTempUsageDetail_20' ) start [2025-04-12 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891718', 'tblTempUsageDetail_20' ) end [2025-04-12 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 12:59:23] Production.INFO: ==28870== Releasing lock... [2025-04-12 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 12:59:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:00:06 [end_date_ymd] => 2025-04-12 13:00:06 [RateCDR] => 1 ) [2025-04-12 13:00: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-04-12 10:00:06' and `end` < '2025-04-12 13:00: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-04-12 13:00:19] Production.INFO: count ==1510 [2025-04-12 13:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:00:06 - End Time 2025-04-12 13:00:06 [2025-04-12 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891724', 'tblTempUsageDetail_20' ) start [2025-04-12 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891724', 'tblTempUsageDetail_20' ) end [2025-04-12 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891724', 'tblTempVendorCDR_20' ) start [2025-04-12 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891724', 'tblTempVendorCDR_20' ) end [2025-04-12 13:00:19] Production.INFO: ProcessCDR(1,14891724,1,1,2) [2025-04-12 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891724', 'tblTempUsageDetail_20' ) start [2025-04-12 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891724', 'tblTempUsageDetail_20' ) end [2025-04-12 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:00:23] Production.INFO: ==28947== Releasing lock... [2025-04-12 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:00:23] Production.INFO: 39 MB #Memory Used# [2025-04-12 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:01:05 [end_date_ymd] => 2025-04-12 13:01:05 [RateCDR] => 1 ) [2025-04-12 13:01: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-04-12 10:01:05' and `end` < '2025-04-12 13:01: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-04-12 13:01:18] Production.INFO: count ==1538 [2025-04-12 13:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:01:05 - End Time 2025-04-12 13:01:05 [2025-04-12 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891729', 'tblTempUsageDetail_20' ) start [2025-04-12 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891729', 'tblTempUsageDetail_20' ) end [2025-04-12 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891729', 'tblTempVendorCDR_20' ) start [2025-04-12 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891729', 'tblTempVendorCDR_20' ) end [2025-04-12 13:01:18] Production.INFO: ProcessCDR(1,14891729,1,1,2) [2025-04-12 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891729', 'tblTempUsageDetail_20' ) start [2025-04-12 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891729', 'tblTempUsageDetail_20' ) end [2025-04-12 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:01:24] Production.INFO: ==29069== Releasing lock... [2025-04-12 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:01:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:02:06 [end_date_ymd] => 2025-04-12 13:02:06 [RateCDR] => 1 ) [2025-04-12 13:02: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-04-12 10:02:06' and `end` < '2025-04-12 13:02: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-04-12 13:02:19] Production.INFO: count ==1537 [2025-04-12 13:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:02:06 - End Time 2025-04-12 13:02:06 [2025-04-12 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891734', 'tblTempUsageDetail_20' ) start [2025-04-12 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891734', 'tblTempUsageDetail_20' ) end [2025-04-12 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891734', 'tblTempVendorCDR_20' ) start [2025-04-12 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891734', 'tblTempVendorCDR_20' ) end [2025-04-12 13:02:19] Production.INFO: ProcessCDR(1,14891734,1,1,2) [2025-04-12 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891734', 'tblTempUsageDetail_20' ) start [2025-04-12 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891734', 'tblTempUsageDetail_20' ) end [2025-04-12 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:02:23] Production.INFO: ==29140== Releasing lock... [2025-04-12 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:02:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:03:05 [end_date_ymd] => 2025-04-12 13:03:05 [RateCDR] => 1 ) [2025-04-12 13:03: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-04-12 10:03:05' and `end` < '2025-04-12 13:03: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-04-12 13:03:18] Production.INFO: count ==1533 [2025-04-12 13:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:03:05 - End Time 2025-04-12 13:03:05 [2025-04-12 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891739', 'tblTempUsageDetail_20' ) start [2025-04-12 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891739', 'tblTempUsageDetail_20' ) end [2025-04-12 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891739', 'tblTempVendorCDR_20' ) start [2025-04-12 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891739', 'tblTempVendorCDR_20' ) end [2025-04-12 13:03:18] Production.INFO: ProcessCDR(1,14891739,1,1,2) [2025-04-12 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891739', 'tblTempUsageDetail_20' ) start [2025-04-12 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891739', 'tblTempUsageDetail_20' ) end [2025-04-12 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:03:23] Production.INFO: ==29220== Releasing lock... [2025-04-12 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:04:05 [end_date_ymd] => 2025-04-12 13:04:05 [RateCDR] => 1 ) [2025-04-12 13:04: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-04-12 10:04:05' and `end` < '2025-04-12 13:04: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-04-12 13:04:18] Production.INFO: count ==1567 [2025-04-12 13:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:04:05 - End Time 2025-04-12 13:04:05 [2025-04-12 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891744', 'tblTempUsageDetail_20' ) start [2025-04-12 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891744', 'tblTempUsageDetail_20' ) end [2025-04-12 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891744', 'tblTempVendorCDR_20' ) start [2025-04-12 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891744', 'tblTempVendorCDR_20' ) end [2025-04-12 13:04:19] Production.INFO: ProcessCDR(1,14891744,1,1,2) [2025-04-12 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891744', 'tblTempUsageDetail_20' ) start [2025-04-12 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891744', 'tblTempUsageDetail_20' ) end [2025-04-12 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:04:24] Production.INFO: ==29295== Releasing lock... [2025-04-12 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:04:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:05:05 [end_date_ymd] => 2025-04-12 13:05:05 [RateCDR] => 1 ) [2025-04-12 13:05: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-04-12 10:05:05' and `end` < '2025-04-12 13:05: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-04-12 13:05:18] Production.INFO: count ==1561 [2025-04-12 13:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:05:05 - End Time 2025-04-12 13:05:05 [2025-04-12 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891749', 'tblTempUsageDetail_20' ) start [2025-04-12 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891749', 'tblTempUsageDetail_20' ) end [2025-04-12 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891749', 'tblTempVendorCDR_20' ) start [2025-04-12 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891749', 'tblTempVendorCDR_20' ) end [2025-04-12 13:05:19] Production.INFO: ProcessCDR(1,14891749,1,1,2) [2025-04-12 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891749', 'tblTempUsageDetail_20' ) start [2025-04-12 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891749', 'tblTempUsageDetail_20' ) end [2025-04-12 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:05:24] Production.INFO: ==29368== Releasing lock... [2025-04-12 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:05:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:06:05 [end_date_ymd] => 2025-04-12 13:06:05 [RateCDR] => 1 ) [2025-04-12 13:06: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-04-12 10:06:05' and `end` < '2025-04-12 13:06: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-04-12 13:06:18] Production.INFO: count ==1562 [2025-04-12 13:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:06:05 - End Time 2025-04-12 13:06:05 [2025-04-12 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891754', 'tblTempUsageDetail_20' ) start [2025-04-12 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891754', 'tblTempUsageDetail_20' ) end [2025-04-12 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891754', 'tblTempVendorCDR_20' ) start [2025-04-12 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891754', 'tblTempVendorCDR_20' ) end [2025-04-12 13:06:19] Production.INFO: ProcessCDR(1,14891754,1,1,2) [2025-04-12 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891754', 'tblTempUsageDetail_20' ) start [2025-04-12 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891754', 'tblTempUsageDetail_20' ) end [2025-04-12 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:06:24] Production.INFO: ==29440== Releasing lock... [2025-04-12 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:06:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:07:05 [end_date_ymd] => 2025-04-12 13:07:05 [RateCDR] => 1 ) [2025-04-12 13:07: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-04-12 10:07:05' and `end` < '2025-04-12 13:07: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-04-12 13:07:18] Production.INFO: count ==1574 [2025-04-12 13:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:07:05 - End Time 2025-04-12 13:07:05 [2025-04-12 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891759', 'tblTempUsageDetail_20' ) start [2025-04-12 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891759', 'tblTempUsageDetail_20' ) end [2025-04-12 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891759', 'tblTempVendorCDR_20' ) start [2025-04-12 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891759', 'tblTempVendorCDR_20' ) end [2025-04-12 13:07:18] Production.INFO: ProcessCDR(1,14891759,1,1,2) [2025-04-12 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891759', 'tblTempUsageDetail_20' ) start [2025-04-12 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891759', 'tblTempUsageDetail_20' ) end [2025-04-12 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:07:23] Production.INFO: ==29511== Releasing lock... [2025-04-12 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:07:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:08:05 [end_date_ymd] => 2025-04-12 13:08:05 [RateCDR] => 1 ) [2025-04-12 13:08: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-04-12 10:08:05' and `end` < '2025-04-12 13:08: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-04-12 13:08:18] Production.INFO: count ==1570 [2025-04-12 13:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:08:05 - End Time 2025-04-12 13:08:05 [2025-04-12 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891764', 'tblTempUsageDetail_20' ) start [2025-04-12 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891764', 'tblTempUsageDetail_20' ) end [2025-04-12 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891764', 'tblTempVendorCDR_20' ) start [2025-04-12 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891764', 'tblTempVendorCDR_20' ) end [2025-04-12 13:08:19] Production.INFO: ProcessCDR(1,14891764,1,1,2) [2025-04-12 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891764', 'tblTempUsageDetail_20' ) start [2025-04-12 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891764', 'tblTempUsageDetail_20' ) end [2025-04-12 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:08:24] Production.INFO: ==29590== Releasing lock... [2025-04-12 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:08:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:09:05 [end_date_ymd] => 2025-04-12 13:09:05 [RateCDR] => 1 ) [2025-04-12 13:09: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-04-12 10:09:05' and `end` < '2025-04-12 13:09: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-04-12 13:09:18] Production.INFO: count ==1566 [2025-04-12 13:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:09:05 - End Time 2025-04-12 13:09:05 [2025-04-12 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891769', 'tblTempUsageDetail_20' ) start [2025-04-12 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891769', 'tblTempUsageDetail_20' ) end [2025-04-12 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891769', 'tblTempVendorCDR_20' ) start [2025-04-12 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891769', 'tblTempVendorCDR_20' ) end [2025-04-12 13:09:18] Production.INFO: ProcessCDR(1,14891769,1,1,2) [2025-04-12 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891769', 'tblTempUsageDetail_20' ) start [2025-04-12 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891769', 'tblTempUsageDetail_20' ) end [2025-04-12 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:09:22] Production.INFO: ==29665== Releasing lock... [2025-04-12 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:09:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:10:06 [end_date_ymd] => 2025-04-12 13:10:06 [RateCDR] => 1 ) [2025-04-12 13:10: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-04-12 10:10:06' and `end` < '2025-04-12 13:10: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-04-12 13:10:19] Production.INFO: count ==1565 [2025-04-12 13:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:10:06 - End Time 2025-04-12 13:10:06 [2025-04-12 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891774', 'tblTempUsageDetail_20' ) start [2025-04-12 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891774', 'tblTempUsageDetail_20' ) end [2025-04-12 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891774', 'tblTempVendorCDR_20' ) start [2025-04-12 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891774', 'tblTempVendorCDR_20' ) end [2025-04-12 13:10:19] Production.INFO: ProcessCDR(1,14891774,1,1,2) [2025-04-12 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891774', 'tblTempUsageDetail_20' ) start [2025-04-12 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891774', 'tblTempUsageDetail_20' ) end [2025-04-12 13:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:10:23] Production.INFO: ==29743== Releasing lock... [2025-04-12 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:11:05 [end_date_ymd] => 2025-04-12 13:11:05 [RateCDR] => 1 ) [2025-04-12 13:11: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-04-12 10:11:05' and `end` < '2025-04-12 13:11: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-04-12 13:11:18] Production.INFO: count ==1590 [2025-04-12 13:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:11:05 - End Time 2025-04-12 13:11:05 [2025-04-12 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891780', 'tblTempUsageDetail_20' ) start [2025-04-12 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891780', 'tblTempUsageDetail_20' ) end [2025-04-12 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891780', 'tblTempVendorCDR_20' ) start [2025-04-12 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891780', 'tblTempVendorCDR_20' ) end [2025-04-12 13:11:18] Production.INFO: ProcessCDR(1,14891780,1,1,2) [2025-04-12 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891780', 'tblTempUsageDetail_20' ) start [2025-04-12 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891780', 'tblTempUsageDetail_20' ) end [2025-04-12 13:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:11:23] Production.INFO: ==29815== Releasing lock... [2025-04-12 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:12:05 [end_date_ymd] => 2025-04-12 13:12:05 [RateCDR] => 1 ) [2025-04-12 13:12: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-04-12 10:12:05' and `end` < '2025-04-12 13:12: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-04-12 13:12:18] Production.INFO: count ==1590 [2025-04-12 13:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:12:05 - End Time 2025-04-12 13:12:05 [2025-04-12 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891785', 'tblTempUsageDetail_20' ) start [2025-04-12 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891785', 'tblTempUsageDetail_20' ) end [2025-04-12 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891785', 'tblTempVendorCDR_20' ) start [2025-04-12 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891785', 'tblTempVendorCDR_20' ) end [2025-04-12 13:12:19] Production.INFO: ProcessCDR(1,14891785,1,1,2) [2025-04-12 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891785', 'tblTempUsageDetail_20' ) start [2025-04-12 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891785', 'tblTempUsageDetail_20' ) end [2025-04-12 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:12:22] Production.INFO: ==29888== Releasing lock... [2025-04-12 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:12:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:13:05 [end_date_ymd] => 2025-04-12 13:13:05 [RateCDR] => 1 ) [2025-04-12 13:13: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-04-12 10:13:05' and `end` < '2025-04-12 13:13: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-04-12 13:13:18] Production.INFO: count ==1601 [2025-04-12 13:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:13:05 - End Time 2025-04-12 13:13:05 [2025-04-12 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891790', 'tblTempUsageDetail_20' ) start [2025-04-12 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891790', 'tblTempUsageDetail_20' ) end [2025-04-12 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891790', 'tblTempVendorCDR_20' ) start [2025-04-12 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891790', 'tblTempVendorCDR_20' ) end [2025-04-12 13:13:18] Production.INFO: ProcessCDR(1,14891790,1,1,2) [2025-04-12 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891790', 'tblTempUsageDetail_20' ) start [2025-04-12 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891790', 'tblTempUsageDetail_20' ) end [2025-04-12 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:13:23] Production.INFO: ==29961== Releasing lock... [2025-04-12 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:13:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:14:05 [end_date_ymd] => 2025-04-12 13:14:05 [RateCDR] => 1 ) [2025-04-12 13:14: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-04-12 10:14:05' and `end` < '2025-04-12 13:14: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-04-12 13:14:18] Production.INFO: count ==1607 [2025-04-12 13:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:14:05 - End Time 2025-04-12 13:14:05 [2025-04-12 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891795', 'tblTempUsageDetail_20' ) start [2025-04-12 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891795', 'tblTempUsageDetail_20' ) end [2025-04-12 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891795', 'tblTempVendorCDR_20' ) start [2025-04-12 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891795', 'tblTempVendorCDR_20' ) end [2025-04-12 13:14:19] Production.INFO: ProcessCDR(1,14891795,1,1,2) [2025-04-12 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891795', 'tblTempUsageDetail_20' ) start [2025-04-12 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891795', 'tblTempUsageDetail_20' ) end [2025-04-12 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:14:22] Production.INFO: ==30037== Releasing lock... [2025-04-12 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:14:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:15:06 [end_date_ymd] => 2025-04-12 13:15:06 [RateCDR] => 1 ) [2025-04-12 13:15: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-04-12 10:15:06' and `end` < '2025-04-12 13:15: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-04-12 13:15:19] Production.INFO: count ==1606 [2025-04-12 13:15:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:15:06 - End Time 2025-04-12 13:15:06 [2025-04-12 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891800', 'tblTempUsageDetail_20' ) start [2025-04-12 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891800', 'tblTempUsageDetail_20' ) end [2025-04-12 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891800', 'tblTempVendorCDR_20' ) start [2025-04-12 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891800', 'tblTempVendorCDR_20' ) end [2025-04-12 13:15:19] Production.INFO: ProcessCDR(1,14891800,1,1,2) [2025-04-12 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891800', 'tblTempUsageDetail_20' ) start [2025-04-12 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891800', 'tblTempUsageDetail_20' ) end [2025-04-12 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:15:23] Production.INFO: ==30108== Releasing lock... [2025-04-12 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:15:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:16:05 [end_date_ymd] => 2025-04-12 13:16:05 [RateCDR] => 1 ) [2025-04-12 13:16: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-04-12 10:16:05' and `end` < '2025-04-12 13:16: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-04-12 13:16:18] Production.INFO: count ==1604 [2025-04-12 13:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:16:05 - End Time 2025-04-12 13:16:05 [2025-04-12 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891805', 'tblTempUsageDetail_20' ) start [2025-04-12 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891805', 'tblTempUsageDetail_20' ) end [2025-04-12 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891805', 'tblTempVendorCDR_20' ) start [2025-04-12 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891805', 'tblTempVendorCDR_20' ) end [2025-04-12 13:16:19] Production.INFO: ProcessCDR(1,14891805,1,1,2) [2025-04-12 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891805', 'tblTempUsageDetail_20' ) start [2025-04-12 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891805', 'tblTempUsageDetail_20' ) end [2025-04-12 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:16:22] Production.INFO: ==30180== Releasing lock... [2025-04-12 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:16:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:17:05 [end_date_ymd] => 2025-04-12 13:17:05 [RateCDR] => 1 ) [2025-04-12 13:17: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-04-12 10:17:05' and `end` < '2025-04-12 13:17: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-04-12 13:17:18] Production.INFO: count ==1602 [2025-04-12 13:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:17:05 - End Time 2025-04-12 13:17:05 [2025-04-12 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891810', 'tblTempUsageDetail_20' ) start [2025-04-12 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891810', 'tblTempUsageDetail_20' ) end [2025-04-12 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891810', 'tblTempVendorCDR_20' ) start [2025-04-12 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891810', 'tblTempVendorCDR_20' ) end [2025-04-12 13:17:19] Production.INFO: ProcessCDR(1,14891810,1,1,2) [2025-04-12 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891810', 'tblTempUsageDetail_20' ) start [2025-04-12 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891810', 'tblTempUsageDetail_20' ) end [2025-04-12 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:17:22] Production.INFO: ==30296== Releasing lock... [2025-04-12 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:17:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:18:05 [end_date_ymd] => 2025-04-12 13:18:05 [RateCDR] => 1 ) [2025-04-12 13:18: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-04-12 10:18:05' and `end` < '2025-04-12 13:18: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-04-12 13:18:18] Production.INFO: count ==1610 [2025-04-12 13:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:18:05 - End Time 2025-04-12 13:18:05 [2025-04-12 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891815', 'tblTempUsageDetail_20' ) start [2025-04-12 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891815', 'tblTempUsageDetail_20' ) end [2025-04-12 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891815', 'tblTempVendorCDR_20' ) start [2025-04-12 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891815', 'tblTempVendorCDR_20' ) end [2025-04-12 13:18:18] Production.INFO: ProcessCDR(1,14891815,1,1,2) [2025-04-12 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891815', 'tblTempUsageDetail_20' ) start [2025-04-12 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891815', 'tblTempUsageDetail_20' ) end [2025-04-12 13:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:18:24] Production.INFO: ==30381== Releasing lock... [2025-04-12 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:18:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:19:06 [end_date_ymd] => 2025-04-12 13:19:06 [RateCDR] => 1 ) [2025-04-12 13:19: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-04-12 10:19:06' and `end` < '2025-04-12 13:19: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-04-12 13:19:19] Production.INFO: count ==1606 [2025-04-12 13:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:19:06 - End Time 2025-04-12 13:19:06 [2025-04-12 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891820', 'tblTempUsageDetail_20' ) start [2025-04-12 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891820', 'tblTempUsageDetail_20' ) end [2025-04-12 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891820', 'tblTempVendorCDR_20' ) start [2025-04-12 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891820', 'tblTempVendorCDR_20' ) end [2025-04-12 13:19:19] Production.INFO: ProcessCDR(1,14891820,1,1,2) [2025-04-12 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891820', 'tblTempUsageDetail_20' ) start [2025-04-12 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891820', 'tblTempUsageDetail_20' ) end [2025-04-12 13:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:19:24] Production.INFO: ==30456== Releasing lock... [2025-04-12 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:19:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:20:05 [end_date_ymd] => 2025-04-12 13:20:05 [RateCDR] => 1 ) [2025-04-12 13:20: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-04-12 10:20:05' and `end` < '2025-04-12 13:20: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-04-12 13:20:18] Production.INFO: count ==1605 [2025-04-12 13:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:20:05 - End Time 2025-04-12 13:20:05 [2025-04-12 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891826', 'tblTempUsageDetail_20' ) start [2025-04-12 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891826', 'tblTempUsageDetail_20' ) end [2025-04-12 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891826', 'tblTempVendorCDR_20' ) start [2025-04-12 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891826', 'tblTempVendorCDR_20' ) end [2025-04-12 13:20:19] Production.INFO: ProcessCDR(1,14891826,1,1,2) [2025-04-12 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891826', 'tblTempUsageDetail_20' ) start [2025-04-12 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891826', 'tblTempUsageDetail_20' ) end [2025-04-12 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:20:24] Production.INFO: ==30530== Releasing lock... [2025-04-12 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:20:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:21:06 [end_date_ymd] => 2025-04-12 13:21:06 [RateCDR] => 1 ) [2025-04-12 13:21: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-04-12 10:21:06' and `end` < '2025-04-12 13:21: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-04-12 13:21:19] Production.INFO: count ==1624 [2025-04-12 13:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:21:06 - End Time 2025-04-12 13:21:06 [2025-04-12 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891831', 'tblTempUsageDetail_20' ) start [2025-04-12 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891831', 'tblTempUsageDetail_20' ) end [2025-04-12 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891831', 'tblTempVendorCDR_20' ) start [2025-04-12 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891831', 'tblTempVendorCDR_20' ) end [2025-04-12 13:21:19] Production.INFO: ProcessCDR(1,14891831,1,1,2) [2025-04-12 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891831', 'tblTempUsageDetail_20' ) start [2025-04-12 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891831', 'tblTempUsageDetail_20' ) end [2025-04-12 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:21:25] Production.INFO: ==30604== Releasing lock... [2025-04-12 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:21:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:22:05 [end_date_ymd] => 2025-04-12 13:22:05 [RateCDR] => 1 ) [2025-04-12 13:22: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-04-12 10:22:05' and `end` < '2025-04-12 13:22: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-04-12 13:22:18] Production.INFO: count ==1620 [2025-04-12 13:22:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:22:05 - End Time 2025-04-12 13:22:05 [2025-04-12 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891836', 'tblTempUsageDetail_20' ) start [2025-04-12 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891836', 'tblTempUsageDetail_20' ) end [2025-04-12 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891836', 'tblTempVendorCDR_20' ) start [2025-04-12 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891836', 'tblTempVendorCDR_20' ) end [2025-04-12 13:22:19] Production.INFO: ProcessCDR(1,14891836,1,1,2) [2025-04-12 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891836', 'tblTempUsageDetail_20' ) start [2025-04-12 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891836', 'tblTempUsageDetail_20' ) end [2025-04-12 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:22:22] Production.INFO: ==30678== Releasing lock... [2025-04-12 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:23:05 [end_date_ymd] => 2025-04-12 13:23:05 [RateCDR] => 1 ) [2025-04-12 13:23: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-04-12 10:23:05' and `end` < '2025-04-12 13:23: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-04-12 13:23:18] Production.INFO: count ==1626 [2025-04-12 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:23:05 - End Time 2025-04-12 13:23:05 [2025-04-12 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891841', 'tblTempUsageDetail_20' ) start [2025-04-12 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891841', 'tblTempUsageDetail_20' ) end [2025-04-12 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891841', 'tblTempVendorCDR_20' ) start [2025-04-12 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891841', 'tblTempVendorCDR_20' ) end [2025-04-12 13:23:19] Production.INFO: ProcessCDR(1,14891841,1,1,2) [2025-04-12 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891841', 'tblTempUsageDetail_20' ) start [2025-04-12 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891841', 'tblTempUsageDetail_20' ) end [2025-04-12 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:23:23] Production.INFO: ==30757== Releasing lock... [2025-04-12 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:23:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:24:05 [end_date_ymd] => 2025-04-12 13:24:05 [RateCDR] => 1 ) [2025-04-12 13:24: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-04-12 10:24:05' and `end` < '2025-04-12 13:24: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-04-12 13:24:18] Production.INFO: count ==1634 [2025-04-12 13:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:24:05 - End Time 2025-04-12 13:24:05 [2025-04-12 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891846', 'tblTempUsageDetail_20' ) start [2025-04-12 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891846', 'tblTempUsageDetail_20' ) end [2025-04-12 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891846', 'tblTempVendorCDR_20' ) start [2025-04-12 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891846', 'tblTempVendorCDR_20' ) end [2025-04-12 13:24:18] Production.INFO: ProcessCDR(1,14891846,1,1,2) [2025-04-12 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891846', 'tblTempUsageDetail_20' ) start [2025-04-12 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891846', 'tblTempUsageDetail_20' ) end [2025-04-12 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:24:24] Production.INFO: ==30830== Releasing lock... [2025-04-12 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:24:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:25:05 [end_date_ymd] => 2025-04-12 13:25:05 [RateCDR] => 1 ) [2025-04-12 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 10:25:05' and `end` < '2025-04-12 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 13:25:18] Production.INFO: count ==1626 [2025-04-12 13:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:25:05 - End Time 2025-04-12 13:25:05 [2025-04-12 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891851', 'tblTempUsageDetail_20' ) start [2025-04-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891851', 'tblTempUsageDetail_20' ) end [2025-04-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891851', 'tblTempVendorCDR_20' ) start [2025-04-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891851', 'tblTempVendorCDR_20' ) end [2025-04-12 13:25:18] Production.INFO: ProcessCDR(1,14891851,1,1,2) [2025-04-12 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891851', 'tblTempUsageDetail_20' ) start [2025-04-12 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891851', 'tblTempUsageDetail_20' ) end [2025-04-12 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:25:22] Production.INFO: ==30903== Releasing lock... [2025-04-12 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:25:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:26:05 [end_date_ymd] => 2025-04-12 13:26:05 [RateCDR] => 1 ) [2025-04-12 13:26: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-04-12 10:26:05' and `end` < '2025-04-12 13:26: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-04-12 13:26:18] Production.INFO: count ==1625 [2025-04-12 13:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:26:05 - End Time 2025-04-12 13:26:05 [2025-04-12 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891856', 'tblTempUsageDetail_20' ) start [2025-04-12 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891856', 'tblTempUsageDetail_20' ) end [2025-04-12 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891856', 'tblTempVendorCDR_20' ) start [2025-04-12 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891856', 'tblTempVendorCDR_20' ) end [2025-04-12 13:26:18] Production.INFO: ProcessCDR(1,14891856,1,1,2) [2025-04-12 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891856', 'tblTempUsageDetail_20' ) start [2025-04-12 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891856', 'tblTempUsageDetail_20' ) end [2025-04-12 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:26:23] Production.INFO: ==30975== Releasing lock... [2025-04-12 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:26:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:27:05 [end_date_ymd] => 2025-04-12 13:27:05 [RateCDR] => 1 ) [2025-04-12 13:27: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-04-12 10:27:05' and `end` < '2025-04-12 13:27: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-04-12 13:27:18] Production.INFO: count ==1620 [2025-04-12 13:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:27:05 - End Time 2025-04-12 13:27:05 [2025-04-12 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891861', 'tblTempUsageDetail_20' ) start [2025-04-12 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891861', 'tblTempUsageDetail_20' ) end [2025-04-12 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891861', 'tblTempVendorCDR_20' ) start [2025-04-12 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891861', 'tblTempVendorCDR_20' ) end [2025-04-12 13:27:18] Production.INFO: ProcessCDR(1,14891861,1,1,2) [2025-04-12 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891861', 'tblTempUsageDetail_20' ) start [2025-04-12 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891861', 'tblTempUsageDetail_20' ) end [2025-04-12 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:27:23] Production.INFO: ==31046== Releasing lock... [2025-04-12 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:27:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:28:05 [end_date_ymd] => 2025-04-12 13:28:05 [RateCDR] => 1 ) [2025-04-12 13:28: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-04-12 10:28:05' and `end` < '2025-04-12 13:28: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-04-12 13:28:18] Production.INFO: count ==1628 [2025-04-12 13:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:28:05 - End Time 2025-04-12 13:28:05 [2025-04-12 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891866', 'tblTempUsageDetail_20' ) start [2025-04-12 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891866', 'tblTempUsageDetail_20' ) end [2025-04-12 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891866', 'tblTempVendorCDR_20' ) start [2025-04-12 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891866', 'tblTempVendorCDR_20' ) end [2025-04-12 13:28:19] Production.INFO: ProcessCDR(1,14891866,1,1,2) [2025-04-12 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891866', 'tblTempUsageDetail_20' ) start [2025-04-12 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891866', 'tblTempUsageDetail_20' ) end [2025-04-12 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:28:24] Production.INFO: ==31134== Releasing lock... [2025-04-12 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:28:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:29:05 [end_date_ymd] => 2025-04-12 13:29:05 [RateCDR] => 1 ) [2025-04-12 13:29: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-04-12 10:29:05' and `end` < '2025-04-12 13:29: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-04-12 13:29:18] Production.INFO: count ==1629 [2025-04-12 13:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:29:05 - End Time 2025-04-12 13:29:05 [2025-04-12 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891871', 'tblTempUsageDetail_20' ) start [2025-04-12 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891871', 'tblTempUsageDetail_20' ) end [2025-04-12 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891871', 'tblTempVendorCDR_20' ) start [2025-04-12 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891871', 'tblTempVendorCDR_20' ) end [2025-04-12 13:29:18] Production.INFO: ProcessCDR(1,14891871,1,1,2) [2025-04-12 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891871', 'tblTempUsageDetail_20' ) start [2025-04-12 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891871', 'tblTempUsageDetail_20' ) end [2025-04-12 13:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:29:24] Production.INFO: ==31210== Releasing lock... [2025-04-12 13:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:29:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:30:07 [end_date_ymd] => 2025-04-12 13:30:07 [RateCDR] => 1 ) [2025-04-12 13:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 10:30:07' and `end` < '2025-04-12 13:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 13:30:20] Production.INFO: count ==1638 [2025-04-12 13:30:20] Production.ERROR: pbx CDR StartTime 2025-04-12 10:30:07 - End Time 2025-04-12 13:30:07 [2025-04-12 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891877', 'tblTempUsageDetail_20' ) start [2025-04-12 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891877', 'tblTempUsageDetail_20' ) end [2025-04-12 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891877', 'tblTempVendorCDR_20' ) start [2025-04-12 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891877', 'tblTempVendorCDR_20' ) end [2025-04-12 13:30:20] Production.INFO: ProcessCDR(1,14891877,1,1,2) [2025-04-12 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891877', 'tblTempUsageDetail_20' ) start [2025-04-12 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891877', 'tblTempUsageDetail_20' ) end [2025-04-12 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:30:26] Production.INFO: ==31292== Releasing lock... [2025-04-12 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:30:26] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:31:05 [end_date_ymd] => 2025-04-12 13:31:05 [RateCDR] => 1 ) [2025-04-12 13:31: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-04-12 10:31:05' and `end` < '2025-04-12 13:31: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-04-12 13:31:18] Production.INFO: count ==1664 [2025-04-12 13:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:31:05 - End Time 2025-04-12 13:31:05 [2025-04-12 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891882', 'tblTempUsageDetail_20' ) start [2025-04-12 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891882', 'tblTempUsageDetail_20' ) end [2025-04-12 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891882', 'tblTempVendorCDR_20' ) start [2025-04-12 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891882', 'tblTempVendorCDR_20' ) end [2025-04-12 13:31:18] Production.INFO: ProcessCDR(1,14891882,1,1,2) [2025-04-12 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891882', 'tblTempUsageDetail_20' ) start [2025-04-12 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891882', 'tblTempUsageDetail_20' ) end [2025-04-12 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:31:23] Production.INFO: ==31364== Releasing lock... [2025-04-12 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:32:05 [end_date_ymd] => 2025-04-12 13:32:05 [RateCDR] => 1 ) [2025-04-12 13:32: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-04-12 10:32:05' and `end` < '2025-04-12 13:32: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-04-12 13:32:18] Production.INFO: count ==1663 [2025-04-12 13:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:32:05 - End Time 2025-04-12 13:32:05 [2025-04-12 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891887', 'tblTempUsageDetail_20' ) start [2025-04-12 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891887', 'tblTempUsageDetail_20' ) end [2025-04-12 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891887', 'tblTempVendorCDR_20' ) start [2025-04-12 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891887', 'tblTempVendorCDR_20' ) end [2025-04-12 13:32:19] Production.INFO: ProcessCDR(1,14891887,1,1,2) [2025-04-12 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891887', 'tblTempUsageDetail_20' ) start [2025-04-12 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891887', 'tblTempUsageDetail_20' ) end [2025-04-12 13:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:32:24] Production.INFO: ==31478== Releasing lock... [2025-04-12 13:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:32:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:33:05 [end_date_ymd] => 2025-04-12 13:33:05 [RateCDR] => 1 ) [2025-04-12 13:33: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-04-12 10:33:05' and `end` < '2025-04-12 13:33: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-04-12 13:33:18] Production.INFO: count ==1663 [2025-04-12 13:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:33:05 - End Time 2025-04-12 13:33:05 [2025-04-12 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891892', 'tblTempUsageDetail_20' ) start [2025-04-12 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891892', 'tblTempUsageDetail_20' ) end [2025-04-12 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891892', 'tblTempVendorCDR_20' ) start [2025-04-12 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891892', 'tblTempVendorCDR_20' ) end [2025-04-12 13:33:18] Production.INFO: ProcessCDR(1,14891892,1,1,2) [2025-04-12 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891892', 'tblTempUsageDetail_20' ) start [2025-04-12 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891892', 'tblTempUsageDetail_20' ) end [2025-04-12 13:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:33:24] Production.INFO: ==31549== Releasing lock... [2025-04-12 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:33:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:34:05 [end_date_ymd] => 2025-04-12 13:34:05 [RateCDR] => 1 ) [2025-04-12 13:34: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-04-12 10:34:05' and `end` < '2025-04-12 13:34: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-04-12 13:34:18] Production.INFO: count ==1665 [2025-04-12 13:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:34:05 - End Time 2025-04-12 13:34:05 [2025-04-12 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891897', 'tblTempUsageDetail_20' ) start [2025-04-12 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891897', 'tblTempUsageDetail_20' ) end [2025-04-12 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891897', 'tblTempVendorCDR_20' ) start [2025-04-12 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891897', 'tblTempVendorCDR_20' ) end [2025-04-12 13:34:19] Production.INFO: ProcessCDR(1,14891897,1,1,2) [2025-04-12 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891897', 'tblTempUsageDetail_20' ) start [2025-04-12 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891897', 'tblTempUsageDetail_20' ) end [2025-04-12 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:34:22] Production.INFO: ==31621== Releasing lock... [2025-04-12 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:35:04 [end_date_ymd] => 2025-04-12 13:35:04 [RateCDR] => 1 ) [2025-04-12 13:35: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-04-12 10:35:04' and `end` < '2025-04-12 13:35: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-04-12 13:35:18] Production.INFO: count ==1660 [2025-04-12 13:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:35:04 - End Time 2025-04-12 13:35:04 [2025-04-12 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891902', 'tblTempUsageDetail_20' ) start [2025-04-12 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891902', 'tblTempUsageDetail_20' ) end [2025-04-12 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891902', 'tblTempVendorCDR_20' ) start [2025-04-12 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891902', 'tblTempVendorCDR_20' ) end [2025-04-12 13:35:18] Production.INFO: ProcessCDR(1,14891902,1,1,2) [2025-04-12 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891902', 'tblTempUsageDetail_20' ) start [2025-04-12 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891902', 'tblTempUsageDetail_20' ) end [2025-04-12 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:35:23] Production.INFO: ==31697== Releasing lock... [2025-04-12 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:35:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:36:05 [end_date_ymd] => 2025-04-12 13:36:05 [RateCDR] => 1 ) [2025-04-12 13:36: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-04-12 10:36:05' and `end` < '2025-04-12 13:36: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-04-12 13:36:19] Production.INFO: count ==1655 [2025-04-12 13:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:36:05 - End Time 2025-04-12 13:36:05 [2025-04-12 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891907', 'tblTempUsageDetail_20' ) start [2025-04-12 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891907', 'tblTempUsageDetail_20' ) end [2025-04-12 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891907', 'tblTempVendorCDR_20' ) start [2025-04-12 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891907', 'tblTempVendorCDR_20' ) end [2025-04-12 13:36:19] Production.INFO: ProcessCDR(1,14891907,1,1,2) [2025-04-12 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891907', 'tblTempUsageDetail_20' ) start [2025-04-12 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891907', 'tblTempUsageDetail_20' ) end [2025-04-12 13:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:36:24] Production.INFO: ==31770== Releasing lock... [2025-04-12 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:36:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:37:05 [end_date_ymd] => 2025-04-12 13:37:05 [RateCDR] => 1 ) [2025-04-12 13:37: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-04-12 10:37:05' and `end` < '2025-04-12 13:37: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-04-12 13:37:18] Production.INFO: count ==1657 [2025-04-12 13:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:37:05 - End Time 2025-04-12 13:37:05 [2025-04-12 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891912', 'tblTempUsageDetail_20' ) start [2025-04-12 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891912', 'tblTempUsageDetail_20' ) end [2025-04-12 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891912', 'tblTempVendorCDR_20' ) start [2025-04-12 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891912', 'tblTempVendorCDR_20' ) end [2025-04-12 13:37:19] Production.INFO: ProcessCDR(1,14891912,1,1,2) [2025-04-12 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891912', 'tblTempUsageDetail_20' ) start [2025-04-12 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891912', 'tblTempUsageDetail_20' ) end [2025-04-12 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:37:23] Production.INFO: ==31842== Releasing lock... [2025-04-12 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:38:05 [end_date_ymd] => 2025-04-12 13:38:05 [RateCDR] => 1 ) [2025-04-12 13:38: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-04-12 10:38:05' and `end` < '2025-04-12 13:38: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-04-12 13:38:18] Production.INFO: count ==1654 [2025-04-12 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:38:05 - End Time 2025-04-12 13:38:05 [2025-04-12 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891917', 'tblTempUsageDetail_20' ) start [2025-04-12 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891917', 'tblTempUsageDetail_20' ) end [2025-04-12 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891917', 'tblTempVendorCDR_20' ) start [2025-04-12 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891917', 'tblTempVendorCDR_20' ) end [2025-04-12 13:38:19] Production.INFO: ProcessCDR(1,14891917,1,1,2) [2025-04-12 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891917', 'tblTempUsageDetail_20' ) start [2025-04-12 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891917', 'tblTempUsageDetail_20' ) end [2025-04-12 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:38:24] Production.INFO: ==31917== Releasing lock... [2025-04-12 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:38:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:39:05 [end_date_ymd] => 2025-04-12 13:39:05 [RateCDR] => 1 ) [2025-04-12 13:39: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-04-12 10:39:05' and `end` < '2025-04-12 13:39: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-04-12 13:39:18] Production.INFO: count ==1663 [2025-04-12 13:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:39:05 - End Time 2025-04-12 13:39:05 [2025-04-12 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891922', 'tblTempUsageDetail_20' ) start [2025-04-12 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891922', 'tblTempUsageDetail_20' ) end [2025-04-12 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891922', 'tblTempVendorCDR_20' ) start [2025-04-12 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891922', 'tblTempVendorCDR_20' ) end [2025-04-12 13:39:18] Production.INFO: ProcessCDR(1,14891922,1,1,2) [2025-04-12 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891922', 'tblTempUsageDetail_20' ) start [2025-04-12 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891922', 'tblTempUsageDetail_20' ) end [2025-04-12 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:39:21] Production.INFO: ==31988== Releasing lock... [2025-04-12 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:40:05 [end_date_ymd] => 2025-04-12 13:40:05 [RateCDR] => 1 ) [2025-04-12 13:40: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-04-12 10:40:05' and `end` < '2025-04-12 13:40: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-04-12 13:40:19] Production.INFO: count ==1664 [2025-04-12 13:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:40:05 - End Time 2025-04-12 13:40:05 [2025-04-12 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891927', 'tblTempUsageDetail_20' ) start [2025-04-12 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891927', 'tblTempUsageDetail_20' ) end [2025-04-12 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891927', 'tblTempVendorCDR_20' ) start [2025-04-12 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891927', 'tblTempVendorCDR_20' ) end [2025-04-12 13:40:19] Production.INFO: ProcessCDR(1,14891927,1,1,2) [2025-04-12 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891927', 'tblTempUsageDetail_20' ) start [2025-04-12 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891927', 'tblTempUsageDetail_20' ) end [2025-04-12 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:40:24] Production.INFO: ==32063== Releasing lock... [2025-04-12 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:40:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:41:05 [end_date_ymd] => 2025-04-12 13:41:05 [RateCDR] => 1 ) [2025-04-12 13:41: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-04-12 10:41:05' and `end` < '2025-04-12 13:41: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-04-12 13:41:18] Production.INFO: count ==1667 [2025-04-12 13:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:41:05 - End Time 2025-04-12 13:41:05 [2025-04-12 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891933', 'tblTempUsageDetail_20' ) start [2025-04-12 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891933', 'tblTempUsageDetail_20' ) end [2025-04-12 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891933', 'tblTempVendorCDR_20' ) start [2025-04-12 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891933', 'tblTempVendorCDR_20' ) end [2025-04-12 13:41:19] Production.INFO: ProcessCDR(1,14891933,1,1,2) [2025-04-12 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891933', 'tblTempUsageDetail_20' ) start [2025-04-12 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891933', 'tblTempUsageDetail_20' ) end [2025-04-12 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:41:24] Production.INFO: ==32137== Releasing lock... [2025-04-12 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:41:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:42:05 [end_date_ymd] => 2025-04-12 13:42:05 [RateCDR] => 1 ) [2025-04-12 13:42: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-04-12 10:42:05' and `end` < '2025-04-12 13:42: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-04-12 13:42:18] Production.INFO: count ==1680 [2025-04-12 13:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:42:05 - End Time 2025-04-12 13:42:05 [2025-04-12 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891938', 'tblTempUsageDetail_20' ) start [2025-04-12 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891938', 'tblTempUsageDetail_20' ) end [2025-04-12 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891938', 'tblTempVendorCDR_20' ) start [2025-04-12 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891938', 'tblTempVendorCDR_20' ) end [2025-04-12 13:42:19] Production.INFO: ProcessCDR(1,14891938,1,1,2) [2025-04-12 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891938', 'tblTempUsageDetail_20' ) start [2025-04-12 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891938', 'tblTempUsageDetail_20' ) end [2025-04-12 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:42:22] Production.INFO: ==32218== Releasing lock... [2025-04-12 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:42:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:43:06 [end_date_ymd] => 2025-04-12 13:43:06 [RateCDR] => 1 ) [2025-04-12 13:43: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-04-12 10:43:06' and `end` < '2025-04-12 13:43: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-04-12 13:43:19] Production.INFO: count ==1681 [2025-04-12 13:43:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:43:06 - End Time 2025-04-12 13:43:06 [2025-04-12 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891943', 'tblTempUsageDetail_20' ) start [2025-04-12 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891943', 'tblTempUsageDetail_20' ) end [2025-04-12 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891943', 'tblTempVendorCDR_20' ) start [2025-04-12 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891943', 'tblTempVendorCDR_20' ) end [2025-04-12 13:43:19] Production.INFO: ProcessCDR(1,14891943,1,1,2) [2025-04-12 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891943', 'tblTempUsageDetail_20' ) start [2025-04-12 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891943', 'tblTempUsageDetail_20' ) end [2025-04-12 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:43:23] Production.INFO: ==32293== Releasing lock... [2025-04-12 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:43:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:44:05 [end_date_ymd] => 2025-04-12 13:44:05 [RateCDR] => 1 ) [2025-04-12 13:44: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-04-12 10:44:05' and `end` < '2025-04-12 13:44: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-04-12 13:44:18] Production.INFO: count ==1679 [2025-04-12 13:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:44:05 - End Time 2025-04-12 13:44:05 [2025-04-12 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891948', 'tblTempUsageDetail_20' ) start [2025-04-12 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891948', 'tblTempUsageDetail_20' ) end [2025-04-12 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891948', 'tblTempVendorCDR_20' ) start [2025-04-12 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891948', 'tblTempVendorCDR_20' ) end [2025-04-12 13:44:18] Production.INFO: ProcessCDR(1,14891948,1,1,2) [2025-04-12 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891948', 'tblTempUsageDetail_20' ) start [2025-04-12 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891948', 'tblTempUsageDetail_20' ) end [2025-04-12 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:44:23] Production.INFO: ==32372== Releasing lock... [2025-04-12 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:45:05 [end_date_ymd] => 2025-04-12 13:45:05 [RateCDR] => 1 ) [2025-04-12 13:45: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-04-12 10:45:05' and `end` < '2025-04-12 13:45: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-04-12 13:45:18] Production.INFO: count ==1677 [2025-04-12 13:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:45:05 - End Time 2025-04-12 13:45:05 [2025-04-12 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891953', 'tblTempUsageDetail_20' ) start [2025-04-12 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891953', 'tblTempUsageDetail_20' ) end [2025-04-12 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891953', 'tblTempVendorCDR_20' ) start [2025-04-12 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891953', 'tblTempVendorCDR_20' ) end [2025-04-12 13:45:19] Production.INFO: ProcessCDR(1,14891953,1,1,2) [2025-04-12 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891953', 'tblTempUsageDetail_20' ) start [2025-04-12 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891953', 'tblTempUsageDetail_20' ) end [2025-04-12 13:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:45:24] Production.INFO: ==32448== Releasing lock... [2025-04-12 13:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:46:06 [end_date_ymd] => 2025-04-12 13:46:06 [RateCDR] => 1 ) [2025-04-12 13:46: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-04-12 10:46:06' and `end` < '2025-04-12 13:46: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-04-12 13:46:19] Production.INFO: count ==1671 [2025-04-12 13:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:46:06 - End Time 2025-04-12 13:46:06 [2025-04-12 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891958', 'tblTempUsageDetail_20' ) start [2025-04-12 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891958', 'tblTempUsageDetail_20' ) end [2025-04-12 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891958', 'tblTempVendorCDR_20' ) start [2025-04-12 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891958', 'tblTempVendorCDR_20' ) end [2025-04-12 13:46:19] Production.INFO: ProcessCDR(1,14891958,1,1,2) [2025-04-12 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891958', 'tblTempUsageDetail_20' ) start [2025-04-12 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891958', 'tblTempUsageDetail_20' ) end [2025-04-12 13:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:46:23] Production.INFO: ==32518== Releasing lock... [2025-04-12 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:47:06 [end_date_ymd] => 2025-04-12 13:47:06 [RateCDR] => 1 ) [2025-04-12 13:47: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-04-12 10:47:06' and `end` < '2025-04-12 13:47: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-04-12 13:47:19] Production.INFO: count ==1667 [2025-04-12 13:47:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:47:06 - End Time 2025-04-12 13:47:06 [2025-04-12 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891963', 'tblTempUsageDetail_20' ) start [2025-04-12 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891963', 'tblTempUsageDetail_20' ) end [2025-04-12 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891963', 'tblTempVendorCDR_20' ) start [2025-04-12 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891963', 'tblTempVendorCDR_20' ) end [2025-04-12 13:47:19] Production.INFO: ProcessCDR(1,14891963,1,1,2) [2025-04-12 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891963', 'tblTempUsageDetail_20' ) start [2025-04-12 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891963', 'tblTempUsageDetail_20' ) end [2025-04-12 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:47:22] Production.INFO: ==32592== Releasing lock... [2025-04-12 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:48:04 [end_date_ymd] => 2025-04-12 13:48:04 [RateCDR] => 1 ) [2025-04-12 13:48: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-04-12 10:48:04' and `end` < '2025-04-12 13:48: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-04-12 13:48:17] Production.INFO: count ==1666 [2025-04-12 13:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:48:04 - End Time 2025-04-12 13:48:04 [2025-04-12 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891967', 'tblTempUsageDetail_20' ) start [2025-04-12 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891967', 'tblTempUsageDetail_20' ) end [2025-04-12 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891967', 'tblTempVendorCDR_20' ) start [2025-04-12 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891967', 'tblTempVendorCDR_20' ) end [2025-04-12 13:48:18] Production.INFO: ProcessCDR(1,14891967,1,1,2) [2025-04-12 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891967', 'tblTempUsageDetail_20' ) start [2025-04-12 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891967', 'tblTempUsageDetail_20' ) end [2025-04-12 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:48:23] Production.INFO: ==32703== Releasing lock... [2025-04-12 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:48:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:49:06 [end_date_ymd] => 2025-04-12 13:49:06 [RateCDR] => 1 ) [2025-04-12 13:49: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-04-12 10:49:06' and `end` < '2025-04-12 13:49: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-04-12 13:49:19] Production.INFO: count ==1667 [2025-04-12 13:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:49:06 - End Time 2025-04-12 13:49:06 [2025-04-12 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891973', 'tblTempUsageDetail_20' ) start [2025-04-12 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891973', 'tblTempUsageDetail_20' ) end [2025-04-12 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891973', 'tblTempVendorCDR_20' ) start [2025-04-12 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891973', 'tblTempVendorCDR_20' ) end [2025-04-12 13:49:19] Production.INFO: ProcessCDR(1,14891973,1,1,2) [2025-04-12 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891973', 'tblTempUsageDetail_20' ) start [2025-04-12 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891973', 'tblTempUsageDetail_20' ) end [2025-04-12 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:49:24] Production.INFO: ==307== Releasing lock... [2025-04-12 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:49:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:50:06 [end_date_ymd] => 2025-04-12 13:50:06 [RateCDR] => 1 ) [2025-04-12 13:50: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-04-12 10:50:06' and `end` < '2025-04-12 13:50: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-04-12 13:50:19] Production.INFO: count ==1667 [2025-04-12 13:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:50:06 - End Time 2025-04-12 13:50:06 [2025-04-12 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891979', 'tblTempUsageDetail_20' ) start [2025-04-12 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891979', 'tblTempUsageDetail_20' ) end [2025-04-12 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891979', 'tblTempVendorCDR_20' ) start [2025-04-12 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891979', 'tblTempVendorCDR_20' ) end [2025-04-12 13:50:19] Production.INFO: ProcessCDR(1,14891979,1,1,2) [2025-04-12 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891979', 'tblTempUsageDetail_20' ) start [2025-04-12 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891979', 'tblTempUsageDetail_20' ) end [2025-04-12 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:50:24] Production.INFO: ==401== Releasing lock... [2025-04-12 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:50:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:51:05 [end_date_ymd] => 2025-04-12 13:51:05 [RateCDR] => 1 ) [2025-04-12 13:51: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-04-12 10:51:05' and `end` < '2025-04-12 13:51: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-04-12 13:51:18] Production.INFO: count ==1655 [2025-04-12 13:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:51:05 - End Time 2025-04-12 13:51:05 [2025-04-12 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891984', 'tblTempUsageDetail_20' ) start [2025-04-12 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891984', 'tblTempUsageDetail_20' ) end [2025-04-12 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891984', 'tblTempVendorCDR_20' ) start [2025-04-12 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891984', 'tblTempVendorCDR_20' ) end [2025-04-12 13:51:18] Production.INFO: ProcessCDR(1,14891984,1,1,2) [2025-04-12 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891984', 'tblTempUsageDetail_20' ) start [2025-04-12 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891984', 'tblTempUsageDetail_20' ) end [2025-04-12 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:51:22] Production.INFO: ==475== Releasing lock... [2025-04-12 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:52:05 [end_date_ymd] => 2025-04-12 13:52:05 [RateCDR] => 1 ) [2025-04-12 13:52: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-04-12 10:52:05' and `end` < '2025-04-12 13:52: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-04-12 13:52:18] Production.INFO: count ==1658 [2025-04-12 13:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:52:05 - End Time 2025-04-12 13:52:05 [2025-04-12 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891989', 'tblTempUsageDetail_20' ) start [2025-04-12 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891989', 'tblTempUsageDetail_20' ) end [2025-04-12 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891989', 'tblTempVendorCDR_20' ) start [2025-04-12 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891989', 'tblTempVendorCDR_20' ) end [2025-04-12 13:52:19] Production.INFO: ProcessCDR(1,14891989,1,1,2) [2025-04-12 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891989', 'tblTempUsageDetail_20' ) start [2025-04-12 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891989', 'tblTempUsageDetail_20' ) end [2025-04-12 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:52:24] Production.INFO: ==550== Releasing lock... [2025-04-12 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:52:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:53:05 [end_date_ymd] => 2025-04-12 13:53:05 [RateCDR] => 1 ) [2025-04-12 13:53: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-04-12 10:53:05' and `end` < '2025-04-12 13:53: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-04-12 13:53:18] Production.INFO: count ==1650 [2025-04-12 13:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:53:05 - End Time 2025-04-12 13:53:05 [2025-04-12 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891994', 'tblTempUsageDetail_20' ) start [2025-04-12 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891994', 'tblTempUsageDetail_20' ) end [2025-04-12 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891994', 'tblTempVendorCDR_20' ) start [2025-04-12 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891994', 'tblTempVendorCDR_20' ) end [2025-04-12 13:53:19] Production.INFO: ProcessCDR(1,14891994,1,1,2) [2025-04-12 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891994', 'tblTempUsageDetail_20' ) start [2025-04-12 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891994', 'tblTempUsageDetail_20' ) end [2025-04-12 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:53:23] Production.INFO: ==628== Releasing lock... [2025-04-12 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:53:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:54:05 [end_date_ymd] => 2025-04-12 13:54:05 [RateCDR] => 1 ) [2025-04-12 13:54: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-04-12 10:54:05' and `end` < '2025-04-12 13:54: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-04-12 13:54:18] Production.INFO: count ==1650 [2025-04-12 13:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:54:05 - End Time 2025-04-12 13:54:05 [2025-04-12 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891999', 'tblTempUsageDetail_20' ) start [2025-04-12 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14891999', 'tblTempUsageDetail_20' ) end [2025-04-12 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891999', 'tblTempVendorCDR_20' ) start [2025-04-12 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14891999', 'tblTempVendorCDR_20' ) end [2025-04-12 13:54:18] Production.INFO: ProcessCDR(1,14891999,1,1,2) [2025-04-12 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14891999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14891999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14891999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14891999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891999', 'tblTempUsageDetail_20' ) start [2025-04-12 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14891999', 'tblTempUsageDetail_20' ) end [2025-04-12 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:54:23] Production.INFO: ==726== Releasing lock... [2025-04-12 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:55:05 [end_date_ymd] => 2025-04-12 13:55:05 [RateCDR] => 1 ) [2025-04-12 13:55: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-04-12 10:55:05' and `end` < '2025-04-12 13:55: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-04-12 13:55:18] Production.INFO: count ==1644 [2025-04-12 13:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:55:05 - End Time 2025-04-12 13:55:05 [2025-04-12 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892004', 'tblTempUsageDetail_20' ) start [2025-04-12 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892004', 'tblTempUsageDetail_20' ) end [2025-04-12 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892004', 'tblTempVendorCDR_20' ) start [2025-04-12 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892004', 'tblTempVendorCDR_20' ) end [2025-04-12 13:55:19] Production.INFO: ProcessCDR(1,14892004,1,1,2) [2025-04-12 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892004', 'tblTempUsageDetail_20' ) start [2025-04-12 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892004', 'tblTempUsageDetail_20' ) end [2025-04-12 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:55:22] Production.INFO: ==804== Releasing lock... [2025-04-12 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:56:05 [end_date_ymd] => 2025-04-12 13:56:05 [RateCDR] => 1 ) [2025-04-12 13:56: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-04-12 10:56:05' and `end` < '2025-04-12 13:56: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-04-12 13:56:18] Production.INFO: count ==1640 [2025-04-12 13:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:56:05 - End Time 2025-04-12 13:56:05 [2025-04-12 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892009', 'tblTempUsageDetail_20' ) start [2025-04-12 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892009', 'tblTempUsageDetail_20' ) end [2025-04-12 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892009', 'tblTempVendorCDR_20' ) start [2025-04-12 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892009', 'tblTempVendorCDR_20' ) end [2025-04-12 13:56:19] Production.INFO: ProcessCDR(1,14892009,1,1,2) [2025-04-12 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892009', 'tblTempUsageDetail_20' ) start [2025-04-12 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892009', 'tblTempUsageDetail_20' ) end [2025-04-12 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:56:24] Production.INFO: ==875== Releasing lock... [2025-04-12 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:56:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:57:05 [end_date_ymd] => 2025-04-12 13:57:05 [RateCDR] => 1 ) [2025-04-12 13:57: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-04-12 10:57:05' and `end` < '2025-04-12 13:57: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-04-12 13:57:18] Production.INFO: count ==1642 [2025-04-12 13:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:57:05 - End Time 2025-04-12 13:57:05 [2025-04-12 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892014', 'tblTempUsageDetail_20' ) start [2025-04-12 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892014', 'tblTempUsageDetail_20' ) end [2025-04-12 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892014', 'tblTempVendorCDR_20' ) start [2025-04-12 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892014', 'tblTempVendorCDR_20' ) end [2025-04-12 13:57:19] Production.INFO: ProcessCDR(1,14892014,1,1,2) [2025-04-12 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892014', 'tblTempUsageDetail_20' ) start [2025-04-12 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892014', 'tblTempUsageDetail_20' ) end [2025-04-12 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:57:24] Production.INFO: ==950== Releasing lock... [2025-04-12 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:57:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:58:05 [end_date_ymd] => 2025-04-12 13:58:05 [RateCDR] => 1 ) [2025-04-12 13:58: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-04-12 10:58:05' and `end` < '2025-04-12 13:58: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-04-12 13:58:18] Production.INFO: count ==1639 [2025-04-12 13:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 10:58:05 - End Time 2025-04-12 13:58:05 [2025-04-12 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892019', 'tblTempUsageDetail_20' ) start [2025-04-12 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892019', 'tblTempUsageDetail_20' ) end [2025-04-12 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892019', 'tblTempVendorCDR_20' ) start [2025-04-12 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892019', 'tblTempVendorCDR_20' ) end [2025-04-12 13:58:18] Production.INFO: ProcessCDR(1,14892019,1,1,2) [2025-04-12 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892019', 'tblTempUsageDetail_20' ) start [2025-04-12 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892019', 'tblTempUsageDetail_20' ) end [2025-04-12 13:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:58:24] Production.INFO: ==1024== Releasing lock... [2025-04-12 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:58:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 10:59:05 [end_date_ymd] => 2025-04-12 13:59:05 [RateCDR] => 1 ) [2025-04-12 13:59: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-04-12 10:59:05' and `end` < '2025-04-12 13:59: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-04-12 13:59:18] Production.INFO: count ==1642 [2025-04-12 13:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 10:59:05 - End Time 2025-04-12 13:59:05 [2025-04-12 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892024', 'tblTempUsageDetail_20' ) start [2025-04-12 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892024', 'tblTempUsageDetail_20' ) end [2025-04-12 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892024', 'tblTempVendorCDR_20' ) start [2025-04-12 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892024', 'tblTempVendorCDR_20' ) end [2025-04-12 13:59:19] Production.INFO: ProcessCDR(1,14892024,1,1,2) [2025-04-12 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892024', 'tblTempUsageDetail_20' ) start [2025-04-12 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892024', 'tblTempUsageDetail_20' ) end [2025-04-12 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 13:59:24] Production.INFO: ==1098== Releasing lock... [2025-04-12 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 13:59:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:00:06 [end_date_ymd] => 2025-04-12 14:00:06 [RateCDR] => 1 ) [2025-04-12 14:00: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-04-12 11:00:06' and `end` < '2025-04-12 14:00: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-04-12 14:00:19] Production.INFO: count ==1644 [2025-04-12 14:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:00:06 - End Time 2025-04-12 14:00:06 [2025-04-12 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892029', 'tblTempUsageDetail_20' ) start [2025-04-12 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892029', 'tblTempUsageDetail_20' ) end [2025-04-12 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892029', 'tblTempVendorCDR_20' ) start [2025-04-12 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892029', 'tblTempVendorCDR_20' ) end [2025-04-12 14:00:19] Production.INFO: ProcessCDR(1,14892029,1,1,2) [2025-04-12 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892029', 'tblTempUsageDetail_20' ) start [2025-04-12 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892029', 'tblTempUsageDetail_20' ) end [2025-04-12 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:00:24] Production.INFO: ==1178== Releasing lock... [2025-04-12 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:00:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:01:05 [end_date_ymd] => 2025-04-12 14:01:05 [RateCDR] => 1 ) [2025-04-12 14:01: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-04-12 11:01:05' and `end` < '2025-04-12 14:01: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-04-12 14:01:18] Production.INFO: count ==1660 [2025-04-12 14:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:01:05 - End Time 2025-04-12 14:01:05 [2025-04-12 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892035', 'tblTempUsageDetail_20' ) start [2025-04-12 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892035', 'tblTempUsageDetail_20' ) end [2025-04-12 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892035', 'tblTempVendorCDR_20' ) start [2025-04-12 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892035', 'tblTempVendorCDR_20' ) end [2025-04-12 14:01:19] Production.INFO: ProcessCDR(1,14892035,1,1,2) [2025-04-12 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892035', 'tblTempUsageDetail_20' ) start [2025-04-12 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892035', 'tblTempUsageDetail_20' ) end [2025-04-12 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:01:24] Production.INFO: ==1278== Releasing lock... [2025-04-12 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:01:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:02:06 [end_date_ymd] => 2025-04-12 14:02:06 [RateCDR] => 1 ) [2025-04-12 14:02: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-04-12 11:02:06' and `end` < '2025-04-12 14:02: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-04-12 14:02:19] Production.INFO: count ==1660 [2025-04-12 14:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:02:06 - End Time 2025-04-12 14:02:06 [2025-04-12 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892040', 'tblTempUsageDetail_20' ) start [2025-04-12 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892040', 'tblTempUsageDetail_20' ) end [2025-04-12 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892040', 'tblTempVendorCDR_20' ) start [2025-04-12 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892040', 'tblTempVendorCDR_20' ) end [2025-04-12 14:02:19] Production.INFO: ProcessCDR(1,14892040,1,1,2) [2025-04-12 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892040', 'tblTempUsageDetail_20' ) start [2025-04-12 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892040', 'tblTempUsageDetail_20' ) end [2025-04-12 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:02:24] Production.INFO: ==1347== Releasing lock... [2025-04-12 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:02:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:03:05 [end_date_ymd] => 2025-04-12 14:03:05 [RateCDR] => 1 ) [2025-04-12 14:03: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-04-12 11:03:05' and `end` < '2025-04-12 14:03: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-04-12 14:03:18] Production.INFO: count ==1668 [2025-04-12 14:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:03:05 - End Time 2025-04-12 14:03:05 [2025-04-12 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892045', 'tblTempUsageDetail_20' ) start [2025-04-12 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892045', 'tblTempUsageDetail_20' ) end [2025-04-12 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892045', 'tblTempVendorCDR_20' ) start [2025-04-12 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892045', 'tblTempVendorCDR_20' ) end [2025-04-12 14:03:19] Production.INFO: ProcessCDR(1,14892045,1,1,2) [2025-04-12 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892045', 'tblTempUsageDetail_20' ) start [2025-04-12 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892045', 'tblTempUsageDetail_20' ) end [2025-04-12 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:03:24] Production.INFO: ==1463== Releasing lock... [2025-04-12 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:03:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:04:06 [end_date_ymd] => 2025-04-12 14:04:06 [RateCDR] => 1 ) [2025-04-12 14:04: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-04-12 11:04:06' and `end` < '2025-04-12 14:04: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-04-12 14:04:19] Production.INFO: count ==1667 [2025-04-12 14:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:04:06 - End Time 2025-04-12 14:04:06 [2025-04-12 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892050', 'tblTempUsageDetail_20' ) start [2025-04-12 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892050', 'tblTempUsageDetail_20' ) end [2025-04-12 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892050', 'tblTempVendorCDR_20' ) start [2025-04-12 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892050', 'tblTempVendorCDR_20' ) end [2025-04-12 14:04:19] Production.INFO: ProcessCDR(1,14892050,1,1,2) [2025-04-12 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892050', 'tblTempUsageDetail_20' ) start [2025-04-12 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892050', 'tblTempUsageDetail_20' ) end [2025-04-12 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:04:23] Production.INFO: ==1578== Releasing lock... [2025-04-12 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:05:05 [end_date_ymd] => 2025-04-12 14:05:05 [RateCDR] => 1 ) [2025-04-12 14:05: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-04-12 11:05:05' and `end` < '2025-04-12 14:05: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-04-12 14:05:18] Production.INFO: count ==1667 [2025-04-12 14:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:05:05 - End Time 2025-04-12 14:05:05 [2025-04-12 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892055', 'tblTempUsageDetail_20' ) start [2025-04-12 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892055', 'tblTempUsageDetail_20' ) end [2025-04-12 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892055', 'tblTempVendorCDR_20' ) start [2025-04-12 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892055', 'tblTempVendorCDR_20' ) end [2025-04-12 14:05:19] Production.INFO: ProcessCDR(1,14892055,1,1,2) [2025-04-12 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892055', 'tblTempUsageDetail_20' ) start [2025-04-12 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892055', 'tblTempUsageDetail_20' ) end [2025-04-12 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:05:24] Production.INFO: ==1652== Releasing lock... [2025-04-12 14:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:05:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:06:05 [end_date_ymd] => 2025-04-12 14:06:05 [RateCDR] => 1 ) [2025-04-12 14:06: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-04-12 11:06:05' and `end` < '2025-04-12 14:06: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-04-12 14:06:19] Production.INFO: count ==1667 [2025-04-12 14:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:06:05 - End Time 2025-04-12 14:06:05 [2025-04-12 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892060', 'tblTempUsageDetail_20' ) start [2025-04-12 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892060', 'tblTempUsageDetail_20' ) end [2025-04-12 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892060', 'tblTempVendorCDR_20' ) start [2025-04-12 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892060', 'tblTempVendorCDR_20' ) end [2025-04-12 14:06:19] Production.INFO: ProcessCDR(1,14892060,1,1,2) [2025-04-12 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892060', 'tblTempUsageDetail_20' ) start [2025-04-12 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892060', 'tblTempUsageDetail_20' ) end [2025-04-12 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:06:24] Production.INFO: ==1722== Releasing lock... [2025-04-12 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:06:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:07:04 [end_date_ymd] => 2025-04-12 14:07:04 [RateCDR] => 1 ) [2025-04-12 14:07: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-04-12 11:07:04' and `end` < '2025-04-12 14:07: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-04-12 14:07:17] Production.INFO: count ==1663 [2025-04-12 14:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:07:04 - End Time 2025-04-12 14:07:04 [2025-04-12 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892065', 'tblTempUsageDetail_20' ) start [2025-04-12 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892065', 'tblTempUsageDetail_20' ) end [2025-04-12 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892065', 'tblTempVendorCDR_20' ) start [2025-04-12 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892065', 'tblTempVendorCDR_20' ) end [2025-04-12 14:07:18] Production.INFO: ProcessCDR(1,14892065,1,1,2) [2025-04-12 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892065', 'tblTempUsageDetail_20' ) start [2025-04-12 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892065', 'tblTempUsageDetail_20' ) end [2025-04-12 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:07:23] Production.INFO: ==1794== Releasing lock... [2025-04-12 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:07:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:08:06 [end_date_ymd] => 2025-04-12 14:08:06 [RateCDR] => 1 ) [2025-04-12 14:08: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-04-12 11:08:06' and `end` < '2025-04-12 14:08: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-04-12 14:08:19] Production.INFO: count ==1673 [2025-04-12 14:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:08:06 - End Time 2025-04-12 14:08:06 [2025-04-12 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892070', 'tblTempUsageDetail_20' ) start [2025-04-12 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892070', 'tblTempUsageDetail_20' ) end [2025-04-12 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892070', 'tblTempVendorCDR_20' ) start [2025-04-12 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892070', 'tblTempVendorCDR_20' ) end [2025-04-12 14:08:19] Production.INFO: ProcessCDR(1,14892070,1,1,2) [2025-04-12 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892070', 'tblTempUsageDetail_20' ) start [2025-04-12 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892070', 'tblTempUsageDetail_20' ) end [2025-04-12 14:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:08:23] Production.INFO: ==1869== Releasing lock... [2025-04-12 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:08:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:09:05 [end_date_ymd] => 2025-04-12 14:09:05 [RateCDR] => 1 ) [2025-04-12 14:09: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-04-12 11:09:05' and `end` < '2025-04-12 14:09: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-04-12 14:09:18] Production.INFO: count ==1673 [2025-04-12 14:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:09:05 - End Time 2025-04-12 14:09:05 [2025-04-12 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892075', 'tblTempUsageDetail_20' ) start [2025-04-12 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892075', 'tblTempUsageDetail_20' ) end [2025-04-12 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892075', 'tblTempVendorCDR_20' ) start [2025-04-12 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892075', 'tblTempVendorCDR_20' ) end [2025-04-12 14:09:19] Production.INFO: ProcessCDR(1,14892075,1,1,2) [2025-04-12 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892075', 'tblTempUsageDetail_20' ) start [2025-04-12 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892075', 'tblTempUsageDetail_20' ) end [2025-04-12 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:09:23] Production.INFO: ==1943== Releasing lock... [2025-04-12 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:09:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:10:06 [end_date_ymd] => 2025-04-12 14:10:06 [RateCDR] => 1 ) [2025-04-12 14:10: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-04-12 11:10:06' and `end` < '2025-04-12 14:10: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-04-12 14:10:19] Production.INFO: count ==1672 [2025-04-12 14:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:10:06 - End Time 2025-04-12 14:10:06 [2025-04-12 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892081', 'tblTempUsageDetail_20' ) start [2025-04-12 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892081', 'tblTempUsageDetail_20' ) end [2025-04-12 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892081', 'tblTempVendorCDR_20' ) start [2025-04-12 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892081', 'tblTempVendorCDR_20' ) end [2025-04-12 14:10:20] Production.INFO: ProcessCDR(1,14892081,1,1,2) [2025-04-12 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892081', 'tblTempUsageDetail_20' ) start [2025-04-12 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892081', 'tblTempUsageDetail_20' ) end [2025-04-12 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:10:25] Production.INFO: ==2018== Releasing lock... [2025-04-12 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:10:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:11:05 [end_date_ymd] => 2025-04-12 14:11:05 [RateCDR] => 1 ) [2025-04-12 14:11: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-04-12 11:11:05' and `end` < '2025-04-12 14:11: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-04-12 14:11:18] Production.INFO: count ==1641 [2025-04-12 14:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:11:05 - End Time 2025-04-12 14:11:05 [2025-04-12 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892086', 'tblTempUsageDetail_20' ) start [2025-04-12 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892086', 'tblTempUsageDetail_20' ) end [2025-04-12 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892086', 'tblTempVendorCDR_20' ) start [2025-04-12 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892086', 'tblTempVendorCDR_20' ) end [2025-04-12 14:11:18] Production.INFO: ProcessCDR(1,14892086,1,1,2) [2025-04-12 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892086', 'tblTempUsageDetail_20' ) start [2025-04-12 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892086', 'tblTempUsageDetail_20' ) end [2025-04-12 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:11:23] Production.INFO: ==2095== Releasing lock... [2025-04-12 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:12:06 [end_date_ymd] => 2025-04-12 14:12:06 [RateCDR] => 1 ) [2025-04-12 14:12: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-04-12 11:12:06' and `end` < '2025-04-12 14:12: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-04-12 14:12:18] Production.INFO: count ==1644 [2025-04-12 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:12:06 - End Time 2025-04-12 14:12:06 [2025-04-12 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892091', 'tblTempUsageDetail_20' ) start [2025-04-12 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892091', 'tblTempUsageDetail_20' ) end [2025-04-12 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892091', 'tblTempVendorCDR_20' ) start [2025-04-12 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892091', 'tblTempVendorCDR_20' ) end [2025-04-12 14:12:19] Production.INFO: ProcessCDR(1,14892091,1,1,2) [2025-04-12 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892091', 'tblTempUsageDetail_20' ) start [2025-04-12 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892091', 'tblTempUsageDetail_20' ) end [2025-04-12 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:12:24] Production.INFO: ==2172== Releasing lock... [2025-04-12 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:12:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:13:05 [end_date_ymd] => 2025-04-12 14:13:05 [RateCDR] => 1 ) [2025-04-12 14:13: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-04-12 11:13:05' and `end` < '2025-04-12 14:13: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-04-12 14:13:18] Production.INFO: count ==1636 [2025-04-12 14:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:13:05 - End Time 2025-04-12 14:13:05 [2025-04-12 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892096', 'tblTempUsageDetail_20' ) start [2025-04-12 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892096', 'tblTempUsageDetail_20' ) end [2025-04-12 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892096', 'tblTempVendorCDR_20' ) start [2025-04-12 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892096', 'tblTempVendorCDR_20' ) end [2025-04-12 14:13:18] Production.INFO: ProcessCDR(1,14892096,1,1,2) [2025-04-12 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892096', 'tblTempUsageDetail_20' ) start [2025-04-12 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892096', 'tblTempUsageDetail_20' ) end [2025-04-12 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:13:22] Production.INFO: ==2246== Releasing lock... [2025-04-12 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:13:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:14:05 [end_date_ymd] => 2025-04-12 14:14:05 [RateCDR] => 1 ) [2025-04-12 14:14: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-04-12 11:14:05' and `end` < '2025-04-12 14:14: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-04-12 14:14:18] Production.INFO: count ==1633 [2025-04-12 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:14:05 - End Time 2025-04-12 14:14:05 [2025-04-12 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892101', 'tblTempUsageDetail_20' ) start [2025-04-12 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892101', 'tblTempUsageDetail_20' ) end [2025-04-12 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892101', 'tblTempVendorCDR_20' ) start [2025-04-12 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892101', 'tblTempVendorCDR_20' ) end [2025-04-12 14:14:19] Production.INFO: ProcessCDR(1,14892101,1,1,2) [2025-04-12 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892101', 'tblTempUsageDetail_20' ) start [2025-04-12 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892101', 'tblTempUsageDetail_20' ) end [2025-04-12 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:14:24] Production.INFO: ==2317== Releasing lock... [2025-04-12 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:14:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:15:06 [end_date_ymd] => 2025-04-12 14:15:06 [RateCDR] => 1 ) [2025-04-12 14:15: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-04-12 11:15:06' and `end` < '2025-04-12 14:15: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-04-12 14:15:19] Production.INFO: count ==1631 [2025-04-12 14:15:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:15:06 - End Time 2025-04-12 14:15:06 [2025-04-12 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892106', 'tblTempUsageDetail_20' ) start [2025-04-12 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892106', 'tblTempUsageDetail_20' ) end [2025-04-12 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892106', 'tblTempVendorCDR_20' ) start [2025-04-12 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892106', 'tblTempVendorCDR_20' ) end [2025-04-12 14:15:19] Production.INFO: ProcessCDR(1,14892106,1,1,2) [2025-04-12 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892106', 'tblTempUsageDetail_20' ) start [2025-04-12 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892106', 'tblTempUsageDetail_20' ) end [2025-04-12 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:15:23] Production.INFO: ==2390== Releasing lock... [2025-04-12 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:15:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:16:05 [end_date_ymd] => 2025-04-12 14:16:05 [RateCDR] => 1 ) [2025-04-12 14:16: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-04-12 11:16:05' and `end` < '2025-04-12 14:16: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-04-12 14:16:18] Production.INFO: count ==1639 [2025-04-12 14:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:16:05 - End Time 2025-04-12 14:16:05 [2025-04-12 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892111', 'tblTempUsageDetail_20' ) start [2025-04-12 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892111', 'tblTempUsageDetail_20' ) end [2025-04-12 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892111', 'tblTempVendorCDR_20' ) start [2025-04-12 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892111', 'tblTempVendorCDR_20' ) end [2025-04-12 14:16:19] Production.INFO: ProcessCDR(1,14892111,1,1,2) [2025-04-12 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892111', 'tblTempUsageDetail_20' ) start [2025-04-12 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892111', 'tblTempUsageDetail_20' ) end [2025-04-12 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:16:22] Production.INFO: ==2465== Releasing lock... [2025-04-12 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:17:06 [end_date_ymd] => 2025-04-12 14:17:06 [RateCDR] => 1 ) [2025-04-12 14:17: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-04-12 11:17:06' and `end` < '2025-04-12 14:17: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-04-12 14:17:19] Production.INFO: count ==1633 [2025-04-12 14:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:17:06 - End Time 2025-04-12 14:17:06 [2025-04-12 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892116', 'tblTempUsageDetail_20' ) start [2025-04-12 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892116', 'tblTempUsageDetail_20' ) end [2025-04-12 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892116', 'tblTempVendorCDR_20' ) start [2025-04-12 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892116', 'tblTempVendorCDR_20' ) end [2025-04-12 14:17:19] Production.INFO: ProcessCDR(1,14892116,1,1,2) [2025-04-12 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892116', 'tblTempUsageDetail_20' ) start [2025-04-12 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892116', 'tblTempUsageDetail_20' ) end [2025-04-12 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:17:23] Production.INFO: ==2536== Releasing lock... [2025-04-12 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:18:04 [end_date_ymd] => 2025-04-12 14:18:04 [RateCDR] => 1 ) [2025-04-12 14:18: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-04-12 11:18:04' and `end` < '2025-04-12 14:18: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-04-12 14:18:18] Production.INFO: count ==1627 [2025-04-12 14:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:18:04 - End Time 2025-04-12 14:18:04 [2025-04-12 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892121', 'tblTempUsageDetail_20' ) start [2025-04-12 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892121', 'tblTempUsageDetail_20' ) end [2025-04-12 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892121', 'tblTempVendorCDR_20' ) start [2025-04-12 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892121', 'tblTempVendorCDR_20' ) end [2025-04-12 14:18:18] Production.INFO: ProcessCDR(1,14892121,1,1,2) [2025-04-12 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892121', 'tblTempUsageDetail_20' ) start [2025-04-12 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892121', 'tblTempUsageDetail_20' ) end [2025-04-12 14:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:18:21] Production.INFO: ==2644== Releasing lock... [2025-04-12 14:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:18:21] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:19:05 [end_date_ymd] => 2025-04-12 14:19:05 [RateCDR] => 1 ) [2025-04-12 14:19: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-04-12 11:19:05' and `end` < '2025-04-12 14:19: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-04-12 14:19:18] Production.INFO: count ==1629 [2025-04-12 14:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:19:05 - End Time 2025-04-12 14:19:05 [2025-04-12 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892126', 'tblTempUsageDetail_20' ) start [2025-04-12 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892126', 'tblTempUsageDetail_20' ) end [2025-04-12 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892126', 'tblTempVendorCDR_20' ) start [2025-04-12 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892126', 'tblTempVendorCDR_20' ) end [2025-04-12 14:19:18] Production.INFO: ProcessCDR(1,14892126,1,1,2) [2025-04-12 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892126', 'tblTempUsageDetail_20' ) start [2025-04-12 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892126', 'tblTempUsageDetail_20' ) end [2025-04-12 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:19:23] Production.INFO: ==2721== Releasing lock... [2025-04-12 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:19:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:20:05 [end_date_ymd] => 2025-04-12 14:20:05 [RateCDR] => 1 ) [2025-04-12 14:20: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-04-12 11:20:05' and `end` < '2025-04-12 14:20: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-04-12 14:20:18] Production.INFO: count ==1625 [2025-04-12 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:20:05 - End Time 2025-04-12 14:20:05 [2025-04-12 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892131', 'tblTempUsageDetail_20' ) start [2025-04-12 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892131', 'tblTempUsageDetail_20' ) end [2025-04-12 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892131', 'tblTempVendorCDR_20' ) start [2025-04-12 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892131', 'tblTempVendorCDR_20' ) end [2025-04-12 14:20:19] Production.INFO: ProcessCDR(1,14892131,1,1,2) [2025-04-12 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892131', 'tblTempUsageDetail_20' ) start [2025-04-12 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892131', 'tblTempUsageDetail_20' ) end [2025-04-12 14:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:20:22] Production.INFO: ==2798== Releasing lock... [2025-04-12 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:20:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:21:05 [end_date_ymd] => 2025-04-12 14:21:05 [RateCDR] => 1 ) [2025-04-12 14:21: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-04-12 11:21:05' and `end` < '2025-04-12 14:21: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-04-12 14:21:18] Production.INFO: count ==1600 [2025-04-12 14:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:21:05 - End Time 2025-04-12 14:21:05 [2025-04-12 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892137', 'tblTempUsageDetail_20' ) start [2025-04-12 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892137', 'tblTempUsageDetail_20' ) end [2025-04-12 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892137', 'tblTempVendorCDR_20' ) start [2025-04-12 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892137', 'tblTempVendorCDR_20' ) end [2025-04-12 14:21:19] Production.INFO: ProcessCDR(1,14892137,1,1,2) [2025-04-12 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892137', 'tblTempUsageDetail_20' ) start [2025-04-12 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892137', 'tblTempUsageDetail_20' ) end [2025-04-12 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:21:24] Production.INFO: ==2874== Releasing lock... [2025-04-12 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:21:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:22:05 [end_date_ymd] => 2025-04-12 14:22:05 [RateCDR] => 1 ) [2025-04-12 14:22: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-04-12 11:22:05' and `end` < '2025-04-12 14:22: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-04-12 14:22:18] Production.INFO: count ==1594 [2025-04-12 14:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:22:05 - End Time 2025-04-12 14:22:05 [2025-04-12 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892142', 'tblTempUsageDetail_20' ) start [2025-04-12 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892142', 'tblTempUsageDetail_20' ) end [2025-04-12 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892142', 'tblTempVendorCDR_20' ) start [2025-04-12 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892142', 'tblTempVendorCDR_20' ) end [2025-04-12 14:22:18] Production.INFO: ProcessCDR(1,14892142,1,1,2) [2025-04-12 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892142', 'tblTempUsageDetail_20' ) start [2025-04-12 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892142', 'tblTempUsageDetail_20' ) end [2025-04-12 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:22:22] Production.INFO: ==2947== Releasing lock... [2025-04-12 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:23:05 [end_date_ymd] => 2025-04-12 14:23:05 [RateCDR] => 1 ) [2025-04-12 14:23: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-04-12 11:23:05' and `end` < '2025-04-12 14:23: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-04-12 14:23:18] Production.INFO: count ==1593 [2025-04-12 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:23:05 - End Time 2025-04-12 14:23:05 [2025-04-12 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892147', 'tblTempUsageDetail_20' ) start [2025-04-12 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892147', 'tblTempUsageDetail_20' ) end [2025-04-12 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892147', 'tblTempVendorCDR_20' ) start [2025-04-12 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892147', 'tblTempVendorCDR_20' ) end [2025-04-12 14:23:19] Production.INFO: ProcessCDR(1,14892147,1,1,2) [2025-04-12 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892147', 'tblTempUsageDetail_20' ) start [2025-04-12 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892147', 'tblTempUsageDetail_20' ) end [2025-04-12 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:23:24] Production.INFO: ==3017== Releasing lock... [2025-04-12 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:23:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:24:05 [end_date_ymd] => 2025-04-12 14:24:05 [RateCDR] => 1 ) [2025-04-12 14:24: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-04-12 11:24:05' and `end` < '2025-04-12 14:24: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-04-12 14:24:18] Production.INFO: count ==1589 [2025-04-12 14:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:24:05 - End Time 2025-04-12 14:24:05 [2025-04-12 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892152', 'tblTempUsageDetail_20' ) start [2025-04-12 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892152', 'tblTempUsageDetail_20' ) end [2025-04-12 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892152', 'tblTempVendorCDR_20' ) start [2025-04-12 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892152', 'tblTempVendorCDR_20' ) end [2025-04-12 14:24:18] Production.INFO: ProcessCDR(1,14892152,1,1,2) [2025-04-12 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892152', 'tblTempUsageDetail_20' ) start [2025-04-12 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892152', 'tblTempUsageDetail_20' ) end [2025-04-12 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:24:23] Production.INFO: ==3089== Releasing lock... [2025-04-12 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:24:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:25:05 [end_date_ymd] => 2025-04-12 14:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 11:25:05' and `end` < '2025-04-12 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-04-12 14:25:18] Production.INFO: count ==1578 [2025-04-12 14:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:25:05 - End Time 2025-04-12 14:25:05 [2025-04-12 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892157', 'tblTempUsageDetail_20' ) start [2025-04-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892157', 'tblTempUsageDetail_20' ) end [2025-04-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892157', 'tblTempVendorCDR_20' ) start [2025-04-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892157', 'tblTempVendorCDR_20' ) end [2025-04-12 14:25:18] Production.INFO: ProcessCDR(1,14892157,1,1,2) [2025-04-12 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892157', 'tblTempUsageDetail_20' ) start [2025-04-12 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892157', 'tblTempUsageDetail_20' ) end [2025-04-12 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:25:23] Production.INFO: ==3172== Releasing lock... [2025-04-12 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:25:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:26:06 [end_date_ymd] => 2025-04-12 14:26:06 [RateCDR] => 1 ) [2025-04-12 14:26: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-04-12 11:26:06' and `end` < '2025-04-12 14:26: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-04-12 14:26:19] Production.INFO: count ==1580 [2025-04-12 14:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:26:06 - End Time 2025-04-12 14:26:06 [2025-04-12 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892162', 'tblTempUsageDetail_20' ) start [2025-04-12 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892162', 'tblTempUsageDetail_20' ) end [2025-04-12 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892162', 'tblTempVendorCDR_20' ) start [2025-04-12 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892162', 'tblTempVendorCDR_20' ) end [2025-04-12 14:26:19] Production.INFO: ProcessCDR(1,14892162,1,1,2) [2025-04-12 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892162', 'tblTempUsageDetail_20' ) start [2025-04-12 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892162', 'tblTempUsageDetail_20' ) end [2025-04-12 14:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:26:24] Production.INFO: ==3246== Releasing lock... [2025-04-12 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:26:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:27:05 [end_date_ymd] => 2025-04-12 14:27:05 [RateCDR] => 1 ) [2025-04-12 14:27: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-04-12 11:27:05' and `end` < '2025-04-12 14:27: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-04-12 14:27:18] Production.INFO: count ==1583 [2025-04-12 14:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:27:05 - End Time 2025-04-12 14:27:05 [2025-04-12 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892167', 'tblTempUsageDetail_20' ) start [2025-04-12 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892167', 'tblTempUsageDetail_20' ) end [2025-04-12 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892167', 'tblTempVendorCDR_20' ) start [2025-04-12 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892167', 'tblTempVendorCDR_20' ) end [2025-04-12 14:27:19] Production.INFO: ProcessCDR(1,14892167,1,1,2) [2025-04-12 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892167', 'tblTempUsageDetail_20' ) start [2025-04-12 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892167', 'tblTempUsageDetail_20' ) end [2025-04-12 14:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:27:24] Production.INFO: ==3319== Releasing lock... [2025-04-12 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:27:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:28:05 [end_date_ymd] => 2025-04-12 14:28:05 [RateCDR] => 1 ) [2025-04-12 14:28: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-04-12 11:28:05' and `end` < '2025-04-12 14:28: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-04-12 14:28:19] Production.INFO: count ==1579 [2025-04-12 14:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:28:05 - End Time 2025-04-12 14:28:05 [2025-04-12 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892172', 'tblTempUsageDetail_20' ) start [2025-04-12 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892172', 'tblTempUsageDetail_20' ) end [2025-04-12 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892172', 'tblTempVendorCDR_20' ) start [2025-04-12 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892172', 'tblTempVendorCDR_20' ) end [2025-04-12 14:28:19] Production.INFO: ProcessCDR(1,14892172,1,1,2) [2025-04-12 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892172', 'tblTempUsageDetail_20' ) start [2025-04-12 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892172', 'tblTempUsageDetail_20' ) end [2025-04-12 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:28:24] Production.INFO: ==3392== Releasing lock... [2025-04-12 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:28:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:29:05 [end_date_ymd] => 2025-04-12 14:29:05 [RateCDR] => 1 ) [2025-04-12 14:29: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-04-12 11:29:05' and `end` < '2025-04-12 14:29: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-04-12 14:29:18] Production.INFO: count ==1580 [2025-04-12 14:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:29:05 - End Time 2025-04-12 14:29:05 [2025-04-12 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892177', 'tblTempUsageDetail_20' ) start [2025-04-12 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892177', 'tblTempUsageDetail_20' ) end [2025-04-12 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892177', 'tblTempVendorCDR_20' ) start [2025-04-12 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892177', 'tblTempVendorCDR_20' ) end [2025-04-12 14:29:19] Production.INFO: ProcessCDR(1,14892177,1,1,2) [2025-04-12 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892177', 'tblTempUsageDetail_20' ) start [2025-04-12 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892177', 'tblTempUsageDetail_20' ) end [2025-04-12 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:29:24] Production.INFO: ==3468== Releasing lock... [2025-04-12 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:29:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:30:06 [end_date_ymd] => 2025-04-12 14:30:06 [RateCDR] => 1 ) [2025-04-12 14:30: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-04-12 11:30:06' and `end` < '2025-04-12 14:30: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-04-12 14:30:19] Production.INFO: count ==1581 [2025-04-12 14:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:30:06 - End Time 2025-04-12 14:30:06 [2025-04-12 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892183', 'tblTempUsageDetail_20' ) start [2025-04-12 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892183', 'tblTempUsageDetail_20' ) end [2025-04-12 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892183', 'tblTempVendorCDR_20' ) start [2025-04-12 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892183', 'tblTempVendorCDR_20' ) end [2025-04-12 14:30:19] Production.INFO: ProcessCDR(1,14892183,1,1,2) [2025-04-12 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892183', 'tblTempUsageDetail_20' ) start [2025-04-12 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892183', 'tblTempUsageDetail_20' ) end [2025-04-12 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:30:24] Production.INFO: ==3542== Releasing lock... [2025-04-12 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:30:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:31:05 [end_date_ymd] => 2025-04-12 14:31:05 [RateCDR] => 1 ) [2025-04-12 14:31: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-04-12 11:31:05' and `end` < '2025-04-12 14:31: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-04-12 14:31:18] Production.INFO: count ==1578 [2025-04-12 14:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:31:05 - End Time 2025-04-12 14:31:05 [2025-04-12 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892188', 'tblTempUsageDetail_20' ) start [2025-04-12 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892188', 'tblTempUsageDetail_20' ) end [2025-04-12 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892188', 'tblTempVendorCDR_20' ) start [2025-04-12 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892188', 'tblTempVendorCDR_20' ) end [2025-04-12 14:31:18] Production.INFO: ProcessCDR(1,14892188,1,1,2) [2025-04-12 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892188', 'tblTempUsageDetail_20' ) start [2025-04-12 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892188', 'tblTempUsageDetail_20' ) end [2025-04-12 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:31:23] Production.INFO: ==3623== Releasing lock... [2025-04-12 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:31:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:32:06 [end_date_ymd] => 2025-04-12 14:32:06 [RateCDR] => 1 ) [2025-04-12 14:32: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-04-12 11:32:06' and `end` < '2025-04-12 14:32: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-04-12 14:32:19] Production.INFO: count ==1578 [2025-04-12 14:32:20] Production.ERROR: pbx CDR StartTime 2025-04-12 11:32:06 - End Time 2025-04-12 14:32:06 [2025-04-12 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892193', 'tblTempUsageDetail_20' ) start [2025-04-12 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892193', 'tblTempUsageDetail_20' ) end [2025-04-12 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892193', 'tblTempVendorCDR_20' ) start [2025-04-12 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892193', 'tblTempVendorCDR_20' ) end [2025-04-12 14:32:20] Production.INFO: ProcessCDR(1,14892193,1,1,2) [2025-04-12 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892193', 'tblTempUsageDetail_20' ) start [2025-04-12 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892193', 'tblTempUsageDetail_20' ) end [2025-04-12 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:32:23] Production.INFO: ==3709== Releasing lock... [2025-04-12 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:32:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:33:05 [end_date_ymd] => 2025-04-12 14:33:05 [RateCDR] => 1 ) [2025-04-12 14:33: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-04-12 11:33:05' and `end` < '2025-04-12 14:33: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-04-12 14:33:18] Production.INFO: count ==1572 [2025-04-12 14:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:33:05 - End Time 2025-04-12 14:33:05 [2025-04-12 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892198', 'tblTempUsageDetail_20' ) start [2025-04-12 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892198', 'tblTempUsageDetail_20' ) end [2025-04-12 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892198', 'tblTempVendorCDR_20' ) start [2025-04-12 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892198', 'tblTempVendorCDR_20' ) end [2025-04-12 14:33:18] Production.INFO: ProcessCDR(1,14892198,1,1,2) [2025-04-12 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892198', 'tblTempUsageDetail_20' ) start [2025-04-12 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892198', 'tblTempUsageDetail_20' ) end [2025-04-12 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:33:21] Production.INFO: ==3784== Releasing lock... [2025-04-12 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:34:06 [end_date_ymd] => 2025-04-12 14:34:06 [RateCDR] => 1 ) [2025-04-12 14:34: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-04-12 11:34:06' and `end` < '2025-04-12 14:34: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-04-12 14:34:19] Production.INFO: count ==1572 [2025-04-12 14:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:34:06 - End Time 2025-04-12 14:34:06 [2025-04-12 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892203', 'tblTempUsageDetail_20' ) start [2025-04-12 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892203', 'tblTempUsageDetail_20' ) end [2025-04-12 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892203', 'tblTempVendorCDR_20' ) start [2025-04-12 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892203', 'tblTempVendorCDR_20' ) end [2025-04-12 14:34:19] Production.INFO: ProcessCDR(1,14892203,1,1,2) [2025-04-12 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892203', 'tblTempUsageDetail_20' ) start [2025-04-12 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892203', 'tblTempUsageDetail_20' ) end [2025-04-12 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:34:23] Production.INFO: ==3898== Releasing lock... [2025-04-12 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:34:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:35:05 [end_date_ymd] => 2025-04-12 14:35:05 [RateCDR] => 1 ) [2025-04-12 14:35: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-04-12 11:35:05' and `end` < '2025-04-12 14:35: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-04-12 14:35:18] Production.INFO: count ==1569 [2025-04-12 14:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:35:05 - End Time 2025-04-12 14:35:05 [2025-04-12 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892208', 'tblTempUsageDetail_20' ) start [2025-04-12 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892208', 'tblTempUsageDetail_20' ) end [2025-04-12 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892208', 'tblTempVendorCDR_20' ) start [2025-04-12 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892208', 'tblTempVendorCDR_20' ) end [2025-04-12 14:35:19] Production.INFO: ProcessCDR(1,14892208,1,1,2) [2025-04-12 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892208', 'tblTempUsageDetail_20' ) start [2025-04-12 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892208', 'tblTempUsageDetail_20' ) end [2025-04-12 14:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:35:24] Production.INFO: ==3979== Releasing lock... [2025-04-12 14:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:35:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:36:05 [end_date_ymd] => 2025-04-12 14:36:05 [RateCDR] => 1 ) [2025-04-12 14:36: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-04-12 11:36:05' and `end` < '2025-04-12 14:36: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-04-12 14:36:18] Production.INFO: count ==1570 [2025-04-12 14:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:36:05 - End Time 2025-04-12 14:36:05 [2025-04-12 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892213', 'tblTempUsageDetail_20' ) start [2025-04-12 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892213', 'tblTempUsageDetail_20' ) end [2025-04-12 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892213', 'tblTempVendorCDR_20' ) start [2025-04-12 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892213', 'tblTempVendorCDR_20' ) end [2025-04-12 14:36:19] Production.INFO: ProcessCDR(1,14892213,1,1,2) [2025-04-12 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892213', 'tblTempUsageDetail_20' ) start [2025-04-12 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892213', 'tblTempUsageDetail_20' ) end [2025-04-12 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:36:22] Production.INFO: ==4054== Releasing lock... [2025-04-12 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:36:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:37:05 [end_date_ymd] => 2025-04-12 14:37:05 [RateCDR] => 1 ) [2025-04-12 14:37: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-04-12 11:37:05' and `end` < '2025-04-12 14:37: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-04-12 14:37:18] Production.INFO: count ==1568 [2025-04-12 14:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:37:05 - End Time 2025-04-12 14:37:05 [2025-04-12 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892218', 'tblTempUsageDetail_20' ) start [2025-04-12 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892218', 'tblTempUsageDetail_20' ) end [2025-04-12 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892218', 'tblTempVendorCDR_20' ) start [2025-04-12 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892218', 'tblTempVendorCDR_20' ) end [2025-04-12 14:37:18] Production.INFO: ProcessCDR(1,14892218,1,1,2) [2025-04-12 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892218', 'tblTempUsageDetail_20' ) start [2025-04-12 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892218', 'tblTempUsageDetail_20' ) end [2025-04-12 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:37:22] Production.INFO: ==4129== Releasing lock... [2025-04-12 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:38:05 [end_date_ymd] => 2025-04-12 14:38:05 [RateCDR] => 1 ) [2025-04-12 14:38: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-04-12 11:38:05' and `end` < '2025-04-12 14:38: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-04-12 14:38:18] Production.INFO: count ==1566 [2025-04-12 14:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:38:05 - End Time 2025-04-12 14:38:05 [2025-04-12 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892223', 'tblTempUsageDetail_20' ) start [2025-04-12 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892223', 'tblTempUsageDetail_20' ) end [2025-04-12 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892223', 'tblTempVendorCDR_20' ) start [2025-04-12 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892223', 'tblTempVendorCDR_20' ) end [2025-04-12 14:38:19] Production.INFO: ProcessCDR(1,14892223,1,1,2) [2025-04-12 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892223', 'tblTempUsageDetail_20' ) start [2025-04-12 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892223', 'tblTempUsageDetail_20' ) end [2025-04-12 14:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:38:24] Production.INFO: ==4213== Releasing lock... [2025-04-12 14:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:38:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:39:05 [end_date_ymd] => 2025-04-12 14:39:05 [RateCDR] => 1 ) [2025-04-12 14:39: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-04-12 11:39:05' and `end` < '2025-04-12 14:39: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-04-12 14:39:18] Production.INFO: count ==1578 [2025-04-12 14:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:39:05 - End Time 2025-04-12 14:39:05 [2025-04-12 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892228', 'tblTempUsageDetail_20' ) start [2025-04-12 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892228', 'tblTempUsageDetail_20' ) end [2025-04-12 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892228', 'tblTempVendorCDR_20' ) start [2025-04-12 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892228', 'tblTempVendorCDR_20' ) end [2025-04-12 14:39:18] Production.INFO: ProcessCDR(1,14892228,1,1,2) [2025-04-12 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892228', 'tblTempUsageDetail_20' ) start [2025-04-12 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892228', 'tblTempUsageDetail_20' ) end [2025-04-12 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:39:24] Production.INFO: ==4295== Releasing lock... [2025-04-12 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:39:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:40:06 [end_date_ymd] => 2025-04-12 14:40:06 [RateCDR] => 1 ) [2025-04-12 14:40: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-04-12 11:40:06' and `end` < '2025-04-12 14:40: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-04-12 14:40:19] Production.INFO: count ==1577 [2025-04-12 14:40:20] Production.ERROR: pbx CDR StartTime 2025-04-12 11:40:06 - End Time 2025-04-12 14:40:06 [2025-04-12 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892234', 'tblTempUsageDetail_20' ) start [2025-04-12 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892234', 'tblTempUsageDetail_20' ) end [2025-04-12 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892234', 'tblTempVendorCDR_20' ) start [2025-04-12 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892234', 'tblTempVendorCDR_20' ) end [2025-04-12 14:40:20] Production.INFO: ProcessCDR(1,14892234,1,1,2) [2025-04-12 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892234', 'tblTempUsageDetail_20' ) start [2025-04-12 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892234', 'tblTempUsageDetail_20' ) end [2025-04-12 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:40:23] Production.INFO: ==4370== Releasing lock... [2025-04-12 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:41:05 [end_date_ymd] => 2025-04-12 14:41:05 [RateCDR] => 1 ) [2025-04-12 14:41: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-04-12 11:41:05' and `end` < '2025-04-12 14:41: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-04-12 14:41:18] Production.INFO: count ==1587 [2025-04-12 14:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:41:05 - End Time 2025-04-12 14:41:05 [2025-04-12 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892239', 'tblTempUsageDetail_20' ) start [2025-04-12 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892239', 'tblTempUsageDetail_20' ) end [2025-04-12 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892239', 'tblTempVendorCDR_20' ) start [2025-04-12 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892239', 'tblTempVendorCDR_20' ) end [2025-04-12 14:41:18] Production.INFO: ProcessCDR(1,14892239,1,1,2) [2025-04-12 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892239', 'tblTempUsageDetail_20' ) start [2025-04-12 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892239', 'tblTempUsageDetail_20' ) end [2025-04-12 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:41:22] Production.INFO: ==4445== Releasing lock... [2025-04-12 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:42:05 [end_date_ymd] => 2025-04-12 14:42:05 [RateCDR] => 1 ) [2025-04-12 14:42: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-04-12 11:42:05' and `end` < '2025-04-12 14:42: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-04-12 14:42:18] Production.INFO: count ==1585 [2025-04-12 14:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:42:05 - End Time 2025-04-12 14:42:05 [2025-04-12 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892244', 'tblTempUsageDetail_20' ) start [2025-04-12 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892244', 'tblTempUsageDetail_20' ) end [2025-04-12 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892244', 'tblTempVendorCDR_20' ) start [2025-04-12 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892244', 'tblTempVendorCDR_20' ) end [2025-04-12 14:42:19] Production.INFO: ProcessCDR(1,14892244,1,1,2) [2025-04-12 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892244', 'tblTempUsageDetail_20' ) start [2025-04-12 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892244', 'tblTempUsageDetail_20' ) end [2025-04-12 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:42:22] Production.INFO: ==4517== Releasing lock... [2025-04-12 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:43:04 [end_date_ymd] => 2025-04-12 14:43:04 [RateCDR] => 1 ) [2025-04-12 14:43: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-04-12 11:43:04' and `end` < '2025-04-12 14:43: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-04-12 14:43:18] Production.INFO: count ==1574 [2025-04-12 14:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:43:04 - End Time 2025-04-12 14:43:04 [2025-04-12 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892249', 'tblTempUsageDetail_20' ) start [2025-04-12 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892249', 'tblTempUsageDetail_20' ) end [2025-04-12 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892249', 'tblTempVendorCDR_20' ) start [2025-04-12 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892249', 'tblTempVendorCDR_20' ) end [2025-04-12 14:43:18] Production.INFO: ProcessCDR(1,14892249,1,1,2) [2025-04-12 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892249', 'tblTempUsageDetail_20' ) start [2025-04-12 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892249', 'tblTempUsageDetail_20' ) end [2025-04-12 14:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:43:21] Production.INFO: ==4596== Releasing lock... [2025-04-12 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:43:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:44:05 [end_date_ymd] => 2025-04-12 14:44:05 [RateCDR] => 1 ) [2025-04-12 14:44: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-04-12 11:44:05' and `end` < '2025-04-12 14:44: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-04-12 14:44:18] Production.INFO: count ==1585 [2025-04-12 14:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:44:05 - End Time 2025-04-12 14:44:05 [2025-04-12 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892254', 'tblTempUsageDetail_20' ) start [2025-04-12 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892254', 'tblTempUsageDetail_20' ) end [2025-04-12 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892254', 'tblTempVendorCDR_20' ) start [2025-04-12 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892254', 'tblTempVendorCDR_20' ) end [2025-04-12 14:44:19] Production.INFO: ProcessCDR(1,14892254,1,1,2) [2025-04-12 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892254', 'tblTempUsageDetail_20' ) start [2025-04-12 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892254', 'tblTempUsageDetail_20' ) end [2025-04-12 14:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:44:24] Production.INFO: ==4671== Releasing lock... [2025-04-12 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:44:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:45:06 [end_date_ymd] => 2025-04-12 14:45:06 [RateCDR] => 1 ) [2025-04-12 14:45: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-04-12 11:45:06' and `end` < '2025-04-12 14:45: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-04-12 14:45:18] Production.INFO: count ==1577 [2025-04-12 14:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:45:06 - End Time 2025-04-12 14:45:06 [2025-04-12 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892259', 'tblTempUsageDetail_20' ) start [2025-04-12 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892259', 'tblTempUsageDetail_20' ) end [2025-04-12 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892259', 'tblTempVendorCDR_20' ) start [2025-04-12 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892259', 'tblTempVendorCDR_20' ) end [2025-04-12 14:45:19] Production.INFO: ProcessCDR(1,14892259,1,1,2) [2025-04-12 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892259', 'tblTempUsageDetail_20' ) start [2025-04-12 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892259', 'tblTempUsageDetail_20' ) end [2025-04-12 14:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:45:24] Production.INFO: ==4745== Releasing lock... [2025-04-12 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:45:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:46:05 [end_date_ymd] => 2025-04-12 14:46:05 [RateCDR] => 1 ) [2025-04-12 14:46: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-04-12 11:46:05' and `end` < '2025-04-12 14:46: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-04-12 14:46:18] Production.INFO: count ==1576 [2025-04-12 14:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:46:05 - End Time 2025-04-12 14:46:05 [2025-04-12 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892264', 'tblTempUsageDetail_20' ) start [2025-04-12 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892264', 'tblTempUsageDetail_20' ) end [2025-04-12 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892264', 'tblTempVendorCDR_20' ) start [2025-04-12 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892264', 'tblTempVendorCDR_20' ) end [2025-04-12 14:46:19] Production.INFO: ProcessCDR(1,14892264,1,1,2) [2025-04-12 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892264', 'tblTempUsageDetail_20' ) start [2025-04-12 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892264', 'tblTempUsageDetail_20' ) end [2025-04-12 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:46:22] Production.INFO: ==4827== Releasing lock... [2025-04-12 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:46:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:47:06 [end_date_ymd] => 2025-04-12 14:47:06 [RateCDR] => 1 ) [2025-04-12 14:47: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-04-12 11:47:06' and `end` < '2025-04-12 14:47: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-04-12 14:47:19] Production.INFO: count ==1557 [2025-04-12 14:47:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:47:06 - End Time 2025-04-12 14:47:06 [2025-04-12 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892269', 'tblTempUsageDetail_20' ) start [2025-04-12 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892269', 'tblTempUsageDetail_20' ) end [2025-04-12 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892269', 'tblTempVendorCDR_20' ) start [2025-04-12 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892269', 'tblTempVendorCDR_20' ) end [2025-04-12 14:47:19] Production.INFO: ProcessCDR(1,14892269,1,1,2) [2025-04-12 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892269', 'tblTempUsageDetail_20' ) start [2025-04-12 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892269', 'tblTempUsageDetail_20' ) end [2025-04-12 14:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:47:23] Production.INFO: ==4906== Releasing lock... [2025-04-12 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:47:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:48:06 [end_date_ymd] => 2025-04-12 14:48:06 [RateCDR] => 1 ) [2025-04-12 14:48: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-04-12 11:48:06' and `end` < '2025-04-12 14:48: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-04-12 14:48:19] Production.INFO: count ==1550 [2025-04-12 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:48:06 - End Time 2025-04-12 14:48:06 [2025-04-12 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892274', 'tblTempUsageDetail_20' ) start [2025-04-12 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892274', 'tblTempUsageDetail_20' ) end [2025-04-12 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892274', 'tblTempVendorCDR_20' ) start [2025-04-12 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892274', 'tblTempVendorCDR_20' ) end [2025-04-12 14:48:19] Production.INFO: ProcessCDR(1,14892274,1,1,2) [2025-04-12 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892274', 'tblTempUsageDetail_20' ) start [2025-04-12 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892274', 'tblTempUsageDetail_20' ) end [2025-04-12 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:48:23] Production.INFO: ==4984== Releasing lock... [2025-04-12 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:48:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:49:06 [end_date_ymd] => 2025-04-12 14:49:06 [RateCDR] => 1 ) [2025-04-12 14:49: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-04-12 11:49:06' and `end` < '2025-04-12 14:49: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-04-12 14:49:19] Production.INFO: count ==1550 [2025-04-12 14:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:49:06 - End Time 2025-04-12 14:49:06 [2025-04-12 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892279', 'tblTempUsageDetail_20' ) start [2025-04-12 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892279', 'tblTempUsageDetail_20' ) end [2025-04-12 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892279', 'tblTempVendorCDR_20' ) start [2025-04-12 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892279', 'tblTempVendorCDR_20' ) end [2025-04-12 14:49:19] Production.INFO: ProcessCDR(1,14892279,1,1,2) [2025-04-12 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892279', 'tblTempUsageDetail_20' ) start [2025-04-12 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892279', 'tblTempUsageDetail_20' ) end [2025-04-12 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:49:24] Production.INFO: ==5099== Releasing lock... [2025-04-12 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:49:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:50:06 [end_date_ymd] => 2025-04-12 14:50:06 [RateCDR] => 1 ) [2025-04-12 14:50: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-04-12 11:50:06' and `end` < '2025-04-12 14:50: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-04-12 14:50:19] Production.INFO: count ==1549 [2025-04-12 14:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:50:06 - End Time 2025-04-12 14:50:06 [2025-04-12 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892284', 'tblTempUsageDetail_20' ) start [2025-04-12 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892284', 'tblTempUsageDetail_20' ) end [2025-04-12 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892284', 'tblTempVendorCDR_20' ) start [2025-04-12 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892284', 'tblTempVendorCDR_20' ) end [2025-04-12 14:50:19] Production.INFO: ProcessCDR(1,14892284,1,1,2) [2025-04-12 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892284', 'tblTempUsageDetail_20' ) start [2025-04-12 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892284', 'tblTempUsageDetail_20' ) end [2025-04-12 14:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:50:25] Production.INFO: ==5180== Releasing lock... [2025-04-12 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:50:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:51:06 [end_date_ymd] => 2025-04-12 14:51:06 [RateCDR] => 1 ) [2025-04-12 14:51: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-04-12 11:51:06' and `end` < '2025-04-12 14:51: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-04-12 14:51:19] Production.INFO: count ==1535 [2025-04-12 14:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:51:06 - End Time 2025-04-12 14:51:06 [2025-04-12 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892290', 'tblTempUsageDetail_20' ) start [2025-04-12 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892290', 'tblTempUsageDetail_20' ) end [2025-04-12 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892290', 'tblTempVendorCDR_20' ) start [2025-04-12 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892290', 'tblTempVendorCDR_20' ) end [2025-04-12 14:51:19] Production.INFO: ProcessCDR(1,14892290,1,1,2) [2025-04-12 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892290', 'tblTempUsageDetail_20' ) start [2025-04-12 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892290', 'tblTempUsageDetail_20' ) end [2025-04-12 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:51:24] Production.INFO: ==5264== Releasing lock... [2025-04-12 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:51:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:52:05 [end_date_ymd] => 2025-04-12 14:52:05 [RateCDR] => 1 ) [2025-04-12 14:52: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-04-12 11:52:05' and `end` < '2025-04-12 14:52: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-04-12 14:52:18] Production.INFO: count ==1534 [2025-04-12 14:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:52:05 - End Time 2025-04-12 14:52:05 [2025-04-12 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892295', 'tblTempUsageDetail_20' ) start [2025-04-12 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892295', 'tblTempUsageDetail_20' ) end [2025-04-12 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892295', 'tblTempVendorCDR_20' ) start [2025-04-12 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892295', 'tblTempVendorCDR_20' ) end [2025-04-12 14:52:18] Production.INFO: ProcessCDR(1,14892295,1,1,2) [2025-04-12 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892295', 'tblTempUsageDetail_20' ) start [2025-04-12 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892295', 'tblTempUsageDetail_20' ) end [2025-04-12 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:52:22] Production.INFO: ==5352== Releasing lock... [2025-04-12 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:53:06 [end_date_ymd] => 2025-04-12 14:53:06 [RateCDR] => 1 ) [2025-04-12 14:53: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-04-12 11:53:06' and `end` < '2025-04-12 14:53: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-04-12 14:53:19] Production.INFO: count ==1533 [2025-04-12 14:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:53:06 - End Time 2025-04-12 14:53:06 [2025-04-12 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892300', 'tblTempUsageDetail_20' ) start [2025-04-12 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892300', 'tblTempUsageDetail_20' ) end [2025-04-12 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892300', 'tblTempVendorCDR_20' ) start [2025-04-12 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892300', 'tblTempVendorCDR_20' ) end [2025-04-12 14:53:19] Production.INFO: ProcessCDR(1,14892300,1,1,2) [2025-04-12 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892300', 'tblTempUsageDetail_20' ) start [2025-04-12 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892300', 'tblTempUsageDetail_20' ) end [2025-04-12 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:53:23] Production.INFO: ==5425== Releasing lock... [2025-04-12 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:53:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:54:05 [end_date_ymd] => 2025-04-12 14:54:05 [RateCDR] => 1 ) [2025-04-12 14:54: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-04-12 11:54:05' and `end` < '2025-04-12 14:54: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-04-12 14:54:18] Production.INFO: count ==1532 [2025-04-12 14:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:54:05 - End Time 2025-04-12 14:54:05 [2025-04-12 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892305', 'tblTempUsageDetail_20' ) start [2025-04-12 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892305', 'tblTempUsageDetail_20' ) end [2025-04-12 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892305', 'tblTempVendorCDR_20' ) start [2025-04-12 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892305', 'tblTempVendorCDR_20' ) end [2025-04-12 14:54:18] Production.INFO: ProcessCDR(1,14892305,1,1,2) [2025-04-12 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892305', 'tblTempUsageDetail_20' ) start [2025-04-12 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892305', 'tblTempUsageDetail_20' ) end [2025-04-12 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:54:23] Production.INFO: ==5501== Releasing lock... [2025-04-12 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:54:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:55:05 [end_date_ymd] => 2025-04-12 14:55:05 [RateCDR] => 1 ) [2025-04-12 14:55: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-04-12 11:55:05' and `end` < '2025-04-12 14:55: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-04-12 14:55:18] Production.INFO: count ==1529 [2025-04-12 14:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:55:05 - End Time 2025-04-12 14:55:05 [2025-04-12 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892310', 'tblTempUsageDetail_20' ) start [2025-04-12 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892310', 'tblTempUsageDetail_20' ) end [2025-04-12 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892310', 'tblTempVendorCDR_20' ) start [2025-04-12 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892310', 'tblTempVendorCDR_20' ) end [2025-04-12 14:55:19] Production.INFO: ProcessCDR(1,14892310,1,1,2) [2025-04-12 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892310', 'tblTempUsageDetail_20' ) start [2025-04-12 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892310', 'tblTempUsageDetail_20' ) end [2025-04-12 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:55:22] Production.INFO: ==5570== Releasing lock... [2025-04-12 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:55:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:56:05 [end_date_ymd] => 2025-04-12 14:56:05 [RateCDR] => 1 ) [2025-04-12 14:56: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-04-12 11:56:05' and `end` < '2025-04-12 14:56: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-04-12 14:56:18] Production.INFO: count ==1526 [2025-04-12 14:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:56:05 - End Time 2025-04-12 14:56:05 [2025-04-12 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892315', 'tblTempUsageDetail_20' ) start [2025-04-12 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892315', 'tblTempUsageDetail_20' ) end [2025-04-12 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892315', 'tblTempVendorCDR_20' ) start [2025-04-12 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892315', 'tblTempVendorCDR_20' ) end [2025-04-12 14:56:19] Production.INFO: ProcessCDR(1,14892315,1,1,2) [2025-04-12 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892315', 'tblTempUsageDetail_20' ) start [2025-04-12 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892315', 'tblTempUsageDetail_20' ) end [2025-04-12 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:56:24] Production.INFO: ==5643== Releasing lock... [2025-04-12 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:56:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:57:06 [end_date_ymd] => 2025-04-12 14:57:06 [RateCDR] => 1 ) [2025-04-12 14:57: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-04-12 11:57:06' and `end` < '2025-04-12 14:57: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-04-12 14:57:19] Production.INFO: count ==1525 [2025-04-12 14:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 11:57:06 - End Time 2025-04-12 14:57:06 [2025-04-12 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892320', 'tblTempUsageDetail_20' ) start [2025-04-12 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892320', 'tblTempUsageDetail_20' ) end [2025-04-12 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892320', 'tblTempVendorCDR_20' ) start [2025-04-12 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892320', 'tblTempVendorCDR_20' ) end [2025-04-12 14:57:19] Production.INFO: ProcessCDR(1,14892320,1,1,2) [2025-04-12 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892320', 'tblTempUsageDetail_20' ) start [2025-04-12 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892320', 'tblTempUsageDetail_20' ) end [2025-04-12 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:57:23] Production.INFO: ==5716== Releasing lock... [2025-04-12 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:57:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:58:04 [end_date_ymd] => 2025-04-12 14:58:04 [RateCDR] => 1 ) [2025-04-12 14:58: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-04-12 11:58:04' and `end` < '2025-04-12 14:58: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-04-12 14:58:17] Production.INFO: count ==1523 [2025-04-12 14:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:58:04 - End Time 2025-04-12 14:58:04 [2025-04-12 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892325', 'tblTempUsageDetail_20' ) start [2025-04-12 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892325', 'tblTempUsageDetail_20' ) end [2025-04-12 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892325', 'tblTempVendorCDR_20' ) start [2025-04-12 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892325', 'tblTempVendorCDR_20' ) end [2025-04-12 14:58:18] Production.INFO: ProcessCDR(1,14892325,1,1,2) [2025-04-12 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892325', 'tblTempUsageDetail_20' ) start [2025-04-12 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892325', 'tblTempUsageDetail_20' ) end [2025-04-12 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:58:22] Production.INFO: ==5793== Releasing lock... [2025-04-12 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:58:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 11:59:05 [end_date_ymd] => 2025-04-12 14:59:05 [RateCDR] => 1 ) [2025-04-12 14:59: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-04-12 11:59:05' and `end` < '2025-04-12 14:59: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-04-12 14:59:18] Production.INFO: count ==1515 [2025-04-12 14:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 11:59:05 - End Time 2025-04-12 14:59:05 [2025-04-12 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892330', 'tblTempUsageDetail_20' ) start [2025-04-12 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892330', 'tblTempUsageDetail_20' ) end [2025-04-12 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892330', 'tblTempVendorCDR_20' ) start [2025-04-12 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892330', 'tblTempVendorCDR_20' ) end [2025-04-12 14:59:18] Production.INFO: ProcessCDR(1,14892330,1,1,2) [2025-04-12 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 14:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892330', 'tblTempUsageDetail_20' ) start [2025-04-12 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892330', 'tblTempUsageDetail_20' ) end [2025-04-12 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 14:59:22] Production.INFO: ==5866== Releasing lock... [2025-04-12 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 14:59:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:00:06 [end_date_ymd] => 2025-04-12 15:00:06 [RateCDR] => 1 ) [2025-04-12 15:00: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-04-12 12:00:06' and `end` < '2025-04-12 15:00: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-04-12 15:00:19] Production.INFO: count ==1514 [2025-04-12 15:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:00:06 - End Time 2025-04-12 15:00:06 [2025-04-12 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892336', 'tblTempUsageDetail_20' ) start [2025-04-12 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892336', 'tblTempUsageDetail_20' ) end [2025-04-12 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892336', 'tblTempVendorCDR_20' ) start [2025-04-12 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892336', 'tblTempVendorCDR_20' ) end [2025-04-12 15:00:19] Production.INFO: ProcessCDR(1,14892336,1,1,2) [2025-04-12 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892336', 'tblTempUsageDetail_20' ) start [2025-04-12 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892336', 'tblTempUsageDetail_20' ) end [2025-04-12 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:00:23] Production.INFO: ==5941== Releasing lock... [2025-04-12 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:00:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:01:06 [end_date_ymd] => 2025-04-12 15:01:06 [RateCDR] => 1 ) [2025-04-12 15:01: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-04-12 12:01:06' and `end` < '2025-04-12 15:01: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-04-12 15:01:19] Production.INFO: count ==1469 [2025-04-12 15:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:01:06 - End Time 2025-04-12 15:01:06 [2025-04-12 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892341', 'tblTempUsageDetail_20' ) start [2025-04-12 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892341', 'tblTempUsageDetail_20' ) end [2025-04-12 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892341', 'tblTempVendorCDR_20' ) start [2025-04-12 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892341', 'tblTempVendorCDR_20' ) end [2025-04-12 15:01:19] Production.INFO: ProcessCDR(1,14892341,1,1,2) [2025-04-12 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892341', 'tblTempUsageDetail_20' ) start [2025-04-12 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892341', 'tblTempUsageDetail_20' ) end [2025-04-12 15:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:01:24] Production.INFO: ==6107== Releasing lock... [2025-04-12 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:01:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:02:05 [end_date_ymd] => 2025-04-12 15:02:05 [RateCDR] => 1 ) [2025-04-12 15:02: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-04-12 12:02:05' and `end` < '2025-04-12 15:02: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-04-12 15:02:18] Production.INFO: count ==1468 [2025-04-12 15:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:02:05 - End Time 2025-04-12 15:02:05 [2025-04-12 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892346', 'tblTempUsageDetail_20' ) start [2025-04-12 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892346', 'tblTempUsageDetail_20' ) end [2025-04-12 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892346', 'tblTempVendorCDR_20' ) start [2025-04-12 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892346', 'tblTempVendorCDR_20' ) end [2025-04-12 15:02:18] Production.INFO: ProcessCDR(1,14892346,1,1,2) [2025-04-12 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892346', 'tblTempUsageDetail_20' ) start [2025-04-12 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892346', 'tblTempUsageDetail_20' ) end [2025-04-12 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:02:22] Production.INFO: ==6178== Releasing lock... [2025-04-12 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:02:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:03:05 [end_date_ymd] => 2025-04-12 15:03:05 [RateCDR] => 1 ) [2025-04-12 15:03: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-04-12 12:03:05' and `end` < '2025-04-12 15:03: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-04-12 15:03:18] Production.INFO: count ==1462 [2025-04-12 15:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:03:05 - End Time 2025-04-12 15:03:05 [2025-04-12 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892351', 'tblTempUsageDetail_20' ) start [2025-04-12 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892351', 'tblTempUsageDetail_20' ) end [2025-04-12 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892351', 'tblTempVendorCDR_20' ) start [2025-04-12 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892351', 'tblTempVendorCDR_20' ) end [2025-04-12 15:03:19] Production.INFO: ProcessCDR(1,14892351,1,1,2) [2025-04-12 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892351', 'tblTempUsageDetail_20' ) start [2025-04-12 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892351', 'tblTempUsageDetail_20' ) end [2025-04-12 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:03:22] Production.INFO: ==6252== Releasing lock... [2025-04-12 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:04:05 [end_date_ymd] => 2025-04-12 15:04:05 [RateCDR] => 1 ) [2025-04-12 15:04: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-04-12 12:04:05' and `end` < '2025-04-12 15:04: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-04-12 15:04:18] Production.INFO: count ==1458 [2025-04-12 15:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:04:05 - End Time 2025-04-12 15:04:05 [2025-04-12 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892356', 'tblTempUsageDetail_20' ) start [2025-04-12 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892356', 'tblTempUsageDetail_20' ) end [2025-04-12 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892356', 'tblTempVendorCDR_20' ) start [2025-04-12 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892356', 'tblTempVendorCDR_20' ) end [2025-04-12 15:04:19] Production.INFO: ProcessCDR(1,14892356,1,1,2) [2025-04-12 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892356', 'tblTempUsageDetail_20' ) start [2025-04-12 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892356', 'tblTempUsageDetail_20' ) end [2025-04-12 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:04:24] Production.INFO: ==6324== Releasing lock... [2025-04-12 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:04:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:05:06 [end_date_ymd] => 2025-04-12 15:05:06 [RateCDR] => 1 ) [2025-04-12 15:05: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-04-12 12:05:06' and `end` < '2025-04-12 15:05: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-04-12 15:05:19] Production.INFO: count ==1456 [2025-04-12 15:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:05:06 - End Time 2025-04-12 15:05:06 [2025-04-12 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892361', 'tblTempUsageDetail_20' ) start [2025-04-12 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892361', 'tblTempUsageDetail_20' ) end [2025-04-12 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892361', 'tblTempVendorCDR_20' ) start [2025-04-12 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892361', 'tblTempVendorCDR_20' ) end [2025-04-12 15:05:19] Production.INFO: ProcessCDR(1,14892361,1,1,2) [2025-04-12 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892361', 'tblTempUsageDetail_20' ) start [2025-04-12 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892361', 'tblTempUsageDetail_20' ) end [2025-04-12 15:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:05:24] Production.INFO: ==6518== Releasing lock... [2025-04-12 15:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:05:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:06:05 [end_date_ymd] => 2025-04-12 15:06:05 [RateCDR] => 1 ) [2025-04-12 15:06: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-04-12 12:06:05' and `end` < '2025-04-12 15:06: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-04-12 15:06:18] Production.INFO: count ==1468 [2025-04-12 15:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:06:05 - End Time 2025-04-12 15:06:05 [2025-04-12 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892366', 'tblTempUsageDetail_20' ) start [2025-04-12 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892366', 'tblTempUsageDetail_20' ) end [2025-04-12 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892366', 'tblTempVendorCDR_20' ) start [2025-04-12 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892366', 'tblTempVendorCDR_20' ) end [2025-04-12 15:06:18] Production.INFO: ProcessCDR(1,14892366,1,1,2) [2025-04-12 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892366', 'tblTempUsageDetail_20' ) start [2025-04-12 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892366', 'tblTempUsageDetail_20' ) end [2025-04-12 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:06:22] Production.INFO: ==6598== Releasing lock... [2025-04-12 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:07:05 [end_date_ymd] => 2025-04-12 15:07:05 [RateCDR] => 1 ) [2025-04-12 15:07: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-04-12 12:07:05' and `end` < '2025-04-12 15:07: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-04-12 15:07:19] Production.INFO: count ==1492 [2025-04-12 15:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:07:05 - End Time 2025-04-12 15:07:05 [2025-04-12 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892371', 'tblTempUsageDetail_20' ) start [2025-04-12 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892371', 'tblTempUsageDetail_20' ) end [2025-04-12 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892371', 'tblTempVendorCDR_20' ) start [2025-04-12 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892371', 'tblTempVendorCDR_20' ) end [2025-04-12 15:07:19] Production.INFO: ProcessCDR(1,14892371,1,1,2) [2025-04-12 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892371', 'tblTempUsageDetail_20' ) start [2025-04-12 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892371', 'tblTempUsageDetail_20' ) end [2025-04-12 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:07:23] Production.INFO: ==6670== Releasing lock... [2025-04-12 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:07:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:08:05 [end_date_ymd] => 2025-04-12 15:08:05 [RateCDR] => 1 ) [2025-04-12 15:08: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-04-12 12:08:05' and `end` < '2025-04-12 15:08: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-04-12 15:08:18] Production.INFO: count ==1504 [2025-04-12 15:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:08:05 - End Time 2025-04-12 15:08:05 [2025-04-12 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892376', 'tblTempUsageDetail_20' ) start [2025-04-12 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892376', 'tblTempUsageDetail_20' ) end [2025-04-12 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892376', 'tblTempVendorCDR_20' ) start [2025-04-12 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892376', 'tblTempVendorCDR_20' ) end [2025-04-12 15:08:18] Production.INFO: ProcessCDR(1,14892376,1,1,2) [2025-04-12 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892376', 'tblTempUsageDetail_20' ) start [2025-04-12 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892376', 'tblTempUsageDetail_20' ) end [2025-04-12 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:08:24] Production.INFO: ==6820== Releasing lock... [2025-04-12 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:08:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:09:05 [end_date_ymd] => 2025-04-12 15:09:05 [RateCDR] => 1 ) [2025-04-12 15:09: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-04-12 12:09:05' and `end` < '2025-04-12 15:09: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-04-12 15:09:18] Production.INFO: count ==1512 [2025-04-12 15:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:09:05 - End Time 2025-04-12 15:09:05 [2025-04-12 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892381', 'tblTempUsageDetail_20' ) start [2025-04-12 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892381', 'tblTempUsageDetail_20' ) end [2025-04-12 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892381', 'tblTempVendorCDR_20' ) start [2025-04-12 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892381', 'tblTempVendorCDR_20' ) end [2025-04-12 15:09:19] Production.INFO: ProcessCDR(1,14892381,1,1,2) [2025-04-12 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892381', 'tblTempUsageDetail_20' ) start [2025-04-12 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892381', 'tblTempUsageDetail_20' ) end [2025-04-12 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:09:24] Production.INFO: ==6898== Releasing lock... [2025-04-12 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:09:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:10:06 [end_date_ymd] => 2025-04-12 15:10:06 [RateCDR] => 1 ) [2025-04-12 15:10: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-04-12 12:10:06' and `end` < '2025-04-12 15:10: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-04-12 15:10:19] Production.INFO: count ==1511 [2025-04-12 15:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 12:10:06 - End Time 2025-04-12 15:10:06 [2025-04-12 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892387', 'tblTempUsageDetail_20' ) start [2025-04-12 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892387', 'tblTempUsageDetail_20' ) end [2025-04-12 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892387', 'tblTempVendorCDR_20' ) start [2025-04-12 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892387', 'tblTempVendorCDR_20' ) end [2025-04-12 15:10:20] Production.INFO: ProcessCDR(1,14892387,1,1,2) [2025-04-12 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892387', 'tblTempUsageDetail_20' ) start [2025-04-12 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892387', 'tblTempUsageDetail_20' ) end [2025-04-12 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:10:23] Production.INFO: ==6976== Releasing lock... [2025-04-12 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:11:05 [end_date_ymd] => 2025-04-12 15:11:05 [RateCDR] => 1 ) [2025-04-12 15:11: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-04-12 12:11:05' and `end` < '2025-04-12 15:11: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-04-12 15:11:18] Production.INFO: count ==1511 [2025-04-12 15:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:11:05 - End Time 2025-04-12 15:11:05 [2025-04-12 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892392', 'tblTempUsageDetail_20' ) start [2025-04-12 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892392', 'tblTempUsageDetail_20' ) end [2025-04-12 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892392', 'tblTempVendorCDR_20' ) start [2025-04-12 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892392', 'tblTempVendorCDR_20' ) end [2025-04-12 15:11:18] Production.INFO: ProcessCDR(1,14892392,1,1,2) [2025-04-12 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892392', 'tblTempUsageDetail_20' ) start [2025-04-12 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892392', 'tblTempUsageDetail_20' ) end [2025-04-12 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:11:23] Production.INFO: ==7050== Releasing lock... [2025-04-12 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:11:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:12:05 [end_date_ymd] => 2025-04-12 15:12:05 [RateCDR] => 1 ) [2025-04-12 15:12: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-04-12 12:12:05' and `end` < '2025-04-12 15:12: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-04-12 15:12:18] Production.INFO: count ==1510 [2025-04-12 15:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:12:05 - End Time 2025-04-12 15:12:05 [2025-04-12 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892397', 'tblTempUsageDetail_20' ) start [2025-04-12 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892397', 'tblTempUsageDetail_20' ) end [2025-04-12 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892397', 'tblTempVendorCDR_20' ) start [2025-04-12 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892397', 'tblTempVendorCDR_20' ) end [2025-04-12 15:12:19] Production.INFO: ProcessCDR(1,14892397,1,1,2) [2025-04-12 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892397', 'tblTempUsageDetail_20' ) start [2025-04-12 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892397', 'tblTempUsageDetail_20' ) end [2025-04-12 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:12:22] Production.INFO: ==7203== Releasing lock... [2025-04-12 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:12:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:13:05 [end_date_ymd] => 2025-04-12 15:13:05 [RateCDR] => 1 ) [2025-04-12 15:13: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-04-12 12:13:05' and `end` < '2025-04-12 15:13: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-04-12 15:13:18] Production.INFO: count ==1510 [2025-04-12 15:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:13:05 - End Time 2025-04-12 15:13:05 [2025-04-12 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892402', 'tblTempUsageDetail_20' ) start [2025-04-12 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892402', 'tblTempUsageDetail_20' ) end [2025-04-12 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892402', 'tblTempVendorCDR_20' ) start [2025-04-12 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892402', 'tblTempVendorCDR_20' ) end [2025-04-12 15:13:18] Production.INFO: ProcessCDR(1,14892402,1,1,2) [2025-04-12 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892402', 'tblTempUsageDetail_20' ) start [2025-04-12 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892402', 'tblTempUsageDetail_20' ) end [2025-04-12 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:13:23] Production.INFO: ==7272== Releasing lock... [2025-04-12 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:13:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:14:05 [end_date_ymd] => 2025-04-12 15:14:05 [RateCDR] => 1 ) [2025-04-12 15:14: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-04-12 12:14:05' and `end` < '2025-04-12 15:14: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-04-12 15:14:19] Production.INFO: count ==1504 [2025-04-12 15:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:14:05 - End Time 2025-04-12 15:14:05 [2025-04-12 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892407', 'tblTempUsageDetail_20' ) start [2025-04-12 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892407', 'tblTempUsageDetail_20' ) end [2025-04-12 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892407', 'tblTempVendorCDR_20' ) start [2025-04-12 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892407', 'tblTempVendorCDR_20' ) end [2025-04-12 15:14:19] Production.INFO: ProcessCDR(1,14892407,1,1,2) [2025-04-12 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892407', 'tblTempUsageDetail_20' ) start [2025-04-12 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892407', 'tblTempUsageDetail_20' ) end [2025-04-12 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:14:24] Production.INFO: ==7349== Releasing lock... [2025-04-12 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:14:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:15:05 [end_date_ymd] => 2025-04-12 15:15:05 [RateCDR] => 1 ) [2025-04-12 15:15: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-04-12 12:15:05' and `end` < '2025-04-12 15:15: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-04-12 15:15:18] Production.INFO: count ==1509 [2025-04-12 15:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:15:05 - End Time 2025-04-12 15:15:05 [2025-04-12 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892412', 'tblTempUsageDetail_20' ) start [2025-04-12 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892412', 'tblTempUsageDetail_20' ) end [2025-04-12 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892412', 'tblTempVendorCDR_20' ) start [2025-04-12 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892412', 'tblTempVendorCDR_20' ) end [2025-04-12 15:15:18] Production.INFO: ProcessCDR(1,14892412,1,1,2) [2025-04-12 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892412', 'tblTempUsageDetail_20' ) start [2025-04-12 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892412', 'tblTempUsageDetail_20' ) end [2025-04-12 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:15:23] Production.INFO: ==7496== Releasing lock... [2025-04-12 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:15:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:16:05 [end_date_ymd] => 2025-04-12 15:16:05 [RateCDR] => 1 ) [2025-04-12 15:16: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-04-12 12:16:05' and `end` < '2025-04-12 15:16: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-04-12 15:16:18] Production.INFO: count ==1514 [2025-04-12 15:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:16:05 - End Time 2025-04-12 15:16:05 [2025-04-12 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892417', 'tblTempUsageDetail_20' ) start [2025-04-12 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892417', 'tblTempUsageDetail_20' ) end [2025-04-12 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892417', 'tblTempVendorCDR_20' ) start [2025-04-12 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892417', 'tblTempVendorCDR_20' ) end [2025-04-12 15:16:19] Production.INFO: ProcessCDR(1,14892417,1,1,2) [2025-04-12 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892417', 'tblTempUsageDetail_20' ) start [2025-04-12 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892417', 'tblTempUsageDetail_20' ) end [2025-04-12 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:16:22] Production.INFO: ==7573== Releasing lock... [2025-04-12 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:16:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:17:04 [end_date_ymd] => 2025-04-12 15:17:04 [RateCDR] => 1 ) [2025-04-12 15:17: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-04-12 12:17:04' and `end` < '2025-04-12 15:17: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-04-12 15:17:18] Production.INFO: count ==1507 [2025-04-12 15:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:17:04 - End Time 2025-04-12 15:17:04 [2025-04-12 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892422', 'tblTempUsageDetail_20' ) start [2025-04-12 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892422', 'tblTempUsageDetail_20' ) end [2025-04-12 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892422', 'tblTempVendorCDR_20' ) start [2025-04-12 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892422', 'tblTempVendorCDR_20' ) end [2025-04-12 15:17:18] Production.INFO: ProcessCDR(1,14892422,1,1,2) [2025-04-12 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892422', 'tblTempUsageDetail_20' ) start [2025-04-12 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892422', 'tblTempUsageDetail_20' ) end [2025-04-12 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:17:22] Production.INFO: ==7645== Releasing lock... [2025-04-12 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:17:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:18:05 [end_date_ymd] => 2025-04-12 15:18:05 [RateCDR] => 1 ) [2025-04-12 15:18: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-04-12 12:18:05' and `end` < '2025-04-12 15:18: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-04-12 15:18:18] Production.INFO: count ==1501 [2025-04-12 15:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:18:05 - End Time 2025-04-12 15:18:05 [2025-04-12 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892427', 'tblTempUsageDetail_20' ) start [2025-04-12 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892427', 'tblTempUsageDetail_20' ) end [2025-04-12 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892427', 'tblTempVendorCDR_20' ) start [2025-04-12 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892427', 'tblTempVendorCDR_20' ) end [2025-04-12 15:18:19] Production.INFO: ProcessCDR(1,14892427,1,1,2) [2025-04-12 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892427', 'tblTempUsageDetail_20' ) start [2025-04-12 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892427', 'tblTempUsageDetail_20' ) end [2025-04-12 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:18:22] Production.INFO: ==7721== Releasing lock... [2025-04-12 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:18:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:19:04 [end_date_ymd] => 2025-04-12 15:19:04 [RateCDR] => 1 ) [2025-04-12 15:19: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-04-12 12:19:04' and `end` < '2025-04-12 15:19: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-04-12 15:19:17] Production.INFO: count ==1502 [2025-04-12 15:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:19:04 - End Time 2025-04-12 15:19:04 [2025-04-12 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892432', 'tblTempUsageDetail_20' ) start [2025-04-12 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892432', 'tblTempUsageDetail_20' ) end [2025-04-12 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892432', 'tblTempVendorCDR_20' ) start [2025-04-12 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892432', 'tblTempVendorCDR_20' ) end [2025-04-12 15:19:18] Production.INFO: ProcessCDR(1,14892432,1,1,2) [2025-04-12 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892432', 'tblTempUsageDetail_20' ) start [2025-04-12 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892432', 'tblTempUsageDetail_20' ) end [2025-04-12 15:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:19:21] Production.INFO: ==7800== Releasing lock... [2025-04-12 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:20:05 [end_date_ymd] => 2025-04-12 15:20:05 [RateCDR] => 1 ) [2025-04-12 15:20: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-04-12 12:20:05' and `end` < '2025-04-12 15:20: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-04-12 15:20:18] Production.INFO: count ==1484 [2025-04-12 15:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:20:05 - End Time 2025-04-12 15:20:05 [2025-04-12 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892438', 'tblTempUsageDetail_20' ) start [2025-04-12 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892438', 'tblTempUsageDetail_20' ) end [2025-04-12 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892438', 'tblTempVendorCDR_20' ) start [2025-04-12 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892438', 'tblTempVendorCDR_20' ) end [2025-04-12 15:20:19] Production.INFO: ProcessCDR(1,14892438,1,1,2) [2025-04-12 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892438', 'tblTempUsageDetail_20' ) start [2025-04-12 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892438', 'tblTempUsageDetail_20' ) end [2025-04-12 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:20:24] Production.INFO: ==7918== Releasing lock... [2025-04-12 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:20:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:21:05 [end_date_ymd] => 2025-04-12 15:21:05 [RateCDR] => 1 ) [2025-04-12 15:21: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-04-12 12:21:05' and `end` < '2025-04-12 15:21: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-04-12 15:21:18] Production.INFO: count ==1480 [2025-04-12 15:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:21:05 - End Time 2025-04-12 15:21:05 [2025-04-12 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892443', 'tblTempUsageDetail_20' ) start [2025-04-12 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892443', 'tblTempUsageDetail_20' ) end [2025-04-12 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892443', 'tblTempVendorCDR_20' ) start [2025-04-12 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892443', 'tblTempVendorCDR_20' ) end [2025-04-12 15:21:19] Production.INFO: ProcessCDR(1,14892443,1,1,2) [2025-04-12 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892443', 'tblTempUsageDetail_20' ) start [2025-04-12 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892443', 'tblTempUsageDetail_20' ) end [2025-04-12 15:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:21:24] Production.INFO: ==7995== Releasing lock... [2025-04-12 15:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:21:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:22:05 [end_date_ymd] => 2025-04-12 15:22:05 [RateCDR] => 1 ) [2025-04-12 15:22: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-04-12 12:22:05' and `end` < '2025-04-12 15:22: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-04-12 15:22:18] Production.INFO: count ==1480 [2025-04-12 15:22:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:22:05 - End Time 2025-04-12 15:22:05 [2025-04-12 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892448', 'tblTempUsageDetail_20' ) start [2025-04-12 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892448', 'tblTempUsageDetail_20' ) end [2025-04-12 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892448', 'tblTempVendorCDR_20' ) start [2025-04-12 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892448', 'tblTempVendorCDR_20' ) end [2025-04-12 15:22:19] Production.INFO: ProcessCDR(1,14892448,1,1,2) [2025-04-12 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892448', 'tblTempUsageDetail_20' ) start [2025-04-12 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892448', 'tblTempUsageDetail_20' ) end [2025-04-12 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:22:24] Production.INFO: ==8068== Releasing lock... [2025-04-12 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:22:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:23:05 [end_date_ymd] => 2025-04-12 15:23:05 [RateCDR] => 1 ) [2025-04-12 15:23: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-04-12 12:23:05' and `end` < '2025-04-12 15:23: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-04-12 15:23:18] Production.INFO: count ==1481 [2025-04-12 15:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:23:05 - End Time 2025-04-12 15:23:05 [2025-04-12 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892453', 'tblTempUsageDetail_20' ) start [2025-04-12 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892453', 'tblTempUsageDetail_20' ) end [2025-04-12 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892453', 'tblTempVendorCDR_20' ) start [2025-04-12 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892453', 'tblTempVendorCDR_20' ) end [2025-04-12 15:23:19] Production.INFO: ProcessCDR(1,14892453,1,1,2) [2025-04-12 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892453', 'tblTempUsageDetail_20' ) start [2025-04-12 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892453', 'tblTempUsageDetail_20' ) end [2025-04-12 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:23:24] Production.INFO: ==8143== Releasing lock... [2025-04-12 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:23:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:24:05 [end_date_ymd] => 2025-04-12 15:24:05 [RateCDR] => 1 ) [2025-04-12 15:24: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-04-12 12:24:05' and `end` < '2025-04-12 15:24: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-04-12 15:24:18] Production.INFO: count ==1483 [2025-04-12 15:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:24:05 - End Time 2025-04-12 15:24:05 [2025-04-12 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892458', 'tblTempUsageDetail_20' ) start [2025-04-12 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892458', 'tblTempUsageDetail_20' ) end [2025-04-12 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892458', 'tblTempVendorCDR_20' ) start [2025-04-12 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892458', 'tblTempVendorCDR_20' ) end [2025-04-12 15:24:19] Production.INFO: ProcessCDR(1,14892458,1,1,2) [2025-04-12 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892458', 'tblTempUsageDetail_20' ) start [2025-04-12 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892458', 'tblTempUsageDetail_20' ) end [2025-04-12 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:24:24] Production.INFO: ==8213== Releasing lock... [2025-04-12 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:24:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:25:05 [end_date_ymd] => 2025-04-12 15:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 12:25:05' and `end` < '2025-04-12 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-04-12 15:25:18] Production.INFO: count ==1489 [2025-04-12 15:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:25:05 - End Time 2025-04-12 15:25:05 [2025-04-12 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892463', 'tblTempUsageDetail_20' ) start [2025-04-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892463', 'tblTempUsageDetail_20' ) end [2025-04-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892463', 'tblTempVendorCDR_20' ) start [2025-04-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892463', 'tblTempVendorCDR_20' ) end [2025-04-12 15:25:18] Production.INFO: ProcessCDR(1,14892463,1,1,2) [2025-04-12 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892463', 'tblTempUsageDetail_20' ) start [2025-04-12 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892463', 'tblTempUsageDetail_20' ) end [2025-04-12 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:25:24] Production.INFO: ==8286== Releasing lock... [2025-04-12 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:25:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:26:05 [end_date_ymd] => 2025-04-12 15:26:05 [RateCDR] => 1 ) [2025-04-12 15:26: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-04-12 12:26:05' and `end` < '2025-04-12 15:26: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-04-12 15:26:18] Production.INFO: count ==1506 [2025-04-12 15:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:26:05 - End Time 2025-04-12 15:26:05 [2025-04-12 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892468', 'tblTempUsageDetail_20' ) start [2025-04-12 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892468', 'tblTempUsageDetail_20' ) end [2025-04-12 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892468', 'tblTempVendorCDR_20' ) start [2025-04-12 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892468', 'tblTempVendorCDR_20' ) end [2025-04-12 15:26:18] Production.INFO: ProcessCDR(1,14892468,1,1,2) [2025-04-12 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892468', 'tblTempUsageDetail_20' ) start [2025-04-12 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892468', 'tblTempUsageDetail_20' ) end [2025-04-12 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:26:23] Production.INFO: ==8356== Releasing lock... [2025-04-12 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:26:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:27:05 [end_date_ymd] => 2025-04-12 15:27:05 [RateCDR] => 1 ) [2025-04-12 15:27: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-04-12 12:27:05' and `end` < '2025-04-12 15:27: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-04-12 15:27:18] Production.INFO: count ==1509 [2025-04-12 15:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:27:05 - End Time 2025-04-12 15:27:05 [2025-04-12 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892473', 'tblTempUsageDetail_20' ) start [2025-04-12 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892473', 'tblTempUsageDetail_20' ) end [2025-04-12 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892473', 'tblTempVendorCDR_20' ) start [2025-04-12 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892473', 'tblTempVendorCDR_20' ) end [2025-04-12 15:27:19] Production.INFO: ProcessCDR(1,14892473,1,1,2) [2025-04-12 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892473', 'tblTempUsageDetail_20' ) start [2025-04-12 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892473', 'tblTempUsageDetail_20' ) end [2025-04-12 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:27:23] Production.INFO: ==8429== Releasing lock... [2025-04-12 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:27:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:28:05 [end_date_ymd] => 2025-04-12 15:28:05 [RateCDR] => 1 ) [2025-04-12 15:28: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-04-12 12:28:05' and `end` < '2025-04-12 15:28: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-04-12 15:28:18] Production.INFO: count ==1490 [2025-04-12 15:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:28:05 - End Time 2025-04-12 15:28:05 [2025-04-12 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892478', 'tblTempUsageDetail_20' ) start [2025-04-12 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892478', 'tblTempUsageDetail_20' ) end [2025-04-12 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892478', 'tblTempVendorCDR_20' ) start [2025-04-12 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892478', 'tblTempVendorCDR_20' ) end [2025-04-12 15:28:18] Production.INFO: ProcessCDR(1,14892478,1,1,2) [2025-04-12 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892478', 'tblTempUsageDetail_20' ) start [2025-04-12 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892478', 'tblTempUsageDetail_20' ) end [2025-04-12 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:28:22] Production.INFO: ==8499== Releasing lock... [2025-04-12 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:29:05 [end_date_ymd] => 2025-04-12 15:29:05 [RateCDR] => 1 ) [2025-04-12 15:29: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-04-12 12:29:05' and `end` < '2025-04-12 15:29: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-04-12 15:29:18] Production.INFO: count ==1488 [2025-04-12 15:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:29:05 - End Time 2025-04-12 15:29:05 [2025-04-12 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892483', 'tblTempUsageDetail_20' ) start [2025-04-12 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892483', 'tblTempUsageDetail_20' ) end [2025-04-12 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892483', 'tblTempVendorCDR_20' ) start [2025-04-12 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892483', 'tblTempVendorCDR_20' ) end [2025-04-12 15:29:18] Production.INFO: ProcessCDR(1,14892483,1,1,2) [2025-04-12 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892483', 'tblTempUsageDetail_20' ) start [2025-04-12 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892483', 'tblTempUsageDetail_20' ) end [2025-04-12 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:29:23] Production.INFO: ==8573== Releasing lock... [2025-04-12 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:30:07 [end_date_ymd] => 2025-04-12 15:30:07 [RateCDR] => 1 ) [2025-04-12 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 12:30:07' and `end` < '2025-04-12 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 15:30:20] Production.INFO: count ==1485 [2025-04-12 15:30:20] Production.ERROR: pbx CDR StartTime 2025-04-12 12:30:07 - End Time 2025-04-12 15:30:07 [2025-04-12 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892489', 'tblTempUsageDetail_20' ) start [2025-04-12 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892489', 'tblTempUsageDetail_20' ) end [2025-04-12 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892489', 'tblTempVendorCDR_20' ) start [2025-04-12 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892489', 'tblTempVendorCDR_20' ) end [2025-04-12 15:30:20] Production.INFO: ProcessCDR(1,14892489,1,1,2) [2025-04-12 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892489', 'tblTempUsageDetail_20' ) start [2025-04-12 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892489', 'tblTempUsageDetail_20' ) end [2025-04-12 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:30:25] Production.INFO: ==8648== Releasing lock... [2025-04-12 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:30:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:31:05 [end_date_ymd] => 2025-04-12 15:31:05 [RateCDR] => 1 ) [2025-04-12 15:31: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-04-12 12:31:05' and `end` < '2025-04-12 15:31: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-04-12 15:31:18] Production.INFO: count ==1497 [2025-04-12 15:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:31:05 - End Time 2025-04-12 15:31:05 [2025-04-12 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892494', 'tblTempUsageDetail_20' ) start [2025-04-12 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892494', 'tblTempUsageDetail_20' ) end [2025-04-12 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892494', 'tblTempVendorCDR_20' ) start [2025-04-12 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892494', 'tblTempVendorCDR_20' ) end [2025-04-12 15:31:18] Production.INFO: ProcessCDR(1,14892494,1,1,2) [2025-04-12 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892494', 'tblTempUsageDetail_20' ) start [2025-04-12 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892494', 'tblTempUsageDetail_20' ) end [2025-04-12 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:31:23] Production.INFO: ==8724== Releasing lock... [2025-04-12 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:31:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:32:05 [end_date_ymd] => 2025-04-12 15:32:05 [RateCDR] => 1 ) [2025-04-12 15:32: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-04-12 12:32:05' and `end` < '2025-04-12 15:32: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-04-12 15:32:18] Production.INFO: count ==1499 [2025-04-12 15:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:32:05 - End Time 2025-04-12 15:32:05 [2025-04-12 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892499', 'tblTempUsageDetail_20' ) start [2025-04-12 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892499', 'tblTempUsageDetail_20' ) end [2025-04-12 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892499', 'tblTempVendorCDR_20' ) start [2025-04-12 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892499', 'tblTempVendorCDR_20' ) end [2025-04-12 15:32:19] Production.INFO: ProcessCDR(1,14892499,1,1,2) [2025-04-12 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892499', 'tblTempUsageDetail_20' ) start [2025-04-12 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892499', 'tblTempUsageDetail_20' ) end [2025-04-12 15:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:32:23] Production.INFO: ==8794== Releasing lock... [2025-04-12 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:32:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:33:05 [end_date_ymd] => 2025-04-12 15:33:05 [RateCDR] => 1 ) [2025-04-12 15:33: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-04-12 12:33:05' and `end` < '2025-04-12 15:33: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-04-12 15:33:18] Production.INFO: count ==1499 [2025-04-12 15:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:33:05 - End Time 2025-04-12 15:33:05 [2025-04-12 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892504', 'tblTempUsageDetail_20' ) start [2025-04-12 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892504', 'tblTempUsageDetail_20' ) end [2025-04-12 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892504', 'tblTempVendorCDR_20' ) start [2025-04-12 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892504', 'tblTempVendorCDR_20' ) end [2025-04-12 15:33:18] Production.INFO: ProcessCDR(1,14892504,1,1,2) [2025-04-12 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892504', 'tblTempUsageDetail_20' ) start [2025-04-12 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892504', 'tblTempUsageDetail_20' ) end [2025-04-12 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:33:23] Production.INFO: ==8869== Releasing lock... [2025-04-12 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:33:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:34:05 [end_date_ymd] => 2025-04-12 15:34:05 [RateCDR] => 1 ) [2025-04-12 15:34: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-04-12 12:34:05' and `end` < '2025-04-12 15:34: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-04-12 15:34:18] Production.INFO: count ==1500 [2025-04-12 15:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:34:05 - End Time 2025-04-12 15:34:05 [2025-04-12 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892509', 'tblTempUsageDetail_20' ) start [2025-04-12 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892509', 'tblTempUsageDetail_20' ) end [2025-04-12 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892509', 'tblTempVendorCDR_20' ) start [2025-04-12 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892509', 'tblTempVendorCDR_20' ) end [2025-04-12 15:34:19] Production.INFO: ProcessCDR(1,14892509,1,1,2) [2025-04-12 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892509', 'tblTempUsageDetail_20' ) start [2025-04-12 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892509', 'tblTempUsageDetail_20' ) end [2025-04-12 15:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:34:24] Production.INFO: ==8947== Releasing lock... [2025-04-12 15:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:34:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:35:05 [end_date_ymd] => 2025-04-12 15:35:05 [RateCDR] => 1 ) [2025-04-12 15:35: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-04-12 12:35:05' and `end` < '2025-04-12 15:35: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-04-12 15:35:18] Production.INFO: count ==1503 [2025-04-12 15:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:35:05 - End Time 2025-04-12 15:35:05 [2025-04-12 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892514', 'tblTempUsageDetail_20' ) start [2025-04-12 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892514', 'tblTempUsageDetail_20' ) end [2025-04-12 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892514', 'tblTempVendorCDR_20' ) start [2025-04-12 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892514', 'tblTempVendorCDR_20' ) end [2025-04-12 15:35:18] Production.INFO: ProcessCDR(1,14892514,1,1,2) [2025-04-12 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892514', 'tblTempUsageDetail_20' ) start [2025-04-12 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892514', 'tblTempUsageDetail_20' ) end [2025-04-12 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:35:23] Production.INFO: ==9037== Releasing lock... [2025-04-12 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:35:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:36:05 [end_date_ymd] => 2025-04-12 15:36:05 [RateCDR] => 1 ) [2025-04-12 15:36: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-04-12 12:36:05' and `end` < '2025-04-12 15:36: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-04-12 15:36:18] Production.INFO: count ==1501 [2025-04-12 15:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:36:05 - End Time 2025-04-12 15:36:05 [2025-04-12 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892519', 'tblTempUsageDetail_20' ) start [2025-04-12 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892519', 'tblTempUsageDetail_20' ) end [2025-04-12 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892519', 'tblTempVendorCDR_20' ) start [2025-04-12 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892519', 'tblTempVendorCDR_20' ) end [2025-04-12 15:36:19] Production.INFO: ProcessCDR(1,14892519,1,1,2) [2025-04-12 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892519', 'tblTempUsageDetail_20' ) start [2025-04-12 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892519', 'tblTempUsageDetail_20' ) end [2025-04-12 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:36:22] Production.INFO: ==9149== Releasing lock... [2025-04-12 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:36:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:37:05 [end_date_ymd] => 2025-04-12 15:37:05 [RateCDR] => 1 ) [2025-04-12 15:37: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-04-12 12:37:05' and `end` < '2025-04-12 15:37: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-04-12 15:37:18] Production.INFO: count ==1496 [2025-04-12 15:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:37:05 - End Time 2025-04-12 15:37:05 [2025-04-12 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892524', 'tblTempUsageDetail_20' ) start [2025-04-12 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892524', 'tblTempUsageDetail_20' ) end [2025-04-12 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892524', 'tblTempVendorCDR_20' ) start [2025-04-12 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892524', 'tblTempVendorCDR_20' ) end [2025-04-12 15:37:18] Production.INFO: ProcessCDR(1,14892524,1,1,2) [2025-04-12 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892524', 'tblTempUsageDetail_20' ) start [2025-04-12 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892524', 'tblTempUsageDetail_20' ) end [2025-04-12 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:37:23] Production.INFO: ==9219== Releasing lock... [2025-04-12 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:37:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:38:05 [end_date_ymd] => 2025-04-12 15:38:05 [RateCDR] => 1 ) [2025-04-12 15:38: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-04-12 12:38:05' and `end` < '2025-04-12 15:38: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-04-12 15:38:18] Production.INFO: count ==1497 [2025-04-12 15:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:38:05 - End Time 2025-04-12 15:38:05 [2025-04-12 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892529', 'tblTempUsageDetail_20' ) start [2025-04-12 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892529', 'tblTempUsageDetail_20' ) end [2025-04-12 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892529', 'tblTempVendorCDR_20' ) start [2025-04-12 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892529', 'tblTempVendorCDR_20' ) end [2025-04-12 15:38:18] Production.INFO: ProcessCDR(1,14892529,1,1,2) [2025-04-12 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892529', 'tblTempUsageDetail_20' ) start [2025-04-12 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892529', 'tblTempUsageDetail_20' ) end [2025-04-12 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:38:22] Production.INFO: ==9292== Releasing lock... [2025-04-12 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:39:06 [end_date_ymd] => 2025-04-12 15:39:06 [RateCDR] => 1 ) [2025-04-12 15:39: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-04-12 12:39:06' and `end` < '2025-04-12 15:39: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-04-12 15:39:19] Production.INFO: count ==1498 [2025-04-12 15:39:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:39:06 - End Time 2025-04-12 15:39:06 [2025-04-12 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892534', 'tblTempUsageDetail_20' ) start [2025-04-12 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892534', 'tblTempUsageDetail_20' ) end [2025-04-12 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892534', 'tblTempVendorCDR_20' ) start [2025-04-12 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892534', 'tblTempVendorCDR_20' ) end [2025-04-12 15:39:19] Production.INFO: ProcessCDR(1,14892534,1,1,2) [2025-04-12 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892534', 'tblTempUsageDetail_20' ) start [2025-04-12 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892534', 'tblTempUsageDetail_20' ) end [2025-04-12 15:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:39:24] Production.INFO: ==9372== Releasing lock... [2025-04-12 15:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:39:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:40:06 [end_date_ymd] => 2025-04-12 15:40:06 [RateCDR] => 1 ) [2025-04-12 15:40: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-04-12 12:40:06' and `end` < '2025-04-12 15:40: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-04-12 15:40:19] Production.INFO: count ==1482 [2025-04-12 15:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:40:06 - End Time 2025-04-12 15:40:06 [2025-04-12 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892540', 'tblTempUsageDetail_20' ) start [2025-04-12 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892540', 'tblTempUsageDetail_20' ) end [2025-04-12 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892540', 'tblTempVendorCDR_20' ) start [2025-04-12 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892540', 'tblTempVendorCDR_20' ) end [2025-04-12 15:40:19] Production.INFO: ProcessCDR(1,14892540,1,1,2) [2025-04-12 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892540', 'tblTempUsageDetail_20' ) start [2025-04-12 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892540', 'tblTempUsageDetail_20' ) end [2025-04-12 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:40:23] Production.INFO: ==9443== Releasing lock... [2025-04-12 15:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:41:06 [end_date_ymd] => 2025-04-12 15:41:06 [RateCDR] => 1 ) [2025-04-12 15:41: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-04-12 12:41:06' and `end` < '2025-04-12 15:41: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-04-12 15:41:18] Production.INFO: count ==1456 [2025-04-12 15:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:41:06 - End Time 2025-04-12 15:41:06 [2025-04-12 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892545', 'tblTempUsageDetail_20' ) start [2025-04-12 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892545', 'tblTempUsageDetail_20' ) end [2025-04-12 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892545', 'tblTempVendorCDR_20' ) start [2025-04-12 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892545', 'tblTempVendorCDR_20' ) end [2025-04-12 15:41:19] Production.INFO: ProcessCDR(1,14892545,1,1,2) [2025-04-12 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892545', 'tblTempUsageDetail_20' ) start [2025-04-12 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892545', 'tblTempUsageDetail_20' ) end [2025-04-12 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:41:22] Production.INFO: ==9521== Releasing lock... [2025-04-12 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:42:06 [end_date_ymd] => 2025-04-12 15:42:06 [RateCDR] => 1 ) [2025-04-12 15:42: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-04-12 12:42:06' and `end` < '2025-04-12 15:42: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-04-12 15:42:19] Production.INFO: count ==1462 [2025-04-12 15:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:42:06 - End Time 2025-04-12 15:42:06 [2025-04-12 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892550', 'tblTempUsageDetail_20' ) start [2025-04-12 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892550', 'tblTempUsageDetail_20' ) end [2025-04-12 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892550', 'tblTempVendorCDR_20' ) start [2025-04-12 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892550', 'tblTempVendorCDR_20' ) end [2025-04-12 15:42:19] Production.INFO: ProcessCDR(1,14892550,1,1,2) [2025-04-12 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892550', 'tblTempUsageDetail_20' ) start [2025-04-12 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892550', 'tblTempUsageDetail_20' ) end [2025-04-12 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:42:22] Production.INFO: ==9594== Releasing lock... [2025-04-12 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:42:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:43:05 [end_date_ymd] => 2025-04-12 15:43:05 [RateCDR] => 1 ) [2025-04-12 15:43: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-04-12 12:43:05' and `end` < '2025-04-12 15:43: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-04-12 15:43:18] Production.INFO: count ==1462 [2025-04-12 15:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:43:05 - End Time 2025-04-12 15:43:05 [2025-04-12 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892555', 'tblTempUsageDetail_20' ) start [2025-04-12 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892555', 'tblTempUsageDetail_20' ) end [2025-04-12 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892555', 'tblTempVendorCDR_20' ) start [2025-04-12 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892555', 'tblTempVendorCDR_20' ) end [2025-04-12 15:43:19] Production.INFO: ProcessCDR(1,14892555,1,1,2) [2025-04-12 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892555', 'tblTempUsageDetail_20' ) start [2025-04-12 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892555', 'tblTempUsageDetail_20' ) end [2025-04-12 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:43:22] Production.INFO: ==9664== Releasing lock... [2025-04-12 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:43:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:44:05 [end_date_ymd] => 2025-04-12 15:44:05 [RateCDR] => 1 ) [2025-04-12 15:44: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-04-12 12:44:05' and `end` < '2025-04-12 15:44: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-04-12 15:44:18] Production.INFO: count ==1461 [2025-04-12 15:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:44:05 - End Time 2025-04-12 15:44:05 [2025-04-12 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892560', 'tblTempUsageDetail_20' ) start [2025-04-12 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892560', 'tblTempUsageDetail_20' ) end [2025-04-12 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892560', 'tblTempVendorCDR_20' ) start [2025-04-12 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892560', 'tblTempVendorCDR_20' ) end [2025-04-12 15:44:18] Production.INFO: ProcessCDR(1,14892560,1,1,2) [2025-04-12 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892560', 'tblTempUsageDetail_20' ) start [2025-04-12 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892560', 'tblTempUsageDetail_20' ) end [2025-04-12 15:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:44:21] Production.INFO: ==9734== Releasing lock... [2025-04-12 15:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:44:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:45:05 [end_date_ymd] => 2025-04-12 15:45:05 [RateCDR] => 1 ) [2025-04-12 15:45: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-04-12 12:45:05' and `end` < '2025-04-12 15:45: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-04-12 15:45:18] Production.INFO: count ==1457 [2025-04-12 15:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:45:05 - End Time 2025-04-12 15:45:05 [2025-04-12 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892565', 'tblTempUsageDetail_20' ) start [2025-04-12 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892565', 'tblTempUsageDetail_20' ) end [2025-04-12 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892565', 'tblTempVendorCDR_20' ) start [2025-04-12 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892565', 'tblTempVendorCDR_20' ) end [2025-04-12 15:45:19] Production.INFO: ProcessCDR(1,14892565,1,1,2) [2025-04-12 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892565', 'tblTempUsageDetail_20' ) start [2025-04-12 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892565', 'tblTempUsageDetail_20' ) end [2025-04-12 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:45:22] Production.INFO: ==9808== Releasing lock... [2025-04-12 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:45:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:46:05 [end_date_ymd] => 2025-04-12 15:46:05 [RateCDR] => 1 ) [2025-04-12 15:46: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-04-12 12:46:05' and `end` < '2025-04-12 15:46: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-04-12 15:46:18] Production.INFO: count ==1457 [2025-04-12 15:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:46:05 - End Time 2025-04-12 15:46:05 [2025-04-12 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892570', 'tblTempUsageDetail_20' ) start [2025-04-12 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892570', 'tblTempUsageDetail_20' ) end [2025-04-12 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892570', 'tblTempVendorCDR_20' ) start [2025-04-12 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892570', 'tblTempVendorCDR_20' ) end [2025-04-12 15:46:18] Production.INFO: ProcessCDR(1,14892570,1,1,2) [2025-04-12 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892570', 'tblTempUsageDetail_20' ) start [2025-04-12 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892570', 'tblTempUsageDetail_20' ) end [2025-04-12 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:46:22] Production.INFO: ==9883== Releasing lock... [2025-04-12 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:46:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:47:05 [end_date_ymd] => 2025-04-12 15:47:05 [RateCDR] => 1 ) [2025-04-12 15:47: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-04-12 12:47:05' and `end` < '2025-04-12 15:47: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-04-12 15:47:18] Production.INFO: count ==1452 [2025-04-12 15:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:47:05 - End Time 2025-04-12 15:47:05 [2025-04-12 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892575', 'tblTempUsageDetail_20' ) start [2025-04-12 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892575', 'tblTempUsageDetail_20' ) end [2025-04-12 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892575', 'tblTempVendorCDR_20' ) start [2025-04-12 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892575', 'tblTempVendorCDR_20' ) end [2025-04-12 15:47:18] Production.INFO: ProcessCDR(1,14892575,1,1,2) [2025-04-12 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892575', 'tblTempUsageDetail_20' ) start [2025-04-12 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892575', 'tblTempUsageDetail_20' ) end [2025-04-12 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:47:24] Production.INFO: ==9955== Releasing lock... [2025-04-12 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:47:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:48:05 [end_date_ymd] => 2025-04-12 15:48:05 [RateCDR] => 1 ) [2025-04-12 15:48: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-04-12 12:48:05' and `end` < '2025-04-12 15:48: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-04-12 15:48:18] Production.INFO: count ==1444 [2025-04-12 15:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:48:05 - End Time 2025-04-12 15:48:05 [2025-04-12 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892580', 'tblTempUsageDetail_20' ) start [2025-04-12 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892580', 'tblTempUsageDetail_20' ) end [2025-04-12 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892580', 'tblTempVendorCDR_20' ) start [2025-04-12 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892580', 'tblTempVendorCDR_20' ) end [2025-04-12 15:48:18] Production.INFO: ProcessCDR(1,14892580,1,1,2) [2025-04-12 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892580', 'tblTempUsageDetail_20' ) start [2025-04-12 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892580', 'tblTempUsageDetail_20' ) end [2025-04-12 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:48:23] Production.INFO: ==10044== Releasing lock... [2025-04-12 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:49:05 [end_date_ymd] => 2025-04-12 15:49:05 [RateCDR] => 1 ) [2025-04-12 15:49: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-04-12 12:49:05' and `end` < '2025-04-12 15:49: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-04-12 15:49:18] Production.INFO: count ==1442 [2025-04-12 15:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:49:05 - End Time 2025-04-12 15:49:05 [2025-04-12 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892585', 'tblTempUsageDetail_20' ) start [2025-04-12 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892585', 'tblTempUsageDetail_20' ) end [2025-04-12 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892585', 'tblTempVendorCDR_20' ) start [2025-04-12 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892585', 'tblTempVendorCDR_20' ) end [2025-04-12 15:49:19] Production.INFO: ProcessCDR(1,14892585,1,1,2) [2025-04-12 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892585', 'tblTempUsageDetail_20' ) start [2025-04-12 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892585', 'tblTempUsageDetail_20' ) end [2025-04-12 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:49:22] Production.INFO: ==10120== Releasing lock... [2025-04-12 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:50:07 [end_date_ymd] => 2025-04-12 15:50:07 [RateCDR] => 1 ) [2025-04-12 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 12:50:07' and `end` < '2025-04-12 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 15:50:20] Production.INFO: count ==1440 [2025-04-12 15:50:20] Production.ERROR: pbx CDR StartTime 2025-04-12 12:50:07 - End Time 2025-04-12 15:50:07 [2025-04-12 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892591', 'tblTempUsageDetail_20' ) start [2025-04-12 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892591', 'tblTempUsageDetail_20' ) end [2025-04-12 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892591', 'tblTempVendorCDR_20' ) start [2025-04-12 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892591', 'tblTempVendorCDR_20' ) end [2025-04-12 15:50:20] Production.INFO: ProcessCDR(1,14892591,1,1,2) [2025-04-12 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892591', 'tblTempUsageDetail_20' ) start [2025-04-12 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892591', 'tblTempUsageDetail_20' ) end [2025-04-12 15:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:50:24] Production.INFO: ==10194== Releasing lock... [2025-04-12 15:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:50:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:51:05 [end_date_ymd] => 2025-04-12 15:51:05 [RateCDR] => 1 ) [2025-04-12 15:51: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-04-12 12:51:05' and `end` < '2025-04-12 15:51: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-04-12 15:51:18] Production.INFO: count ==1453 [2025-04-12 15:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:51:05 - End Time 2025-04-12 15:51:05 [2025-04-12 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892596', 'tblTempUsageDetail_20' ) start [2025-04-12 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892596', 'tblTempUsageDetail_20' ) end [2025-04-12 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892596', 'tblTempVendorCDR_20' ) start [2025-04-12 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892596', 'tblTempVendorCDR_20' ) end [2025-04-12 15:51:18] Production.INFO: ProcessCDR(1,14892596,1,1,2) [2025-04-12 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892596', 'tblTempUsageDetail_20' ) start [2025-04-12 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892596', 'tblTempUsageDetail_20' ) end [2025-04-12 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:51:22] Production.INFO: ==10311== Releasing lock... [2025-04-12 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:52:06 [end_date_ymd] => 2025-04-12 15:52:06 [RateCDR] => 1 ) [2025-04-12 15:52: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-04-12 12:52:06' and `end` < '2025-04-12 15:52: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-04-12 15:52:19] Production.INFO: count ==1449 [2025-04-12 15:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:52:06 - End Time 2025-04-12 15:52:06 [2025-04-12 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892601', 'tblTempUsageDetail_20' ) start [2025-04-12 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892601', 'tblTempUsageDetail_20' ) end [2025-04-12 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892601', 'tblTempVendorCDR_20' ) start [2025-04-12 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892601', 'tblTempVendorCDR_20' ) end [2025-04-12 15:52:19] Production.INFO: ProcessCDR(1,14892601,1,1,2) [2025-04-12 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892601', 'tblTempUsageDetail_20' ) start [2025-04-12 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892601', 'tblTempUsageDetail_20' ) end [2025-04-12 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:52:22] Production.INFO: ==10384== Releasing lock... [2025-04-12 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:53:05 [end_date_ymd] => 2025-04-12 15:53:05 [RateCDR] => 1 ) [2025-04-12 15:53: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-04-12 12:53:05' and `end` < '2025-04-12 15:53: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-04-12 15:53:18] Production.INFO: count ==1449 [2025-04-12 15:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:53:05 - End Time 2025-04-12 15:53:05 [2025-04-12 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892606', 'tblTempUsageDetail_20' ) start [2025-04-12 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892606', 'tblTempUsageDetail_20' ) end [2025-04-12 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892606', 'tblTempVendorCDR_20' ) start [2025-04-12 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892606', 'tblTempVendorCDR_20' ) end [2025-04-12 15:53:18] Production.INFO: ProcessCDR(1,14892606,1,1,2) [2025-04-12 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892606', 'tblTempUsageDetail_20' ) start [2025-04-12 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892606', 'tblTempUsageDetail_20' ) end [2025-04-12 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:53:22] Production.INFO: ==10454== Releasing lock... [2025-04-12 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:54:05 [end_date_ymd] => 2025-04-12 15:54:05 [RateCDR] => 1 ) [2025-04-12 15:54: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-04-12 12:54:05' and `end` < '2025-04-12 15:54: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-04-12 15:54:18] Production.INFO: count ==1448 [2025-04-12 15:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:54:05 - End Time 2025-04-12 15:54:05 [2025-04-12 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892611', 'tblTempUsageDetail_20' ) start [2025-04-12 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892611', 'tblTempUsageDetail_20' ) end [2025-04-12 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892611', 'tblTempVendorCDR_20' ) start [2025-04-12 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892611', 'tblTempVendorCDR_20' ) end [2025-04-12 15:54:19] Production.INFO: ProcessCDR(1,14892611,1,1,2) [2025-04-12 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892611', 'tblTempUsageDetail_20' ) start [2025-04-12 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892611', 'tblTempUsageDetail_20' ) end [2025-04-12 15:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:54:24] Production.INFO: ==10533== Releasing lock... [2025-04-12 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:54:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:55:05 [end_date_ymd] => 2025-04-12 15:55:05 [RateCDR] => 1 ) [2025-04-12 15:55: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-04-12 12:55:05' and `end` < '2025-04-12 15:55: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-04-12 15:55:18] Production.INFO: count ==1445 [2025-04-12 15:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:55:05 - End Time 2025-04-12 15:55:05 [2025-04-12 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892616', 'tblTempUsageDetail_20' ) start [2025-04-12 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892616', 'tblTempUsageDetail_20' ) end [2025-04-12 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892616', 'tblTempVendorCDR_20' ) start [2025-04-12 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892616', 'tblTempVendorCDR_20' ) end [2025-04-12 15:55:18] Production.INFO: ProcessCDR(1,14892616,1,1,2) [2025-04-12 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892616', 'tblTempUsageDetail_20' ) start [2025-04-12 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892616', 'tblTempUsageDetail_20' ) end [2025-04-12 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:55:22] Production.INFO: ==10612== Releasing lock... [2025-04-12 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:55:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:56:05 [end_date_ymd] => 2025-04-12 15:56:05 [RateCDR] => 1 ) [2025-04-12 15:56: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-04-12 12:56:05' and `end` < '2025-04-12 15:56: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-04-12 15:56:18] Production.INFO: count ==1445 [2025-04-12 15:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:56:05 - End Time 2025-04-12 15:56:05 [2025-04-12 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892621', 'tblTempUsageDetail_20' ) start [2025-04-12 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892621', 'tblTempUsageDetail_20' ) end [2025-04-12 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892621', 'tblTempVendorCDR_20' ) start [2025-04-12 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892621', 'tblTempVendorCDR_20' ) end [2025-04-12 15:56:18] Production.INFO: ProcessCDR(1,14892621,1,1,2) [2025-04-12 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892621', 'tblTempUsageDetail_20' ) start [2025-04-12 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892621', 'tblTempUsageDetail_20' ) end [2025-04-12 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:56:22] Production.INFO: ==10691== Releasing lock... [2025-04-12 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:57:05 [end_date_ymd] => 2025-04-12 15:57:05 [RateCDR] => 1 ) [2025-04-12 15:57: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-04-12 12:57:05' and `end` < '2025-04-12 15:57: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-04-12 15:57:18] Production.INFO: count ==1431 [2025-04-12 15:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:57:05 - End Time 2025-04-12 15:57:05 [2025-04-12 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892626', 'tblTempUsageDetail_20' ) start [2025-04-12 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892626', 'tblTempUsageDetail_20' ) end [2025-04-12 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892626', 'tblTempVendorCDR_20' ) start [2025-04-12 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892626', 'tblTempVendorCDR_20' ) end [2025-04-12 15:57:19] Production.INFO: ProcessCDR(1,14892626,1,1,2) [2025-04-12 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892626', 'tblTempUsageDetail_20' ) start [2025-04-12 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892626', 'tblTempUsageDetail_20' ) end [2025-04-12 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:57:22] Production.INFO: ==10772== Releasing lock... [2025-04-12 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:57:22] Production.INFO: 39 MB #Memory Used# [2025-04-12 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:58:06 [end_date_ymd] => 2025-04-12 15:58:06 [RateCDR] => 1 ) [2025-04-12 15:58: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-04-12 12:58:06' and `end` < '2025-04-12 15:58: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-04-12 15:58:19] Production.INFO: count ==1421 [2025-04-12 15:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 12:58:06 - End Time 2025-04-12 15:58:06 [2025-04-12 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892631', 'tblTempUsageDetail_20' ) start [2025-04-12 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892631', 'tblTempUsageDetail_20' ) end [2025-04-12 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892631', 'tblTempVendorCDR_20' ) start [2025-04-12 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892631', 'tblTempVendorCDR_20' ) end [2025-04-12 15:58:19] Production.INFO: ProcessCDR(1,14892631,1,1,2) [2025-04-12 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892631', 'tblTempUsageDetail_20' ) start [2025-04-12 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892631', 'tblTempUsageDetail_20' ) end [2025-04-12 15:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:58:24] Production.INFO: ==10850== Releasing lock... [2025-04-12 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:58:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 12:59:05 [end_date_ymd] => 2025-04-12 15:59:05 [RateCDR] => 1 ) [2025-04-12 15:59: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-04-12 12:59:05' and `end` < '2025-04-12 15:59: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-04-12 15:59:18] Production.INFO: count ==1421 [2025-04-12 15:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 12:59:05 - End Time 2025-04-12 15:59:05 [2025-04-12 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892636', 'tblTempUsageDetail_20' ) start [2025-04-12 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892636', 'tblTempUsageDetail_20' ) end [2025-04-12 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892636', 'tblTempVendorCDR_20' ) start [2025-04-12 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892636', 'tblTempVendorCDR_20' ) end [2025-04-12 15:59:18] Production.INFO: ProcessCDR(1,14892636,1,1,2) [2025-04-12 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892636', 'tblTempUsageDetail_20' ) start [2025-04-12 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892636', 'tblTempUsageDetail_20' ) end [2025-04-12 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 15:59:23] Production.INFO: ==10930== Releasing lock... [2025-04-12 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 15:59:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:00:06 [end_date_ymd] => 2025-04-12 16:00:06 [RateCDR] => 1 ) [2025-04-12 16:00: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-04-12 13:00:06' and `end` < '2025-04-12 16:00: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-04-12 16:00:19] Production.INFO: count ==1422 [2025-04-12 16:00:20] Production.ERROR: pbx CDR StartTime 2025-04-12 13:00:06 - End Time 2025-04-12 16:00:06 [2025-04-12 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892642', 'tblTempUsageDetail_20' ) start [2025-04-12 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892642', 'tblTempUsageDetail_20' ) end [2025-04-12 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892642', 'tblTempVendorCDR_20' ) start [2025-04-12 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892642', 'tblTempVendorCDR_20' ) end [2025-04-12 16:00:20] Production.INFO: ProcessCDR(1,14892642,1,1,2) [2025-04-12 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892642', 'tblTempUsageDetail_20' ) start [2025-04-12 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892642', 'tblTempUsageDetail_20' ) end [2025-04-12 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:00:25] Production.INFO: ==11017== Releasing lock... [2025-04-12 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:00:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:01:05 [end_date_ymd] => 2025-04-12 16:01:05 [RateCDR] => 1 ) [2025-04-12 16:01: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-04-12 13:01:05' and `end` < '2025-04-12 16:01: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-04-12 16:01:18] Production.INFO: count ==1418 [2025-04-12 16:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:01:05 - End Time 2025-04-12 16:01:05 [2025-04-12 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892647', 'tblTempUsageDetail_20' ) start [2025-04-12 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892647', 'tblTempUsageDetail_20' ) end [2025-04-12 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892647', 'tblTempVendorCDR_20' ) start [2025-04-12 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892647', 'tblTempVendorCDR_20' ) end [2025-04-12 16:01:18] Production.INFO: ProcessCDR(1,14892647,1,1,2) [2025-04-12 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892647', 'tblTempUsageDetail_20' ) start [2025-04-12 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892647', 'tblTempUsageDetail_20' ) end [2025-04-12 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:01:24] Production.INFO: ==11110== Releasing lock... [2025-04-12 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:01:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:02:06 [end_date_ymd] => 2025-04-12 16:02:06 [RateCDR] => 1 ) [2025-04-12 16:02: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-04-12 13:02:06' and `end` < '2025-04-12 16:02: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-04-12 16:02:19] Production.INFO: count ==1414 [2025-04-12 16:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:02:06 - End Time 2025-04-12 16:02:06 [2025-04-12 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892652', 'tblTempUsageDetail_20' ) start [2025-04-12 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892652', 'tblTempUsageDetail_20' ) end [2025-04-12 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892652', 'tblTempVendorCDR_20' ) start [2025-04-12 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892652', 'tblTempVendorCDR_20' ) end [2025-04-12 16:02:19] Production.INFO: ProcessCDR(1,14892652,1,1,2) [2025-04-12 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892652', 'tblTempUsageDetail_20' ) start [2025-04-12 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892652', 'tblTempUsageDetail_20' ) end [2025-04-12 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:02:25] Production.INFO: ==11189== Releasing lock... [2025-04-12 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:02:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:03:05 [end_date_ymd] => 2025-04-12 16:03:05 [RateCDR] => 1 ) [2025-04-12 16:03: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-04-12 13:03:05' and `end` < '2025-04-12 16:03: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-04-12 16:03:18] Production.INFO: count ==1402 [2025-04-12 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:03:05 - End Time 2025-04-12 16:03:05 [2025-04-12 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892657', 'tblTempUsageDetail_20' ) start [2025-04-12 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892657', 'tblTempUsageDetail_20' ) end [2025-04-12 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892657', 'tblTempVendorCDR_20' ) start [2025-04-12 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892657', 'tblTempVendorCDR_20' ) end [2025-04-12 16:03:18] Production.INFO: ProcessCDR(1,14892657,1,1,2) [2025-04-12 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892657', 'tblTempUsageDetail_20' ) start [2025-04-12 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892657', 'tblTempUsageDetail_20' ) end [2025-04-12 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:03:24] Production.INFO: ==11260== Releasing lock... [2025-04-12 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:03:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:04:06 [end_date_ymd] => 2025-04-12 16:04:06 [RateCDR] => 1 ) [2025-04-12 16:04: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-04-12 13:04:06' and `end` < '2025-04-12 16:04: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-04-12 16:04:19] Production.INFO: count ==1395 [2025-04-12 16:04:20] Production.ERROR: pbx CDR StartTime 2025-04-12 13:04:06 - End Time 2025-04-12 16:04:06 [2025-04-12 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892662', 'tblTempUsageDetail_20' ) start [2025-04-12 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892662', 'tblTempUsageDetail_20' ) end [2025-04-12 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892662', 'tblTempVendorCDR_20' ) start [2025-04-12 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892662', 'tblTempVendorCDR_20' ) end [2025-04-12 16:04:20] Production.INFO: ProcessCDR(1,14892662,1,1,2) [2025-04-12 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892662', 'tblTempUsageDetail_20' ) start [2025-04-12 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892662', 'tblTempUsageDetail_20' ) end [2025-04-12 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:04:26] Production.INFO: ==11334== Releasing lock... [2025-04-12 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:04:26] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:05:05 [end_date_ymd] => 2025-04-12 16:05:05 [RateCDR] => 1 ) [2025-04-12 16:05: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-04-12 13:05:05' and `end` < '2025-04-12 16:05: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-04-12 16:05:18] Production.INFO: count ==1388 [2025-04-12 16:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:05:05 - End Time 2025-04-12 16:05:05 [2025-04-12 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892667', 'tblTempUsageDetail_20' ) start [2025-04-12 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892667', 'tblTempUsageDetail_20' ) end [2025-04-12 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892667', 'tblTempVendorCDR_20' ) start [2025-04-12 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892667', 'tblTempVendorCDR_20' ) end [2025-04-12 16:05:19] Production.INFO: ProcessCDR(1,14892667,1,1,2) [2025-04-12 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892667', 'tblTempUsageDetail_20' ) start [2025-04-12 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892667', 'tblTempUsageDetail_20' ) end [2025-04-12 16:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:05:24] Production.INFO: ==11407== Releasing lock... [2025-04-12 16:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:05:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:06:06 [end_date_ymd] => 2025-04-12 16:06:06 [RateCDR] => 1 ) [2025-04-12 16:06: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-04-12 13:06:06' and `end` < '2025-04-12 16:06: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-04-12 16:06:19] Production.INFO: count ==1387 [2025-04-12 16:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:06:06 - End Time 2025-04-12 16:06:06 [2025-04-12 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892672', 'tblTempUsageDetail_20' ) start [2025-04-12 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892672', 'tblTempUsageDetail_20' ) end [2025-04-12 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892672', 'tblTempVendorCDR_20' ) start [2025-04-12 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892672', 'tblTempVendorCDR_20' ) end [2025-04-12 16:06:19] Production.INFO: ProcessCDR(1,14892672,1,1,2) [2025-04-12 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892672', 'tblTempUsageDetail_20' ) start [2025-04-12 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892672', 'tblTempUsageDetail_20' ) end [2025-04-12 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:06:24] Production.INFO: ==11485== Releasing lock... [2025-04-12 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:06:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:07:05 [end_date_ymd] => 2025-04-12 16:07:05 [RateCDR] => 1 ) [2025-04-12 16:07: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-04-12 13:07:05' and `end` < '2025-04-12 16:07: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-04-12 16:07:18] Production.INFO: count ==1386 [2025-04-12 16:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:07:05 - End Time 2025-04-12 16:07:05 [2025-04-12 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892677', 'tblTempUsageDetail_20' ) start [2025-04-12 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892677', 'tblTempUsageDetail_20' ) end [2025-04-12 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892677', 'tblTempVendorCDR_20' ) start [2025-04-12 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892677', 'tblTempVendorCDR_20' ) end [2025-04-12 16:07:19] Production.INFO: ProcessCDR(1,14892677,1,1,2) [2025-04-12 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892677', 'tblTempUsageDetail_20' ) start [2025-04-12 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892677', 'tblTempUsageDetail_20' ) end [2025-04-12 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:07:24] Production.INFO: ==11601== Releasing lock... [2025-04-12 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:07:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:08:06 [end_date_ymd] => 2025-04-12 16:08:06 [RateCDR] => 1 ) [2025-04-12 16:08: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-04-12 13:08:06' and `end` < '2025-04-12 16:08: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-04-12 16:08:19] Production.INFO: count ==1394 [2025-04-12 16:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:08:06 - End Time 2025-04-12 16:08:06 [2025-04-12 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892682', 'tblTempUsageDetail_20' ) start [2025-04-12 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892682', 'tblTempUsageDetail_20' ) end [2025-04-12 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892682', 'tblTempVendorCDR_20' ) start [2025-04-12 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892682', 'tblTempVendorCDR_20' ) end [2025-04-12 16:08:19] Production.INFO: ProcessCDR(1,14892682,1,1,2) [2025-04-12 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892682', 'tblTempUsageDetail_20' ) start [2025-04-12 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892682', 'tblTempUsageDetail_20' ) end [2025-04-12 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:08:25] Production.INFO: ==11682== Releasing lock... [2025-04-12 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:08:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:09:05 [end_date_ymd] => 2025-04-12 16:09:05 [RateCDR] => 1 ) [2025-04-12 16:09: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-04-12 13:09:05' and `end` < '2025-04-12 16:09: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-04-12 16:09:18] Production.INFO: count ==1392 [2025-04-12 16:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:09:05 - End Time 2025-04-12 16:09:05 [2025-04-12 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892687', 'tblTempUsageDetail_20' ) start [2025-04-12 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892687', 'tblTempUsageDetail_20' ) end [2025-04-12 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892687', 'tblTempVendorCDR_20' ) start [2025-04-12 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892687', 'tblTempVendorCDR_20' ) end [2025-04-12 16:09:19] Production.INFO: ProcessCDR(1,14892687,1,1,2) [2025-04-12 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892687', 'tblTempUsageDetail_20' ) start [2025-04-12 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892687', 'tblTempUsageDetail_20' ) end [2025-04-12 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:09:22] Production.INFO: ==11758== Releasing lock... [2025-04-12 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:09:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:10:07 [end_date_ymd] => 2025-04-12 16:10:07 [RateCDR] => 1 ) [2025-04-12 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 13:10:07' and `end` < '2025-04-12 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 16:10:20] Production.INFO: count ==1389 [2025-04-12 16:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 13:10:07 - End Time 2025-04-12 16:10:07 [2025-04-12 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892693', 'tblTempUsageDetail_20' ) start [2025-04-12 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892693', 'tblTempUsageDetail_20' ) end [2025-04-12 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892693', 'tblTempVendorCDR_20' ) start [2025-04-12 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892693', 'tblTempVendorCDR_20' ) end [2025-04-12 16:10:20] Production.INFO: ProcessCDR(1,14892693,1,1,2) [2025-04-12 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892693', 'tblTempUsageDetail_20' ) start [2025-04-12 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892693', 'tblTempUsageDetail_20' ) end [2025-04-12 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:10:24] Production.INFO: ==11833== Releasing lock... [2025-04-12 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:10:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:11:05 [end_date_ymd] => 2025-04-12 16:11:05 [RateCDR] => 1 ) [2025-04-12 16:11: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-04-12 13:11:05' and `end` < '2025-04-12 16:11: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-04-12 16:11:18] Production.INFO: count ==1373 [2025-04-12 16:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:11:05 - End Time 2025-04-12 16:11:05 [2025-04-12 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892698', 'tblTempUsageDetail_20' ) start [2025-04-12 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892698', 'tblTempUsageDetail_20' ) end [2025-04-12 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892698', 'tblTempVendorCDR_20' ) start [2025-04-12 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892698', 'tblTempVendorCDR_20' ) end [2025-04-12 16:11:18] Production.INFO: ProcessCDR(1,14892698,1,1,2) [2025-04-12 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892698', 'tblTempUsageDetail_20' ) start [2025-04-12 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892698', 'tblTempUsageDetail_20' ) end [2025-04-12 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:11:24] Production.INFO: ==11906== Releasing lock... [2025-04-12 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:11:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:12:06 [end_date_ymd] => 2025-04-12 16:12:06 [RateCDR] => 1 ) [2025-04-12 16:12: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-04-12 13:12:06' and `end` < '2025-04-12 16:12: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-04-12 16:12:19] Production.INFO: count ==1363 [2025-04-12 16:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:12:06 - End Time 2025-04-12 16:12:06 [2025-04-12 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892703', 'tblTempUsageDetail_20' ) start [2025-04-12 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892703', 'tblTempUsageDetail_20' ) end [2025-04-12 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892703', 'tblTempVendorCDR_20' ) start [2025-04-12 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892703', 'tblTempVendorCDR_20' ) end [2025-04-12 16:12:19] Production.INFO: ProcessCDR(1,14892703,1,1,2) [2025-04-12 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892703', 'tblTempUsageDetail_20' ) start [2025-04-12 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892703', 'tblTempUsageDetail_20' ) end [2025-04-12 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:12:24] Production.INFO: ==11981== Releasing lock... [2025-04-12 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:12:24] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:13:05 [end_date_ymd] => 2025-04-12 16:13:05 [RateCDR] => 1 ) [2025-04-12 16:13: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-04-12 13:13:05' and `end` < '2025-04-12 16:13: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-04-12 16:13:18] Production.INFO: count ==1359 [2025-04-12 16:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:13:05 - End Time 2025-04-12 16:13:05 [2025-04-12 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892708', 'tblTempUsageDetail_20' ) start [2025-04-12 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892708', 'tblTempUsageDetail_20' ) end [2025-04-12 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892708', 'tblTempVendorCDR_20' ) start [2025-04-12 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892708', 'tblTempVendorCDR_20' ) end [2025-04-12 16:13:18] Production.INFO: ProcessCDR(1,14892708,1,1,2) [2025-04-12 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892708', 'tblTempUsageDetail_20' ) start [2025-04-12 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892708', 'tblTempUsageDetail_20' ) end [2025-04-12 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:13:23] Production.INFO: ==12055== Releasing lock... [2025-04-12 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:14:05 [end_date_ymd] => 2025-04-12 16:14:05 [RateCDR] => 1 ) [2025-04-12 16:14: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-04-12 13:14:05' and `end` < '2025-04-12 16:14: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-04-12 16:14:18] Production.INFO: count ==1359 [2025-04-12 16:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:14:05 - End Time 2025-04-12 16:14:05 [2025-04-12 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892713', 'tblTempUsageDetail_20' ) start [2025-04-12 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892713', 'tblTempUsageDetail_20' ) end [2025-04-12 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892713', 'tblTempVendorCDR_20' ) start [2025-04-12 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892713', 'tblTempVendorCDR_20' ) end [2025-04-12 16:14:18] Production.INFO: ProcessCDR(1,14892713,1,1,2) [2025-04-12 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892713', 'tblTempUsageDetail_20' ) start [2025-04-12 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892713', 'tblTempUsageDetail_20' ) end [2025-04-12 16:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:14:22] Production.INFO: ==12138== Releasing lock... [2025-04-12 16:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:14:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:15:05 [end_date_ymd] => 2025-04-12 16:15:05 [RateCDR] => 1 ) [2025-04-12 16:15: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-04-12 13:15:05' and `end` < '2025-04-12 16:15: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-04-12 16:15:18] Production.INFO: count ==1357 [2025-04-12 16:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:15:05 - End Time 2025-04-12 16:15:05 [2025-04-12 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892718', 'tblTempUsageDetail_20' ) start [2025-04-12 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892718', 'tblTempUsageDetail_20' ) end [2025-04-12 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892718', 'tblTempVendorCDR_20' ) start [2025-04-12 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892718', 'tblTempVendorCDR_20' ) end [2025-04-12 16:15:18] Production.INFO: ProcessCDR(1,14892718,1,1,2) [2025-04-12 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892718', 'tblTempUsageDetail_20' ) start [2025-04-12 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892718', 'tblTempUsageDetail_20' ) end [2025-04-12 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:15:23] Production.INFO: ==12230== Releasing lock... [2025-04-12 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:15:23] Production.INFO: 39 MB #Memory Used# [2025-04-12 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:16:06 [end_date_ymd] => 2025-04-12 16:16:06 [RateCDR] => 1 ) [2025-04-12 16:16: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-04-12 13:16:06' and `end` < '2025-04-12 16:16: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-04-12 16:16:19] Production.INFO: count ==1356 [2025-04-12 16:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:16:06 - End Time 2025-04-12 16:16:06 [2025-04-12 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892723', 'tblTempUsageDetail_20' ) start [2025-04-12 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892723', 'tblTempUsageDetail_20' ) end [2025-04-12 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892723', 'tblTempVendorCDR_20' ) start [2025-04-12 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892723', 'tblTempVendorCDR_20' ) end [2025-04-12 16:16:19] Production.INFO: ProcessCDR(1,14892723,1,1,2) [2025-04-12 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892723', 'tblTempUsageDetail_20' ) start [2025-04-12 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892723', 'tblTempUsageDetail_20' ) end [2025-04-12 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:16:23] Production.INFO: ==12307== Releasing lock... [2025-04-12 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:16:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:17:05 [end_date_ymd] => 2025-04-12 16:17:05 [RateCDR] => 1 ) [2025-04-12 16:17: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-04-12 13:17:05' and `end` < '2025-04-12 16:17: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-04-12 16:17:18] Production.INFO: count ==1351 [2025-04-12 16:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:17:05 - End Time 2025-04-12 16:17:05 [2025-04-12 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892728', 'tblTempUsageDetail_20' ) start [2025-04-12 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892728', 'tblTempUsageDetail_20' ) end [2025-04-12 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892728', 'tblTempVendorCDR_20' ) start [2025-04-12 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892728', 'tblTempVendorCDR_20' ) end [2025-04-12 16:17:18] Production.INFO: ProcessCDR(1,14892728,1,1,2) [2025-04-12 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892728', 'tblTempUsageDetail_20' ) start [2025-04-12 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892728', 'tblTempUsageDetail_20' ) end [2025-04-12 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:17:22] Production.INFO: ==12378== Releasing lock... [2025-04-12 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:18:05 [end_date_ymd] => 2025-04-12 16:18:05 [RateCDR] => 1 ) [2025-04-12 16:18: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-04-12 13:18:05' and `end` < '2025-04-12 16:18: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-04-12 16:18:18] Production.INFO: count ==1346 [2025-04-12 16:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:18:05 - End Time 2025-04-12 16:18:05 [2025-04-12 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892733', 'tblTempUsageDetail_20' ) start [2025-04-12 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892733', 'tblTempUsageDetail_20' ) end [2025-04-12 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892733', 'tblTempVendorCDR_20' ) start [2025-04-12 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892733', 'tblTempVendorCDR_20' ) end [2025-04-12 16:18:19] Production.INFO: ProcessCDR(1,14892733,1,1,2) [2025-04-12 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892733', 'tblTempUsageDetail_20' ) start [2025-04-12 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892733', 'tblTempUsageDetail_20' ) end [2025-04-12 16:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:18:22] Production.INFO: ==12454== Releasing lock... [2025-04-12 16:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:19:05 [end_date_ymd] => 2025-04-12 16:19:05 [RateCDR] => 1 ) [2025-04-12 16:19: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-04-12 13:19:05' and `end` < '2025-04-12 16:19: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-04-12 16:19:18] Production.INFO: count ==1345 [2025-04-12 16:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:19:05 - End Time 2025-04-12 16:19:05 [2025-04-12 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892738', 'tblTempUsageDetail_20' ) start [2025-04-12 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892738', 'tblTempUsageDetail_20' ) end [2025-04-12 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892738', 'tblTempVendorCDR_20' ) start [2025-04-12 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892738', 'tblTempVendorCDR_20' ) end [2025-04-12 16:19:19] Production.INFO: ProcessCDR(1,14892738,1,1,2) [2025-04-12 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892738', 'tblTempUsageDetail_20' ) start [2025-04-12 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892738', 'tblTempUsageDetail_20' ) end [2025-04-12 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:19:23] Production.INFO: ==12526== Releasing lock... [2025-04-12 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:19:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:20:06 [end_date_ymd] => 2025-04-12 16:20:06 [RateCDR] => 1 ) [2025-04-12 16:20: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-04-12 13:20:06' and `end` < '2025-04-12 16:20: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-04-12 16:20:19] Production.INFO: count ==1344 [2025-04-12 16:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:20:06 - End Time 2025-04-12 16:20:06 [2025-04-12 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892744', 'tblTempUsageDetail_20' ) start [2025-04-12 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892744', 'tblTempUsageDetail_20' ) end [2025-04-12 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892744', 'tblTempVendorCDR_20' ) start [2025-04-12 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892744', 'tblTempVendorCDR_20' ) end [2025-04-12 16:20:19] Production.INFO: ProcessCDR(1,14892744,1,1,2) [2025-04-12 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892744', 'tblTempUsageDetail_20' ) start [2025-04-12 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892744', 'tblTempUsageDetail_20' ) end [2025-04-12 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:20:24] Production.INFO: ==12611== Releasing lock... [2025-04-12 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:21:05 [end_date_ymd] => 2025-04-12 16:21:05 [RateCDR] => 1 ) [2025-04-12 16:21: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-04-12 13:21:05' and `end` < '2025-04-12 16:21: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-04-12 16:21:18] Production.INFO: count ==1330 [2025-04-12 16:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:21:05 - End Time 2025-04-12 16:21:05 [2025-04-12 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892749', 'tblTempUsageDetail_20' ) start [2025-04-12 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892749', 'tblTempUsageDetail_20' ) end [2025-04-12 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892749', 'tblTempVendorCDR_20' ) start [2025-04-12 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892749', 'tblTempVendorCDR_20' ) end [2025-04-12 16:21:18] Production.INFO: ProcessCDR(1,14892749,1,1,2) [2025-04-12 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892749', 'tblTempUsageDetail_20' ) start [2025-04-12 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892749', 'tblTempUsageDetail_20' ) end [2025-04-12 16:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:21:22] Production.INFO: ==12694== Releasing lock... [2025-04-12 16:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:22:05 [end_date_ymd] => 2025-04-12 16:22:05 [RateCDR] => 1 ) [2025-04-12 16:22: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-04-12 13:22:05' and `end` < '2025-04-12 16:22: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-04-12 16:22:18] Production.INFO: count ==1326 [2025-04-12 16:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:22:05 - End Time 2025-04-12 16:22:05 [2025-04-12 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892754', 'tblTempUsageDetail_20' ) start [2025-04-12 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892754', 'tblTempUsageDetail_20' ) end [2025-04-12 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892754', 'tblTempVendorCDR_20' ) start [2025-04-12 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892754', 'tblTempVendorCDR_20' ) end [2025-04-12 16:22:18] Production.INFO: ProcessCDR(1,14892754,1,1,2) [2025-04-12 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892754', 'tblTempUsageDetail_20' ) start [2025-04-12 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892754', 'tblTempUsageDetail_20' ) end [2025-04-12 16:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:22:24] Production.INFO: ==12814== Releasing lock... [2025-04-12 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:22:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:23:06 [end_date_ymd] => 2025-04-12 16:23:06 [RateCDR] => 1 ) [2025-04-12 16:23: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-04-12 13:23:06' and `end` < '2025-04-12 16:23: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-04-12 16:23:19] Production.INFO: count ==1322 [2025-04-12 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:23:06 - End Time 2025-04-12 16:23:06 [2025-04-12 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892759', 'tblTempUsageDetail_20' ) start [2025-04-12 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892759', 'tblTempUsageDetail_20' ) end [2025-04-12 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892759', 'tblTempVendorCDR_20' ) start [2025-04-12 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892759', 'tblTempVendorCDR_20' ) end [2025-04-12 16:23:19] Production.INFO: ProcessCDR(1,14892759,1,1,2) [2025-04-12 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892759', 'tblTempUsageDetail_20' ) start [2025-04-12 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892759', 'tblTempUsageDetail_20' ) end [2025-04-12 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:23:24] Production.INFO: ==12886== Releasing lock... [2025-04-12 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:23:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:24:05 [end_date_ymd] => 2025-04-12 16:24:05 [RateCDR] => 1 ) [2025-04-12 16:24: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-04-12 13:24:05' and `end` < '2025-04-12 16:24: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-04-12 16:24:18] Production.INFO: count ==1321 [2025-04-12 16:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:24:05 - End Time 2025-04-12 16:24:05 [2025-04-12 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892764', 'tblTempUsageDetail_20' ) start [2025-04-12 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892764', 'tblTempUsageDetail_20' ) end [2025-04-12 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892764', 'tblTempVendorCDR_20' ) start [2025-04-12 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892764', 'tblTempVendorCDR_20' ) end [2025-04-12 16:24:18] Production.INFO: ProcessCDR(1,14892764,1,1,2) [2025-04-12 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892764', 'tblTempUsageDetail_20' ) start [2025-04-12 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892764', 'tblTempUsageDetail_20' ) end [2025-04-12 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:24:22] Production.INFO: ==12963== Releasing lock... [2025-04-12 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:24:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:25:05 [end_date_ymd] => 2025-04-12 16:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 13:25:05' and `end` < '2025-04-12 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-04-12 16:25:18] Production.INFO: count ==1326 [2025-04-12 16:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:25:05 - End Time 2025-04-12 16:25:05 [2025-04-12 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892769', 'tblTempUsageDetail_20' ) start [2025-04-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892769', 'tblTempUsageDetail_20' ) end [2025-04-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892769', 'tblTempVendorCDR_20' ) start [2025-04-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892769', 'tblTempVendorCDR_20' ) end [2025-04-12 16:25:18] Production.INFO: ProcessCDR(1,14892769,1,1,2) [2025-04-12 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892769', 'tblTempUsageDetail_20' ) start [2025-04-12 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892769', 'tblTempUsageDetail_20' ) end [2025-04-12 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:25:23] Production.INFO: ==13046== Releasing lock... [2025-04-12 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:26:06 [end_date_ymd] => 2025-04-12 16:26:06 [RateCDR] => 1 ) [2025-04-12 16:26: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-04-12 13:26:06' and `end` < '2025-04-12 16:26: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-04-12 16:26:19] Production.INFO: count ==1327 [2025-04-12 16:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:26:06 - End Time 2025-04-12 16:26:06 [2025-04-12 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892774', 'tblTempUsageDetail_20' ) start [2025-04-12 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892774', 'tblTempUsageDetail_20' ) end [2025-04-12 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892774', 'tblTempVendorCDR_20' ) start [2025-04-12 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892774', 'tblTempVendorCDR_20' ) end [2025-04-12 16:26:19] Production.INFO: ProcessCDR(1,14892774,1,1,2) [2025-04-12 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892774', 'tblTempUsageDetail_20' ) start [2025-04-12 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892774', 'tblTempUsageDetail_20' ) end [2025-04-12 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:26:22] Production.INFO: ==13121== Releasing lock... [2025-04-12 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:27:05 [end_date_ymd] => 2025-04-12 16:27:05 [RateCDR] => 1 ) [2025-04-12 16:27: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-04-12 13:27:05' and `end` < '2025-04-12 16:27: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-04-12 16:27:18] Production.INFO: count ==1325 [2025-04-12 16:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:27:05 - End Time 2025-04-12 16:27:05 [2025-04-12 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892779', 'tblTempUsageDetail_20' ) start [2025-04-12 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892779', 'tblTempUsageDetail_20' ) end [2025-04-12 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892779', 'tblTempVendorCDR_20' ) start [2025-04-12 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892779', 'tblTempVendorCDR_20' ) end [2025-04-12 16:27:18] Production.INFO: ProcessCDR(1,14892779,1,1,2) [2025-04-12 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892779', 'tblTempUsageDetail_20' ) start [2025-04-12 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892779', 'tblTempUsageDetail_20' ) end [2025-04-12 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:27:22] Production.INFO: ==13200== Releasing lock... [2025-04-12 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:28:04 [end_date_ymd] => 2025-04-12 16:28:04 [RateCDR] => 1 ) [2025-04-12 16:28: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-04-12 13:28:04' and `end` < '2025-04-12 16:28: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-04-12 16:28:17] Production.INFO: count ==1318 [2025-04-12 16:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:28:04 - End Time 2025-04-12 16:28:04 [2025-04-12 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892784', 'tblTempUsageDetail_20' ) start [2025-04-12 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892784', 'tblTempUsageDetail_20' ) end [2025-04-12 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892784', 'tblTempVendorCDR_20' ) start [2025-04-12 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892784', 'tblTempVendorCDR_20' ) end [2025-04-12 16:28:18] Production.INFO: ProcessCDR(1,14892784,1,1,2) [2025-04-12 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892784', 'tblTempUsageDetail_20' ) start [2025-04-12 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892784', 'tblTempUsageDetail_20' ) end [2025-04-12 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:28:23] Production.INFO: ==13283== Releasing lock... [2025-04-12 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:29:05 [end_date_ymd] => 2025-04-12 16:29:05 [RateCDR] => 1 ) [2025-04-12 16:29: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-04-12 13:29:05' and `end` < '2025-04-12 16:29: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-04-12 16:29:18] Production.INFO: count ==1311 [2025-04-12 16:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:29:05 - End Time 2025-04-12 16:29:05 [2025-04-12 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892789', 'tblTempUsageDetail_20' ) start [2025-04-12 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892789', 'tblTempUsageDetail_20' ) end [2025-04-12 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892789', 'tblTempVendorCDR_20' ) start [2025-04-12 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892789', 'tblTempVendorCDR_20' ) end [2025-04-12 16:29:19] Production.INFO: ProcessCDR(1,14892789,1,1,2) [2025-04-12 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892789', 'tblTempUsageDetail_20' ) start [2025-04-12 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892789', 'tblTempUsageDetail_20' ) end [2025-04-12 16:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:29:24] Production.INFO: ==13363== Releasing lock... [2025-04-12 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:29:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:30:07 [end_date_ymd] => 2025-04-12 16:30:07 [RateCDR] => 1 ) [2025-04-12 16:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 13:30:07' and `end` < '2025-04-12 16:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 16:30:20] Production.INFO: count ==1285 [2025-04-12 16:30:20] Production.ERROR: pbx CDR StartTime 2025-04-12 13:30:07 - End Time 2025-04-12 16:30:07 [2025-04-12 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892795', 'tblTempUsageDetail_20' ) start [2025-04-12 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892795', 'tblTempUsageDetail_20' ) end [2025-04-12 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892795', 'tblTempVendorCDR_20' ) start [2025-04-12 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892795', 'tblTempVendorCDR_20' ) end [2025-04-12 16:30:20] Production.INFO: ProcessCDR(1,14892795,1,1,2) [2025-04-12 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892795', 'tblTempUsageDetail_20' ) start [2025-04-12 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892795', 'tblTempUsageDetail_20' ) end [2025-04-12 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:30:26] Production.INFO: ==13454== Releasing lock... [2025-04-12 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:30:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:31:05 [end_date_ymd] => 2025-04-12 16:31:05 [RateCDR] => 1 ) [2025-04-12 16:31: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-04-12 13:31:05' and `end` < '2025-04-12 16:31: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-04-12 16:31:18] Production.INFO: count ==1321 [2025-04-12 16:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:31:05 - End Time 2025-04-12 16:31:05 [2025-04-12 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892800', 'tblTempUsageDetail_20' ) start [2025-04-12 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892800', 'tblTempUsageDetail_20' ) end [2025-04-12 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892800', 'tblTempVendorCDR_20' ) start [2025-04-12 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892800', 'tblTempVendorCDR_20' ) end [2025-04-12 16:31:19] Production.INFO: ProcessCDR(1,14892800,1,1,2) [2025-04-12 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892800', 'tblTempUsageDetail_20' ) start [2025-04-12 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892800', 'tblTempUsageDetail_20' ) end [2025-04-12 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:31:22] Production.INFO: ==13535== Releasing lock... [2025-04-12 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:32:06 [end_date_ymd] => 2025-04-12 16:32:06 [RateCDR] => 1 ) [2025-04-12 16:32: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-04-12 13:32:06' and `end` < '2025-04-12 16:32: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-04-12 16:32:19] Production.INFO: count ==1322 [2025-04-12 16:32:20] Production.ERROR: pbx CDR StartTime 2025-04-12 13:32:06 - End Time 2025-04-12 16:32:06 [2025-04-12 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892805', 'tblTempUsageDetail_20' ) start [2025-04-12 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892805', 'tblTempUsageDetail_20' ) end [2025-04-12 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892805', 'tblTempVendorCDR_20' ) start [2025-04-12 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892805', 'tblTempVendorCDR_20' ) end [2025-04-12 16:32:20] Production.INFO: ProcessCDR(1,14892805,1,1,2) [2025-04-12 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892805', 'tblTempUsageDetail_20' ) start [2025-04-12 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892805', 'tblTempUsageDetail_20' ) end [2025-04-12 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:32:25] Production.INFO: ==13623== Releasing lock... [2025-04-12 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:32:25] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:33:05 [end_date_ymd] => 2025-04-12 16:33:05 [RateCDR] => 1 ) [2025-04-12 16:33: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-04-12 13:33:05' and `end` < '2025-04-12 16:33: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-04-12 16:33:18] Production.INFO: count ==1321 [2025-04-12 16:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:33:05 - End Time 2025-04-12 16:33:05 [2025-04-12 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892810', 'tblTempUsageDetail_20' ) start [2025-04-12 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892810', 'tblTempUsageDetail_20' ) end [2025-04-12 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892810', 'tblTempVendorCDR_20' ) start [2025-04-12 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892810', 'tblTempVendorCDR_20' ) end [2025-04-12 16:33:18] Production.INFO: ProcessCDR(1,14892810,1,1,2) [2025-04-12 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892810', 'tblTempUsageDetail_20' ) start [2025-04-12 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892810', 'tblTempUsageDetail_20' ) end [2025-04-12 16:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:33:23] Production.INFO: ==13697== Releasing lock... [2025-04-12 16:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:33:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:34:05 [end_date_ymd] => 2025-04-12 16:34:05 [RateCDR] => 1 ) [2025-04-12 16:34: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-04-12 13:34:05' and `end` < '2025-04-12 16:34: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-04-12 16:34:18] Production.INFO: count ==1321 [2025-04-12 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:34:05 - End Time 2025-04-12 16:34:05 [2025-04-12 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892815', 'tblTempUsageDetail_20' ) start [2025-04-12 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892815', 'tblTempUsageDetail_20' ) end [2025-04-12 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892815', 'tblTempVendorCDR_20' ) start [2025-04-12 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892815', 'tblTempVendorCDR_20' ) end [2025-04-12 16:34:19] Production.INFO: ProcessCDR(1,14892815,1,1,2) [2025-04-12 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892815', 'tblTempUsageDetail_20' ) start [2025-04-12 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892815', 'tblTempUsageDetail_20' ) end [2025-04-12 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:34:24] Production.INFO: ==13784== Releasing lock... [2025-04-12 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:34:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:35:05 [end_date_ymd] => 2025-04-12 16:35:05 [RateCDR] => 1 ) [2025-04-12 16:35: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-04-12 13:35:05' and `end` < '2025-04-12 16:35: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-04-12 16:35:18] Production.INFO: count ==1320 [2025-04-12 16:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:35:05 - End Time 2025-04-12 16:35:05 [2025-04-12 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892820', 'tblTempUsageDetail_20' ) start [2025-04-12 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892820', 'tblTempUsageDetail_20' ) end [2025-04-12 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892820', 'tblTempVendorCDR_20' ) start [2025-04-12 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892820', 'tblTempVendorCDR_20' ) end [2025-04-12 16:35:18] Production.INFO: ProcessCDR(1,14892820,1,1,2) [2025-04-12 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892820', 'tblTempUsageDetail_20' ) start [2025-04-12 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892820', 'tblTempUsageDetail_20' ) end [2025-04-12 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:35:22] Production.INFO: ==13870== Releasing lock... [2025-04-12 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:35:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:36:06 [end_date_ymd] => 2025-04-12 16:36:06 [RateCDR] => 1 ) [2025-04-12 16:36: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-04-12 13:36:06' and `end` < '2025-04-12 16:36: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-04-12 16:36:19] Production.INFO: count ==1318 [2025-04-12 16:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:36:06 - End Time 2025-04-12 16:36:06 [2025-04-12 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892825', 'tblTempUsageDetail_20' ) start [2025-04-12 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892825', 'tblTempUsageDetail_20' ) end [2025-04-12 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892825', 'tblTempVendorCDR_20' ) start [2025-04-12 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892825', 'tblTempVendorCDR_20' ) end [2025-04-12 16:36:19] Production.INFO: ProcessCDR(1,14892825,1,1,2) [2025-04-12 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892825', 'tblTempUsageDetail_20' ) start [2025-04-12 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892825', 'tblTempUsageDetail_20' ) end [2025-04-12 16:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:36:24] Production.INFO: ==13967== Releasing lock... [2025-04-12 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:36:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:37:05 [end_date_ymd] => 2025-04-12 16:37:05 [RateCDR] => 1 ) [2025-04-12 16:37: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-04-12 13:37:05' and `end` < '2025-04-12 16:37: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-04-12 16:37:18] Production.INFO: count ==1323 [2025-04-12 16:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:37:05 - End Time 2025-04-12 16:37:05 [2025-04-12 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892830', 'tblTempUsageDetail_20' ) start [2025-04-12 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892830', 'tblTempUsageDetail_20' ) end [2025-04-12 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892830', 'tblTempVendorCDR_20' ) start [2025-04-12 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892830', 'tblTempVendorCDR_20' ) end [2025-04-12 16:37:18] Production.INFO: ProcessCDR(1,14892830,1,1,2) [2025-04-12 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892830', 'tblTempUsageDetail_20' ) start [2025-04-12 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892830', 'tblTempUsageDetail_20' ) end [2025-04-12 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:37:23] Production.INFO: ==14052== Releasing lock... [2025-04-12 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:37:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:38:05 [end_date_ymd] => 2025-04-12 16:38:05 [RateCDR] => 1 ) [2025-04-12 16:38: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-04-12 13:38:05' and `end` < '2025-04-12 16:38: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-04-12 16:38:18] Production.INFO: count ==1315 [2025-04-12 16:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:38:05 - End Time 2025-04-12 16:38:05 [2025-04-12 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892835', 'tblTempUsageDetail_20' ) start [2025-04-12 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892835', 'tblTempUsageDetail_20' ) end [2025-04-12 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892835', 'tblTempVendorCDR_20' ) start [2025-04-12 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892835', 'tblTempVendorCDR_20' ) end [2025-04-12 16:38:19] Production.INFO: ProcessCDR(1,14892835,1,1,2) [2025-04-12 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892835', 'tblTempUsageDetail_20' ) start [2025-04-12 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892835', 'tblTempUsageDetail_20' ) end [2025-04-12 16:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:38:24] Production.INFO: ==14177== Releasing lock... [2025-04-12 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:38:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:39:05 [end_date_ymd] => 2025-04-12 16:39:05 [RateCDR] => 1 ) [2025-04-12 16:39: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-04-12 13:39:05' and `end` < '2025-04-12 16:39: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-04-12 16:39:17] Production.INFO: count ==1314 [2025-04-12 16:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:39:05 - End Time 2025-04-12 16:39:05 [2025-04-12 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892840', 'tblTempUsageDetail_20' ) start [2025-04-12 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892840', 'tblTempUsageDetail_20' ) end [2025-04-12 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892840', 'tblTempVendorCDR_20' ) start [2025-04-12 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892840', 'tblTempVendorCDR_20' ) end [2025-04-12 16:39:18] Production.INFO: ProcessCDR(1,14892840,1,1,2) [2025-04-12 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892840', 'tblTempUsageDetail_20' ) start [2025-04-12 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892840', 'tblTempUsageDetail_20' ) end [2025-04-12 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:39:23] Production.INFO: ==14261== Releasing lock... [2025-04-12 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:39:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:40:06 [end_date_ymd] => 2025-04-12 16:40:06 [RateCDR] => 1 ) [2025-04-12 16:40: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-04-12 13:40:06' and `end` < '2025-04-12 16:40: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-04-12 16:40:19] Production.INFO: count ==1311 [2025-04-12 16:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:40:06 - End Time 2025-04-12 16:40:06 [2025-04-12 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892846', 'tblTempUsageDetail_20' ) start [2025-04-12 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892846', 'tblTempUsageDetail_20' ) end [2025-04-12 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892846', 'tblTempVendorCDR_20' ) start [2025-04-12 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892846', 'tblTempVendorCDR_20' ) end [2025-04-12 16:40:19] Production.INFO: ProcessCDR(1,14892846,1,1,2) [2025-04-12 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892846', 'tblTempUsageDetail_20' ) start [2025-04-12 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892846', 'tblTempUsageDetail_20' ) end [2025-04-12 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:40:23] Production.INFO: ==14361== Releasing lock... [2025-04-12 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:40:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:41:04 [end_date_ymd] => 2025-04-12 16:41:04 [RateCDR] => 1 ) [2025-04-12 16:41: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-04-12 13:41:04' and `end` < '2025-04-12 16:41: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-04-12 16:41:17] Production.INFO: count ==1324 [2025-04-12 16:41:17] Production.ERROR: pbx CDR StartTime 2025-04-12 13:41:04 - End Time 2025-04-12 16:41:04 [2025-04-12 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892851', 'tblTempUsageDetail_20' ) start [2025-04-12 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892851', 'tblTempUsageDetail_20' ) end [2025-04-12 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892851', 'tblTempVendorCDR_20' ) start [2025-04-12 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892851', 'tblTempVendorCDR_20' ) end [2025-04-12 16:41:17] Production.INFO: ProcessCDR(1,14892851,1,1,2) [2025-04-12 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892851', 'tblTempUsageDetail_20' ) start [2025-04-12 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892851', 'tblTempUsageDetail_20' ) end [2025-04-12 16:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:41:21] Production.INFO: ==14448== Releasing lock... [2025-04-12 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:41:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:42:05 [end_date_ymd] => 2025-04-12 16:42:05 [RateCDR] => 1 ) [2025-04-12 16:42: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-04-12 13:42:05' and `end` < '2025-04-12 16:42: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-04-12 16:42:18] Production.INFO: count ==1309 [2025-04-12 16:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:42:05 - End Time 2025-04-12 16:42:05 [2025-04-12 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892856', 'tblTempUsageDetail_20' ) start [2025-04-12 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892856', 'tblTempUsageDetail_20' ) end [2025-04-12 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892856', 'tblTempVendorCDR_20' ) start [2025-04-12 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892856', 'tblTempVendorCDR_20' ) end [2025-04-12 16:42:18] Production.INFO: ProcessCDR(1,14892856,1,1,2) [2025-04-12 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892856', 'tblTempUsageDetail_20' ) start [2025-04-12 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892856', 'tblTempUsageDetail_20' ) end [2025-04-12 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:42:22] Production.INFO: ==14533== Releasing lock... [2025-04-12 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:43:05 [end_date_ymd] => 2025-04-12 16:43:05 [RateCDR] => 1 ) [2025-04-12 16:43: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-04-12 13:43:05' and `end` < '2025-04-12 16:43: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-04-12 16:43:18] Production.INFO: count ==1308 [2025-04-12 16:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:43:05 - End Time 2025-04-12 16:43:05 [2025-04-12 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892861', 'tblTempUsageDetail_20' ) start [2025-04-12 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892861', 'tblTempUsageDetail_20' ) end [2025-04-12 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892861', 'tblTempVendorCDR_20' ) start [2025-04-12 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892861', 'tblTempVendorCDR_20' ) end [2025-04-12 16:43:18] Production.INFO: ProcessCDR(1,14892861,1,1,2) [2025-04-12 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892861', 'tblTempUsageDetail_20' ) start [2025-04-12 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892861', 'tblTempUsageDetail_20' ) end [2025-04-12 16:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:43:21] Production.INFO: ==14622== Releasing lock... [2025-04-12 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:43:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:44:05 [end_date_ymd] => 2025-04-12 16:44:05 [RateCDR] => 1 ) [2025-04-12 16:44: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-04-12 13:44:05' and `end` < '2025-04-12 16:44: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-04-12 16:44:18] Production.INFO: count ==1317 [2025-04-12 16:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:44:05 - End Time 2025-04-12 16:44:05 [2025-04-12 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892866', 'tblTempUsageDetail_20' ) start [2025-04-12 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892866', 'tblTempUsageDetail_20' ) end [2025-04-12 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892866', 'tblTempVendorCDR_20' ) start [2025-04-12 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892866', 'tblTempVendorCDR_20' ) end [2025-04-12 16:44:18] Production.INFO: ProcessCDR(1,14892866,1,1,2) [2025-04-12 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892866', 'tblTempUsageDetail_20' ) start [2025-04-12 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892866', 'tblTempUsageDetail_20' ) end [2025-04-12 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:44:24] Production.INFO: ==14715== Releasing lock... [2025-04-12 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:44:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:45:06 [end_date_ymd] => 2025-04-12 16:45:06 [RateCDR] => 1 ) [2025-04-12 16:45: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-04-12 13:45:06' and `end` < '2025-04-12 16:45: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-04-12 16:45:19] Production.INFO: count ==1318 [2025-04-12 16:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:45:06 - End Time 2025-04-12 16:45:06 [2025-04-12 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892871', 'tblTempUsageDetail_20' ) start [2025-04-12 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892871', 'tblTempUsageDetail_20' ) end [2025-04-12 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892871', 'tblTempVendorCDR_20' ) start [2025-04-12 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892871', 'tblTempVendorCDR_20' ) end [2025-04-12 16:45:19] Production.INFO: ProcessCDR(1,14892871,1,1,2) [2025-04-12 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892871', 'tblTempUsageDetail_20' ) start [2025-04-12 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892871', 'tblTempUsageDetail_20' ) end [2025-04-12 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:45:22] Production.INFO: ==14805== Releasing lock... [2025-04-12 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:46:05 [end_date_ymd] => 2025-04-12 16:46:05 [RateCDR] => 1 ) [2025-04-12 16:46: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-04-12 13:46:05' and `end` < '2025-04-12 16:46: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-04-12 16:46:18] Production.INFO: count ==1319 [2025-04-12 16:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:46:05 - End Time 2025-04-12 16:46:05 [2025-04-12 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892876', 'tblTempUsageDetail_20' ) start [2025-04-12 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892876', 'tblTempUsageDetail_20' ) end [2025-04-12 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892876', 'tblTempVendorCDR_20' ) start [2025-04-12 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892876', 'tblTempVendorCDR_20' ) end [2025-04-12 16:46:18] Production.INFO: ProcessCDR(1,14892876,1,1,2) [2025-04-12 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892876', 'tblTempUsageDetail_20' ) start [2025-04-12 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892876', 'tblTempUsageDetail_20' ) end [2025-04-12 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:46:23] Production.INFO: ==14901== Releasing lock... [2025-04-12 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:46:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:47:06 [end_date_ymd] => 2025-04-12 16:47:06 [RateCDR] => 1 ) [2025-04-12 16:47: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-04-12 13:47:06' and `end` < '2025-04-12 16:47: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-04-12 16:47:19] Production.INFO: count ==1323 [2025-04-12 16:47:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:47:06 - End Time 2025-04-12 16:47:06 [2025-04-12 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892881', 'tblTempUsageDetail_20' ) start [2025-04-12 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892881', 'tblTempUsageDetail_20' ) end [2025-04-12 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892881', 'tblTempVendorCDR_20' ) start [2025-04-12 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892881', 'tblTempVendorCDR_20' ) end [2025-04-12 16:47:19] Production.INFO: ProcessCDR(1,14892881,1,1,2) [2025-04-12 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892881', 'tblTempUsageDetail_20' ) start [2025-04-12 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892881', 'tblTempUsageDetail_20' ) end [2025-04-12 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:47:24] Production.INFO: ==14989== Releasing lock... [2025-04-12 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:47:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:48:05 [end_date_ymd] => 2025-04-12 16:48:05 [RateCDR] => 1 ) [2025-04-12 16:48: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-04-12 13:48:05' and `end` < '2025-04-12 16:48: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-04-12 16:48:18] Production.INFO: count ==1324 [2025-04-12 16:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:48:05 - End Time 2025-04-12 16:48:05 [2025-04-12 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892886', 'tblTempUsageDetail_20' ) start [2025-04-12 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892886', 'tblTempUsageDetail_20' ) end [2025-04-12 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892886', 'tblTempVendorCDR_20' ) start [2025-04-12 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892886', 'tblTempVendorCDR_20' ) end [2025-04-12 16:48:18] Production.INFO: ProcessCDR(1,14892886,1,1,2) [2025-04-12 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892886', 'tblTempUsageDetail_20' ) start [2025-04-12 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892886', 'tblTempUsageDetail_20' ) end [2025-04-12 16:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:48:24] Production.INFO: ==15081== Releasing lock... [2025-04-12 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:48:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:49:06 [end_date_ymd] => 2025-04-12 16:49:06 [RateCDR] => 1 ) [2025-04-12 16:49: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-04-12 13:49:06' and `end` < '2025-04-12 16:49: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-04-12 16:49:19] Production.INFO: count ==1322 [2025-04-12 16:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:49:06 - End Time 2025-04-12 16:49:06 [2025-04-12 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892891', 'tblTempUsageDetail_20' ) start [2025-04-12 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892891', 'tblTempUsageDetail_20' ) end [2025-04-12 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892891', 'tblTempVendorCDR_20' ) start [2025-04-12 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892891', 'tblTempVendorCDR_20' ) end [2025-04-12 16:49:19] Production.INFO: ProcessCDR(1,14892891,1,1,2) [2025-04-12 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892891', 'tblTempUsageDetail_20' ) start [2025-04-12 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892891', 'tblTempUsageDetail_20' ) end [2025-04-12 16:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:49:22] Production.INFO: ==15178== Releasing lock... [2025-04-12 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:49:22] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:50:05 [end_date_ymd] => 2025-04-12 16:50:05 [RateCDR] => 1 ) [2025-04-12 16:50: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-04-12 13:50:05' and `end` < '2025-04-12 16:50: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-04-12 16:50:18] Production.INFO: count ==1311 [2025-04-12 16:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:50:05 - End Time 2025-04-12 16:50:05 [2025-04-12 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892897', 'tblTempUsageDetail_20' ) start [2025-04-12 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892897', 'tblTempUsageDetail_20' ) end [2025-04-12 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892897', 'tblTempVendorCDR_20' ) start [2025-04-12 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892897', 'tblTempVendorCDR_20' ) end [2025-04-12 16:50:19] Production.INFO: ProcessCDR(1,14892897,1,1,2) [2025-04-12 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892897', 'tblTempUsageDetail_20' ) start [2025-04-12 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892897', 'tblTempUsageDetail_20' ) end [2025-04-12 16:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:50:24] Production.INFO: ==15276== Releasing lock... [2025-04-12 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:50:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:51:06 [end_date_ymd] => 2025-04-12 16:51:06 [RateCDR] => 1 ) [2025-04-12 16:51: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-04-12 13:51:06' and `end` < '2025-04-12 16:51: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-04-12 16:51:19] Production.INFO: count ==1316 [2025-04-12 16:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:51:06 - End Time 2025-04-12 16:51:06 [2025-04-12 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892902', 'tblTempUsageDetail_20' ) start [2025-04-12 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892902', 'tblTempUsageDetail_20' ) end [2025-04-12 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892902', 'tblTempVendorCDR_20' ) start [2025-04-12 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892902', 'tblTempVendorCDR_20' ) end [2025-04-12 16:51:19] Production.INFO: ProcessCDR(1,14892902,1,1,2) [2025-04-12 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892902', 'tblTempUsageDetail_20' ) start [2025-04-12 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892902', 'tblTempUsageDetail_20' ) end [2025-04-12 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:51:24] Production.INFO: ==15372== Releasing lock... [2025-04-12 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:51:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:52:05 [end_date_ymd] => 2025-04-12 16:52:05 [RateCDR] => 1 ) [2025-04-12 16:52: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-04-12 13:52:05' and `end` < '2025-04-12 16:52: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-04-12 16:52:18] Production.INFO: count ==1317 [2025-04-12 16:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:52:05 - End Time 2025-04-12 16:52:05 [2025-04-12 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892907', 'tblTempUsageDetail_20' ) start [2025-04-12 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892907', 'tblTempUsageDetail_20' ) end [2025-04-12 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892907', 'tblTempVendorCDR_20' ) start [2025-04-12 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892907', 'tblTempVendorCDR_20' ) end [2025-04-12 16:52:18] Production.INFO: ProcessCDR(1,14892907,1,1,2) [2025-04-12 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892907', 'tblTempUsageDetail_20' ) start [2025-04-12 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892907', 'tblTempUsageDetail_20' ) end [2025-04-12 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:52:24] Production.INFO: ==15461== Releasing lock... [2025-04-12 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:52:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:53:06 [end_date_ymd] => 2025-04-12 16:53:06 [RateCDR] => 1 ) [2025-04-12 16:53: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-04-12 13:53:06' and `end` < '2025-04-12 16:53: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-04-12 16:53:19] Production.INFO: count ==1326 [2025-04-12 16:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:53:06 - End Time 2025-04-12 16:53:06 [2025-04-12 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892912', 'tblTempUsageDetail_20' ) start [2025-04-12 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892912', 'tblTempUsageDetail_20' ) end [2025-04-12 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892912', 'tblTempVendorCDR_20' ) start [2025-04-12 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892912', 'tblTempVendorCDR_20' ) end [2025-04-12 16:53:19] Production.INFO: ProcessCDR(1,14892912,1,1,2) [2025-04-12 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892912', 'tblTempUsageDetail_20' ) start [2025-04-12 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892912', 'tblTempUsageDetail_20' ) end [2025-04-12 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:53:24] Production.INFO: ==15600== Releasing lock... [2025-04-12 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:53:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:54:05 [end_date_ymd] => 2025-04-12 16:54:05 [RateCDR] => 1 ) [2025-04-12 16:54: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-04-12 13:54:05' and `end` < '2025-04-12 16:54: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-04-12 16:54:18] Production.INFO: count ==1324 [2025-04-12 16:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:54:05 - End Time 2025-04-12 16:54:05 [2025-04-12 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892917', 'tblTempUsageDetail_20' ) start [2025-04-12 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892917', 'tblTempUsageDetail_20' ) end [2025-04-12 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892917', 'tblTempVendorCDR_20' ) start [2025-04-12 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892917', 'tblTempVendorCDR_20' ) end [2025-04-12 16:54:18] Production.INFO: ProcessCDR(1,14892917,1,1,2) [2025-04-12 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892917', 'tblTempUsageDetail_20' ) start [2025-04-12 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892917', 'tblTempUsageDetail_20' ) end [2025-04-12 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:54:23] Production.INFO: ==15698== Releasing lock... [2025-04-12 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:54:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:55:05 [end_date_ymd] => 2025-04-12 16:55:05 [RateCDR] => 1 ) [2025-04-12 16:55: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-04-12 13:55:05' and `end` < '2025-04-12 16:55: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-04-12 16:55:18] Production.INFO: count ==1324 [2025-04-12 16:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:55:05 - End Time 2025-04-12 16:55:05 [2025-04-12 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892922', 'tblTempUsageDetail_20' ) start [2025-04-12 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892922', 'tblTempUsageDetail_20' ) end [2025-04-12 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892922', 'tblTempVendorCDR_20' ) start [2025-04-12 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892922', 'tblTempVendorCDR_20' ) end [2025-04-12 16:55:19] Production.INFO: ProcessCDR(1,14892922,1,1,2) [2025-04-12 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892922', 'tblTempUsageDetail_20' ) start [2025-04-12 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892922', 'tblTempUsageDetail_20' ) end [2025-04-12 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:55:22] Production.INFO: ==15793== Releasing lock... [2025-04-12 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:55:22] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:56:05 [end_date_ymd] => 2025-04-12 16:56:05 [RateCDR] => 1 ) [2025-04-12 16:56: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-04-12 13:56:05' and `end` < '2025-04-12 16:56: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-04-12 16:56:18] Production.INFO: count ==1322 [2025-04-12 16:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:56:05 - End Time 2025-04-12 16:56:05 [2025-04-12 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892927', 'tblTempUsageDetail_20' ) start [2025-04-12 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892927', 'tblTempUsageDetail_20' ) end [2025-04-12 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892927', 'tblTempVendorCDR_20' ) start [2025-04-12 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892927', 'tblTempVendorCDR_20' ) end [2025-04-12 16:56:18] Production.INFO: ProcessCDR(1,14892927,1,1,2) [2025-04-12 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892927', 'tblTempUsageDetail_20' ) start [2025-04-12 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892927', 'tblTempUsageDetail_20' ) end [2025-04-12 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:56:22] Production.INFO: ==15883== Releasing lock... [2025-04-12 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:56:22] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:57:06 [end_date_ymd] => 2025-04-12 16:57:06 [RateCDR] => 1 ) [2025-04-12 16:57: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-04-12 13:57:06' and `end` < '2025-04-12 16:57: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-04-12 16:57:19] Production.INFO: count ==1323 [2025-04-12 16:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:57:06 - End Time 2025-04-12 16:57:06 [2025-04-12 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892932', 'tblTempUsageDetail_20' ) start [2025-04-12 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892932', 'tblTempUsageDetail_20' ) end [2025-04-12 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892932', 'tblTempVendorCDR_20' ) start [2025-04-12 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892932', 'tblTempVendorCDR_20' ) end [2025-04-12 16:57:19] Production.INFO: ProcessCDR(1,14892932,1,1,2) [2025-04-12 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892932', 'tblTempUsageDetail_20' ) start [2025-04-12 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892932', 'tblTempUsageDetail_20' ) end [2025-04-12 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:57:25] Production.INFO: ==15981== Releasing lock... [2025-04-12 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:57:25] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:58:05 [end_date_ymd] => 2025-04-12 16:58:05 [RateCDR] => 1 ) [2025-04-12 16:58: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-04-12 13:58:05' and `end` < '2025-04-12 16:58: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-04-12 16:58:18] Production.INFO: count ==1319 [2025-04-12 16:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 13:58:05 - End Time 2025-04-12 16:58:05 [2025-04-12 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892937', 'tblTempUsageDetail_20' ) start [2025-04-12 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892937', 'tblTempUsageDetail_20' ) end [2025-04-12 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892937', 'tblTempVendorCDR_20' ) start [2025-04-12 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892937', 'tblTempVendorCDR_20' ) end [2025-04-12 16:58:18] Production.INFO: ProcessCDR(1,14892937,1,1,2) [2025-04-12 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892937', 'tblTempUsageDetail_20' ) start [2025-04-12 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892937', 'tblTempUsageDetail_20' ) end [2025-04-12 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:58:24] Production.INFO: ==16069== Releasing lock... [2025-04-12 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:58:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 13:59:05 [end_date_ymd] => 2025-04-12 16:59:05 [RateCDR] => 1 ) [2025-04-12 16:59: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-04-12 13:59:05' and `end` < '2025-04-12 16:59: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-04-12 16:59:18] Production.INFO: count ==1307 [2025-04-12 16:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 13:59:05 - End Time 2025-04-12 16:59:05 [2025-04-12 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892942', 'tblTempUsageDetail_20' ) start [2025-04-12 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892942', 'tblTempUsageDetail_20' ) end [2025-04-12 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892942', 'tblTempVendorCDR_20' ) start [2025-04-12 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892942', 'tblTempVendorCDR_20' ) end [2025-04-12 16:59:19] Production.INFO: ProcessCDR(1,14892942,1,1,2) [2025-04-12 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892942', 'tblTempUsageDetail_20' ) start [2025-04-12 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892942', 'tblTempUsageDetail_20' ) end [2025-04-12 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 16:59:24] Production.INFO: ==16163== Releasing lock... [2025-04-12 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 16:59:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:00:06 [end_date_ymd] => 2025-04-12 17:00:06 [RateCDR] => 1 ) [2025-04-12 17:00: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-04-12 14:00:06' and `end` < '2025-04-12 17:00: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-04-12 17:00:19] Production.INFO: count ==1304 [2025-04-12 17:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:00:06 - End Time 2025-04-12 17:00:06 [2025-04-12 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892947', 'tblTempUsageDetail_20' ) start [2025-04-12 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892947', 'tblTempUsageDetail_20' ) end [2025-04-12 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892947', 'tblTempVendorCDR_20' ) start [2025-04-12 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892947', 'tblTempVendorCDR_20' ) end [2025-04-12 17:00:19] Production.INFO: ProcessCDR(1,14892947,1,1,2) [2025-04-12 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892947', 'tblTempUsageDetail_20' ) start [2025-04-12 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892947', 'tblTempUsageDetail_20' ) end [2025-04-12 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:00:24] Production.INFO: ==16256== Releasing lock... [2025-04-12 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:00:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:01:05 [end_date_ymd] => 2025-04-12 17:01:05 [RateCDR] => 1 ) [2025-04-12 17:01: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-04-12 14:01:05' and `end` < '2025-04-12 17:01: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-04-12 17:01:18] Production.INFO: count ==1293 [2025-04-12 17:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:01:05 - End Time 2025-04-12 17:01:05 [2025-04-12 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892953', 'tblTempUsageDetail_20' ) start [2025-04-12 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892953', 'tblTempUsageDetail_20' ) end [2025-04-12 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892953', 'tblTempVendorCDR_20' ) start [2025-04-12 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892953', 'tblTempVendorCDR_20' ) end [2025-04-12 17:01:19] Production.INFO: ProcessCDR(1,14892953,1,1,2) [2025-04-12 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892953', 'tblTempUsageDetail_20' ) start [2025-04-12 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892953', 'tblTempUsageDetail_20' ) end [2025-04-12 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:01:22] Production.INFO: ==16366== Releasing lock... [2025-04-12 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:01:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:02:04 [end_date_ymd] => 2025-04-12 17:02:04 [RateCDR] => 1 ) [2025-04-12 17:02: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-04-12 14:02:04' and `end` < '2025-04-12 17:02: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-04-12 17:02:17] Production.INFO: count ==1286 [2025-04-12 17:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:02:04 - End Time 2025-04-12 17:02:04 [2025-04-12 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892958', 'tblTempUsageDetail_20' ) start [2025-04-12 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892958', 'tblTempUsageDetail_20' ) end [2025-04-12 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892958', 'tblTempVendorCDR_20' ) start [2025-04-12 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892958', 'tblTempVendorCDR_20' ) end [2025-04-12 17:02:18] Production.INFO: ProcessCDR(1,14892958,1,1,2) [2025-04-12 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892958', 'tblTempUsageDetail_20' ) start [2025-04-12 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892958', 'tblTempUsageDetail_20' ) end [2025-04-12 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:02:22] Production.INFO: ==16450== Releasing lock... [2025-04-12 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:03:05 [end_date_ymd] => 2025-04-12 17:03:05 [RateCDR] => 1 ) [2025-04-12 17:03: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-04-12 14:03:05' and `end` < '2025-04-12 17:03: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-04-12 17:03:18] Production.INFO: count ==1284 [2025-04-12 17:03:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:03:05 - End Time 2025-04-12 17:03:05 [2025-04-12 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892963', 'tblTempUsageDetail_20' ) start [2025-04-12 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892963', 'tblTempUsageDetail_20' ) end [2025-04-12 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892963', 'tblTempVendorCDR_20' ) start [2025-04-12 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892963', 'tblTempVendorCDR_20' ) end [2025-04-12 17:03:18] Production.INFO: ProcessCDR(1,14892963,1,1,2) [2025-04-12 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892963', 'tblTempUsageDetail_20' ) start [2025-04-12 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892963', 'tblTempUsageDetail_20' ) end [2025-04-12 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:03:23] Production.INFO: ==16543== Releasing lock... [2025-04-12 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:03:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:04:06 [end_date_ymd] => 2025-04-12 17:04:06 [RateCDR] => 1 ) [2025-04-12 17:04: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-04-12 14:04:06' and `end` < '2025-04-12 17:04: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-04-12 17:04:19] Production.INFO: count ==1288 [2025-04-12 17:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:04:06 - End Time 2025-04-12 17:04:06 [2025-04-12 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892968', 'tblTempUsageDetail_20' ) start [2025-04-12 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892968', 'tblTempUsageDetail_20' ) end [2025-04-12 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892968', 'tblTempVendorCDR_20' ) start [2025-04-12 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892968', 'tblTempVendorCDR_20' ) end [2025-04-12 17:04:19] Production.INFO: ProcessCDR(1,14892968,1,1,2) [2025-04-12 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892968', 'tblTempUsageDetail_20' ) start [2025-04-12 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892968', 'tblTempUsageDetail_20' ) end [2025-04-12 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:04:25] Production.INFO: ==16628== Releasing lock... [2025-04-12 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:04:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:05:05 [end_date_ymd] => 2025-04-12 17:05:05 [RateCDR] => 1 ) [2025-04-12 17:05: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-04-12 14:05:05' and `end` < '2025-04-12 17:05: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-04-12 17:05:18] Production.INFO: count ==1286 [2025-04-12 17:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:05:05 - End Time 2025-04-12 17:05:05 [2025-04-12 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892973', 'tblTempUsageDetail_20' ) start [2025-04-12 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892973', 'tblTempUsageDetail_20' ) end [2025-04-12 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892973', 'tblTempVendorCDR_20' ) start [2025-04-12 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892973', 'tblTempVendorCDR_20' ) end [2025-04-12 17:05:18] Production.INFO: ProcessCDR(1,14892973,1,1,2) [2025-04-12 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892973', 'tblTempUsageDetail_20' ) start [2025-04-12 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892973', 'tblTempUsageDetail_20' ) end [2025-04-12 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:05:23] Production.INFO: ==16720== Releasing lock... [2025-04-12 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:05:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:06:06 [end_date_ymd] => 2025-04-12 17:06:06 [RateCDR] => 1 ) [2025-04-12 17:06: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-04-12 14:06:06' and `end` < '2025-04-12 17:06: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-04-12 17:06:19] Production.INFO: count ==1290 [2025-04-12 17:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:06:06 - End Time 2025-04-12 17:06:06 [2025-04-12 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892978', 'tblTempUsageDetail_20' ) start [2025-04-12 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892978', 'tblTempUsageDetail_20' ) end [2025-04-12 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892978', 'tblTempVendorCDR_20' ) start [2025-04-12 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892978', 'tblTempVendorCDR_20' ) end [2025-04-12 17:06:19] Production.INFO: ProcessCDR(1,14892978,1,1,2) [2025-04-12 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892978', 'tblTempUsageDetail_20' ) start [2025-04-12 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892978', 'tblTempUsageDetail_20' ) end [2025-04-12 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:06:24] Production.INFO: ==16813== Releasing lock... [2025-04-12 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:06:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:07:06 [end_date_ymd] => 2025-04-12 17:07:06 [RateCDR] => 1 ) [2025-04-12 17:07: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-04-12 14:07:06' and `end` < '2025-04-12 17:07: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-04-12 17:07:19] Production.INFO: count ==1277 [2025-04-12 17:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:07:06 - End Time 2025-04-12 17:07:06 [2025-04-12 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892983', 'tblTempUsageDetail_20' ) start [2025-04-12 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892983', 'tblTempUsageDetail_20' ) end [2025-04-12 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892983', 'tblTempVendorCDR_20' ) start [2025-04-12 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892983', 'tblTempVendorCDR_20' ) end [2025-04-12 17:07:19] Production.INFO: ProcessCDR(1,14892983,1,1,2) [2025-04-12 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892983', 'tblTempUsageDetail_20' ) start [2025-04-12 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892983', 'tblTempUsageDetail_20' ) end [2025-04-12 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:07:24] Production.INFO: ==16902== Releasing lock... [2025-04-12 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:07:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:08:06 [end_date_ymd] => 2025-04-12 17:08:06 [RateCDR] => 1 ) [2025-04-12 17:08: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-04-12 14:08:06' and `end` < '2025-04-12 17:08: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-04-12 17:08:19] Production.INFO: count ==1280 [2025-04-12 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:08:06 - End Time 2025-04-12 17:08:06 [2025-04-12 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892988', 'tblTempUsageDetail_20' ) start [2025-04-12 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892988', 'tblTempUsageDetail_20' ) end [2025-04-12 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892988', 'tblTempVendorCDR_20' ) start [2025-04-12 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892988', 'tblTempVendorCDR_20' ) end [2025-04-12 17:08:19] Production.INFO: ProcessCDR(1,14892988,1,1,2) [2025-04-12 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892988', 'tblTempUsageDetail_20' ) start [2025-04-12 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892988', 'tblTempUsageDetail_20' ) end [2025-04-12 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:08:25] Production.INFO: ==16992== Releasing lock... [2025-04-12 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:08:25] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:09:05 [end_date_ymd] => 2025-04-12 17:09:05 [RateCDR] => 1 ) [2025-04-12 17:09: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-04-12 14:09:05' and `end` < '2025-04-12 17:09: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-04-12 17:09:18] Production.INFO: count ==1280 [2025-04-12 17:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:09:05 - End Time 2025-04-12 17:09:05 [2025-04-12 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892993', 'tblTempUsageDetail_20' ) start [2025-04-12 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892993', 'tblTempUsageDetail_20' ) end [2025-04-12 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892993', 'tblTempVendorCDR_20' ) start [2025-04-12 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892993', 'tblTempVendorCDR_20' ) end [2025-04-12 17:09:19] Production.INFO: ProcessCDR(1,14892993,1,1,2) [2025-04-12 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892993', 'tblTempUsageDetail_20' ) start [2025-04-12 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892993', 'tblTempUsageDetail_20' ) end [2025-04-12 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:09:24] Production.INFO: ==17118== Releasing lock... [2025-04-12 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:09:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:10:06 [end_date_ymd] => 2025-04-12 17:10:06 [RateCDR] => 1 ) [2025-04-12 17:10: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-04-12 14:10:06' and `end` < '2025-04-12 17:10: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-04-12 17:10:19] Production.INFO: count ==1297 [2025-04-12 17:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:10:06 - End Time 2025-04-12 17:10:06 [2025-04-12 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892999', 'tblTempUsageDetail_20' ) start [2025-04-12 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14892999', 'tblTempUsageDetail_20' ) end [2025-04-12 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892999', 'tblTempVendorCDR_20' ) start [2025-04-12 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14892999', 'tblTempVendorCDR_20' ) end [2025-04-12 17:10:19] Production.INFO: ProcessCDR(1,14892999,1,1,2) [2025-04-12 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14892999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14892999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14892999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14892999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892999', 'tblTempUsageDetail_20' ) start [2025-04-12 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14892999', 'tblTempUsageDetail_20' ) end [2025-04-12 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:10:24] Production.INFO: ==17215== Releasing lock... [2025-04-12 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:10:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:11:05 [end_date_ymd] => 2025-04-12 17:11:05 [RateCDR] => 1 ) [2025-04-12 17:11: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-04-12 14:11:05' and `end` < '2025-04-12 17:11: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-04-12 17:11:18] Production.INFO: count ==1301 [2025-04-12 17:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:11:05 - End Time 2025-04-12 17:11:05 [2025-04-12 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893004', 'tblTempUsageDetail_20' ) start [2025-04-12 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893004', 'tblTempUsageDetail_20' ) end [2025-04-12 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893004', 'tblTempVendorCDR_20' ) start [2025-04-12 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893004', 'tblTempVendorCDR_20' ) end [2025-04-12 17:11:18] Production.INFO: ProcessCDR(1,14893004,1,1,2) [2025-04-12 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893004', 'tblTempUsageDetail_20' ) start [2025-04-12 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893004', 'tblTempUsageDetail_20' ) end [2025-04-12 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:11:22] Production.INFO: ==17303== Releasing lock... [2025-04-12 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:12:05 [end_date_ymd] => 2025-04-12 17:12:05 [RateCDR] => 1 ) [2025-04-12 17:12: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-04-12 14:12:05' and `end` < '2025-04-12 17:12: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-04-12 17:12:18] Production.INFO: count ==1300 [2025-04-12 17:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:12:05 - End Time 2025-04-12 17:12:05 [2025-04-12 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893009', 'tblTempUsageDetail_20' ) start [2025-04-12 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893009', 'tblTempUsageDetail_20' ) end [2025-04-12 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893009', 'tblTempVendorCDR_20' ) start [2025-04-12 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893009', 'tblTempVendorCDR_20' ) end [2025-04-12 17:12:19] Production.INFO: ProcessCDR(1,14893009,1,1,2) [2025-04-12 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893009', 'tblTempUsageDetail_20' ) start [2025-04-12 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893009', 'tblTempUsageDetail_20' ) end [2025-04-12 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:12:22] Production.INFO: ==17387== Releasing lock... [2025-04-12 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:13:05 [end_date_ymd] => 2025-04-12 17:13:05 [RateCDR] => 1 ) [2025-04-12 17:13: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-04-12 14:13:05' and `end` < '2025-04-12 17:13: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-04-12 17:13:18] Production.INFO: count ==1299 [2025-04-12 17:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:13:05 - End Time 2025-04-12 17:13:05 [2025-04-12 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893014', 'tblTempUsageDetail_20' ) start [2025-04-12 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893014', 'tblTempUsageDetail_20' ) end [2025-04-12 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893014', 'tblTempVendorCDR_20' ) start [2025-04-12 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893014', 'tblTempVendorCDR_20' ) end [2025-04-12 17:13:18] Production.INFO: ProcessCDR(1,14893014,1,1,2) [2025-04-12 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893014', 'tblTempUsageDetail_20' ) start [2025-04-12 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893014', 'tblTempUsageDetail_20' ) end [2025-04-12 17:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:13:21] Production.INFO: ==17476== Releasing lock... [2025-04-12 17:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:14:06 [end_date_ymd] => 2025-04-12 17:14:06 [RateCDR] => 1 ) [2025-04-12 17:14: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-04-12 14:14:06' and `end` < '2025-04-12 17:14: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-04-12 17:14:19] Production.INFO: count ==1301 [2025-04-12 17:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:14:06 - End Time 2025-04-12 17:14:06 [2025-04-12 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893019', 'tblTempUsageDetail_20' ) start [2025-04-12 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893019', 'tblTempUsageDetail_20' ) end [2025-04-12 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893019', 'tblTempVendorCDR_20' ) start [2025-04-12 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893019', 'tblTempVendorCDR_20' ) end [2025-04-12 17:14:19] Production.INFO: ProcessCDR(1,14893019,1,1,2) [2025-04-12 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893019', 'tblTempUsageDetail_20' ) start [2025-04-12 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893019', 'tblTempUsageDetail_20' ) end [2025-04-12 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:14:24] Production.INFO: ==17568== Releasing lock... [2025-04-12 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:14:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:15:05 [end_date_ymd] => 2025-04-12 17:15:05 [RateCDR] => 1 ) [2025-04-12 17:15: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-04-12 14:15:05' and `end` < '2025-04-12 17:15: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-04-12 17:15:18] Production.INFO: count ==1302 [2025-04-12 17:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:15:05 - End Time 2025-04-12 17:15:05 [2025-04-12 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893024', 'tblTempUsageDetail_20' ) start [2025-04-12 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893024', 'tblTempUsageDetail_20' ) end [2025-04-12 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893024', 'tblTempVendorCDR_20' ) start [2025-04-12 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893024', 'tblTempVendorCDR_20' ) end [2025-04-12 17:15:18] Production.INFO: ProcessCDR(1,14893024,1,1,2) [2025-04-12 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893024', 'tblTempUsageDetail_20' ) start [2025-04-12 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893024', 'tblTempUsageDetail_20' ) end [2025-04-12 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:15:23] Production.INFO: ==17655== Releasing lock... [2025-04-12 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:15:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:16:06 [end_date_ymd] => 2025-04-12 17:16:06 [RateCDR] => 1 ) [2025-04-12 17:16: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-04-12 14:16:06' and `end` < '2025-04-12 17:16: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-04-12 17:16:19] Production.INFO: count ==1291 [2025-04-12 17:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:16:06 - End Time 2025-04-12 17:16:06 [2025-04-12 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893029', 'tblTempUsageDetail_20' ) start [2025-04-12 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893029', 'tblTempUsageDetail_20' ) end [2025-04-12 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893029', 'tblTempVendorCDR_20' ) start [2025-04-12 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893029', 'tblTempVendorCDR_20' ) end [2025-04-12 17:16:19] Production.INFO: ProcessCDR(1,14893029,1,1,2) [2025-04-12 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893029', 'tblTempUsageDetail_20' ) start [2025-04-12 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893029', 'tblTempUsageDetail_20' ) end [2025-04-12 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:16:24] Production.INFO: ==17742== Releasing lock... [2025-04-12 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:16:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:17:04 [end_date_ymd] => 2025-04-12 17:17:04 [RateCDR] => 1 ) [2025-04-12 17:17: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-04-12 14:17:04' and `end` < '2025-04-12 17:17: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-04-12 17:17:17] Production.INFO: count ==1289 [2025-04-12 17:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:17:04 - End Time 2025-04-12 17:17:04 [2025-04-12 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893034', 'tblTempUsageDetail_20' ) start [2025-04-12 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893034', 'tblTempUsageDetail_20' ) end [2025-04-12 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893034', 'tblTempVendorCDR_20' ) start [2025-04-12 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893034', 'tblTempVendorCDR_20' ) end [2025-04-12 17:17:18] Production.INFO: ProcessCDR(1,14893034,1,1,2) [2025-04-12 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893034', 'tblTempUsageDetail_20' ) start [2025-04-12 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893034', 'tblTempUsageDetail_20' ) end [2025-04-12 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:17:23] Production.INFO: ==17828== Releasing lock... [2025-04-12 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:17:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:18:05 [end_date_ymd] => 2025-04-12 17:18:05 [RateCDR] => 1 ) [2025-04-12 17:18: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-04-12 14:18:05' and `end` < '2025-04-12 17:18: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-04-12 17:18:18] Production.INFO: count ==1295 [2025-04-12 17:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:18:05 - End Time 2025-04-12 17:18:05 [2025-04-12 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893039', 'tblTempUsageDetail_20' ) start [2025-04-12 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893039', 'tblTempUsageDetail_20' ) end [2025-04-12 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893039', 'tblTempVendorCDR_20' ) start [2025-04-12 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893039', 'tblTempVendorCDR_20' ) end [2025-04-12 17:18:18] Production.INFO: ProcessCDR(1,14893039,1,1,2) [2025-04-12 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893039', 'tblTempUsageDetail_20' ) start [2025-04-12 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893039', 'tblTempUsageDetail_20' ) end [2025-04-12 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:18:24] Production.INFO: ==17934== Releasing lock... [2025-04-12 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:19:06 [end_date_ymd] => 2025-04-12 17:19:06 [RateCDR] => 1 ) [2025-04-12 17:19: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-04-12 14:19:06' and `end` < '2025-04-12 17:19: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-04-12 17:19:19] Production.INFO: count ==1297 [2025-04-12 17:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:19:06 - End Time 2025-04-12 17:19:06 [2025-04-12 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893044', 'tblTempUsageDetail_20' ) start [2025-04-12 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893044', 'tblTempUsageDetail_20' ) end [2025-04-12 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893044', 'tblTempVendorCDR_20' ) start [2025-04-12 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893044', 'tblTempVendorCDR_20' ) end [2025-04-12 17:19:19] Production.INFO: ProcessCDR(1,14893044,1,1,2) [2025-04-12 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893044', 'tblTempUsageDetail_20' ) start [2025-04-12 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893044', 'tblTempUsageDetail_20' ) end [2025-04-12 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:19:24] Production.INFO: ==18018== Releasing lock... [2025-04-12 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:19:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:20:06 [end_date_ymd] => 2025-04-12 17:20:06 [RateCDR] => 1 ) [2025-04-12 17:20: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-04-12 14:20:06' and `end` < '2025-04-12 17:20: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-04-12 17:20:19] Production.INFO: count ==1305 [2025-04-12 17:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:20:06 - End Time 2025-04-12 17:20:06 [2025-04-12 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893049', 'tblTempUsageDetail_20' ) start [2025-04-12 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893049', 'tblTempUsageDetail_20' ) end [2025-04-12 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893049', 'tblTempVendorCDR_20' ) start [2025-04-12 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893049', 'tblTempVendorCDR_20' ) end [2025-04-12 17:20:19] Production.INFO: ProcessCDR(1,14893049,1,1,2) [2025-04-12 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893049', 'tblTempUsageDetail_20' ) start [2025-04-12 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893049', 'tblTempUsageDetail_20' ) end [2025-04-12 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:20:24] Production.INFO: ==18118== Releasing lock... [2025-04-12 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:20:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:21:05 [end_date_ymd] => 2025-04-12 17:21:05 [RateCDR] => 1 ) [2025-04-12 17:21: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-04-12 14:21:05' and `end` < '2025-04-12 17:21: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-04-12 17:21:18] Production.INFO: count ==1330 [2025-04-12 17:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:21:05 - End Time 2025-04-12 17:21:05 [2025-04-12 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893055', 'tblTempUsageDetail_20' ) start [2025-04-12 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893055', 'tblTempUsageDetail_20' ) end [2025-04-12 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893055', 'tblTempVendorCDR_20' ) start [2025-04-12 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893055', 'tblTempVendorCDR_20' ) end [2025-04-12 17:21:18] Production.INFO: ProcessCDR(1,14893055,1,1,2) [2025-04-12 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893055', 'tblTempUsageDetail_20' ) start [2025-04-12 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893055', 'tblTempUsageDetail_20' ) end [2025-04-12 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:21:23] Production.INFO: ==18215== Releasing lock... [2025-04-12 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:21:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:22:05 [end_date_ymd] => 2025-04-12 17:22:05 [RateCDR] => 1 ) [2025-04-12 17:22: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-04-12 14:22:05' and `end` < '2025-04-12 17:22: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-04-12 17:22:18] Production.INFO: count ==1332 [2025-04-12 17:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:22:05 - End Time 2025-04-12 17:22:05 [2025-04-12 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893060', 'tblTempUsageDetail_20' ) start [2025-04-12 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893060', 'tblTempUsageDetail_20' ) end [2025-04-12 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893060', 'tblTempVendorCDR_20' ) start [2025-04-12 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893060', 'tblTempVendorCDR_20' ) end [2025-04-12 17:22:18] Production.INFO: ProcessCDR(1,14893060,1,1,2) [2025-04-12 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893060', 'tblTempUsageDetail_20' ) start [2025-04-12 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893060', 'tblTempUsageDetail_20' ) end [2025-04-12 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:22:23] Production.INFO: ==18308== Releasing lock... [2025-04-12 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:22:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:23:05 [end_date_ymd] => 2025-04-12 17:23:05 [RateCDR] => 1 ) [2025-04-12 17:23: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-04-12 14:23:05' and `end` < '2025-04-12 17:23: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-04-12 17:23:18] Production.INFO: count ==1332 [2025-04-12 17:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:23:05 - End Time 2025-04-12 17:23:05 [2025-04-12 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893065', 'tblTempUsageDetail_20' ) start [2025-04-12 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893065', 'tblTempUsageDetail_20' ) end [2025-04-12 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893065', 'tblTempVendorCDR_20' ) start [2025-04-12 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893065', 'tblTempVendorCDR_20' ) end [2025-04-12 17:23:19] Production.INFO: ProcessCDR(1,14893065,1,1,2) [2025-04-12 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893065', 'tblTempUsageDetail_20' ) start [2025-04-12 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893065', 'tblTempUsageDetail_20' ) end [2025-04-12 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:23:24] Production.INFO: ==18403== Releasing lock... [2025-04-12 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:23:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:24:05 [end_date_ymd] => 2025-04-12 17:24:05 [RateCDR] => 1 ) [2025-04-12 17:24: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-04-12 14:24:05' and `end` < '2025-04-12 17:24: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-04-12 17:24:18] Production.INFO: count ==1333 [2025-04-12 17:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:24:05 - End Time 2025-04-12 17:24:05 [2025-04-12 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893070', 'tblTempUsageDetail_20' ) start [2025-04-12 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893070', 'tblTempUsageDetail_20' ) end [2025-04-12 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893070', 'tblTempVendorCDR_20' ) start [2025-04-12 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893070', 'tblTempVendorCDR_20' ) end [2025-04-12 17:24:19] Production.INFO: ProcessCDR(1,14893070,1,1,2) [2025-04-12 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893070', 'tblTempUsageDetail_20' ) start [2025-04-12 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893070', 'tblTempUsageDetail_20' ) end [2025-04-12 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:24:24] Production.INFO: ==18522== Releasing lock... [2025-04-12 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:25:05 [end_date_ymd] => 2025-04-12 17:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 14:25:05' and `end` < '2025-04-12 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-04-12 17:25:18] Production.INFO: count ==1324 [2025-04-12 17:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:25:05 - End Time 2025-04-12 17:25:05 [2025-04-12 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893075', 'tblTempUsageDetail_20' ) start [2025-04-12 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893075', 'tblTempUsageDetail_20' ) end [2025-04-12 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893075', 'tblTempVendorCDR_20' ) start [2025-04-12 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893075', 'tblTempVendorCDR_20' ) end [2025-04-12 17:25:19] Production.INFO: ProcessCDR(1,14893075,1,1,2) [2025-04-12 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893075', 'tblTempUsageDetail_20' ) start [2025-04-12 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893075', 'tblTempUsageDetail_20' ) end [2025-04-12 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:25:24] Production.INFO: ==18620== Releasing lock... [2025-04-12 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:25:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:26:05 [end_date_ymd] => 2025-04-12 17:26:05 [RateCDR] => 1 ) [2025-04-12 17:26: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-04-12 14:26:05' and `end` < '2025-04-12 17:26: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-04-12 17:26:17] Production.INFO: count ==1316 [2025-04-12 17:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:26:05 - End Time 2025-04-12 17:26:05 [2025-04-12 17:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893080', 'tblTempUsageDetail_20' ) start [2025-04-12 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893080', 'tblTempUsageDetail_20' ) end [2025-04-12 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893080', 'tblTempVendorCDR_20' ) start [2025-04-12 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893080', 'tblTempVendorCDR_20' ) end [2025-04-12 17:26:18] Production.INFO: ProcessCDR(1,14893080,1,1,2) [2025-04-12 17:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893080', 'tblTempUsageDetail_20' ) start [2025-04-12 17:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893080', 'tblTempUsageDetail_20' ) end [2025-04-12 17:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:26:21] Production.INFO: ==18705== Releasing lock... [2025-04-12 17:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:26:21] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:27:05 [end_date_ymd] => 2025-04-12 17:27:05 [RateCDR] => 1 ) [2025-04-12 17:27: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-04-12 14:27:05' and `end` < '2025-04-12 17:27: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-04-12 17:27:18] Production.INFO: count ==1314 [2025-04-12 17:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:27:05 - End Time 2025-04-12 17:27:05 [2025-04-12 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893085', 'tblTempUsageDetail_20' ) start [2025-04-12 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893085', 'tblTempUsageDetail_20' ) end [2025-04-12 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893085', 'tblTempVendorCDR_20' ) start [2025-04-12 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893085', 'tblTempVendorCDR_20' ) end [2025-04-12 17:27:19] Production.INFO: ProcessCDR(1,14893085,1,1,2) [2025-04-12 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893085', 'tblTempUsageDetail_20' ) start [2025-04-12 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893085', 'tblTempUsageDetail_20' ) end [2025-04-12 17:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:27:23] Production.INFO: ==18800== Releasing lock... [2025-04-12 17:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:27:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:28:05 [end_date_ymd] => 2025-04-12 17:28:05 [RateCDR] => 1 ) [2025-04-12 17:28: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-04-12 14:28:05' and `end` < '2025-04-12 17:28: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-04-12 17:28:18] Production.INFO: count ==1313 [2025-04-12 17:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:28:05 - End Time 2025-04-12 17:28:05 [2025-04-12 17:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893090', 'tblTempUsageDetail_20' ) start [2025-04-12 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893090', 'tblTempUsageDetail_20' ) end [2025-04-12 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893090', 'tblTempVendorCDR_20' ) start [2025-04-12 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893090', 'tblTempVendorCDR_20' ) end [2025-04-12 17:28:18] Production.INFO: ProcessCDR(1,14893090,1,1,2) [2025-04-12 17:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893090', 'tblTempUsageDetail_20' ) start [2025-04-12 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893090', 'tblTempUsageDetail_20' ) end [2025-04-12 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:28:22] Production.INFO: ==18894== Releasing lock... [2025-04-12 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:28:22] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:29:06 [end_date_ymd] => 2025-04-12 17:29:06 [RateCDR] => 1 ) [2025-04-12 17:29: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-04-12 14:29:06' and `end` < '2025-04-12 17:29: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-04-12 17:29:18] Production.INFO: count ==1313 [2025-04-12 17:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:29:06 - End Time 2025-04-12 17:29:06 [2025-04-12 17:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893095', 'tblTempUsageDetail_20' ) start [2025-04-12 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893095', 'tblTempUsageDetail_20' ) end [2025-04-12 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893095', 'tblTempVendorCDR_20' ) start [2025-04-12 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893095', 'tblTempVendorCDR_20' ) end [2025-04-12 17:29:19] Production.INFO: ProcessCDR(1,14893095,1,1,2) [2025-04-12 17:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893095', 'tblTempUsageDetail_20' ) start [2025-04-12 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893095', 'tblTempUsageDetail_20' ) end [2025-04-12 17:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:29:24] Production.INFO: ==18982== Releasing lock... [2025-04-12 17:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:29:24] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:30:06 [end_date_ymd] => 2025-04-12 17:30:06 [RateCDR] => 1 ) [2025-04-12 17:30: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-04-12 14:30:06' and `end` < '2025-04-12 17:30: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-04-12 17:30:19] Production.INFO: count ==1309 [2025-04-12 17:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:30:06 - End Time 2025-04-12 17:30:06 [2025-04-12 17:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893100', 'tblTempUsageDetail_20' ) start [2025-04-12 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893100', 'tblTempUsageDetail_20' ) end [2025-04-12 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893100', 'tblTempVendorCDR_20' ) start [2025-04-12 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893100', 'tblTempVendorCDR_20' ) end [2025-04-12 17:30:19] Production.INFO: ProcessCDR(1,14893100,1,1,2) [2025-04-12 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893100', 'tblTempUsageDetail_20' ) start [2025-04-12 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893100', 'tblTempUsageDetail_20' ) end [2025-04-12 17:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:30:24] Production.INFO: ==19072== Releasing lock... [2025-04-12 17:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:30:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:31:05 [end_date_ymd] => 2025-04-12 17:31:05 [RateCDR] => 1 ) [2025-04-12 17:31: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-04-12 14:31:05' and `end` < '2025-04-12 17:31: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-04-12 17:31:18] Production.INFO: count ==1293 [2025-04-12 17:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:31:05 - End Time 2025-04-12 17:31:05 [2025-04-12 17:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893106', 'tblTempUsageDetail_20' ) start [2025-04-12 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893106', 'tblTempUsageDetail_20' ) end [2025-04-12 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893106', 'tblTempVendorCDR_20' ) start [2025-04-12 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893106', 'tblTempVendorCDR_20' ) end [2025-04-12 17:31:19] Production.INFO: ProcessCDR(1,14893106,1,1,2) [2025-04-12 17:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893106', 'tblTempUsageDetail_20' ) start [2025-04-12 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893106', 'tblTempUsageDetail_20' ) end [2025-04-12 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:31:24] Production.INFO: ==19157== Releasing lock... [2025-04-12 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:31:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:32:05 [end_date_ymd] => 2025-04-12 17:32:05 [RateCDR] => 1 ) [2025-04-12 17:32: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-04-12 14:32:05' and `end` < '2025-04-12 17:32: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-04-12 17:32:18] Production.INFO: count ==1284 [2025-04-12 17:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:32:05 - End Time 2025-04-12 17:32:05 [2025-04-12 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893111', 'tblTempUsageDetail_20' ) start [2025-04-12 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893111', 'tblTempUsageDetail_20' ) end [2025-04-12 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893111', 'tblTempVendorCDR_20' ) start [2025-04-12 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893111', 'tblTempVendorCDR_20' ) end [2025-04-12 17:32:18] Production.INFO: ProcessCDR(1,14893111,1,1,2) [2025-04-12 17:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893111', 'tblTempUsageDetail_20' ) start [2025-04-12 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893111', 'tblTempUsageDetail_20' ) end [2025-04-12 17:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:32:24] Production.INFO: ==19249== Releasing lock... [2025-04-12 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:32:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:33:05 [end_date_ymd] => 2025-04-12 17:33:05 [RateCDR] => 1 ) [2025-04-12 17:33: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-04-12 14:33:05' and `end` < '2025-04-12 17:33: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-04-12 17:33:18] Production.INFO: count ==1286 [2025-04-12 17:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:33:05 - End Time 2025-04-12 17:33:05 [2025-04-12 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893116', 'tblTempUsageDetail_20' ) start [2025-04-12 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893116', 'tblTempUsageDetail_20' ) end [2025-04-12 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893116', 'tblTempVendorCDR_20' ) start [2025-04-12 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893116', 'tblTempVendorCDR_20' ) end [2025-04-12 17:33:18] Production.INFO: ProcessCDR(1,14893116,1,1,2) [2025-04-12 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893116', 'tblTempUsageDetail_20' ) start [2025-04-12 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893116', 'tblTempUsageDetail_20' ) end [2025-04-12 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:33:23] Production.INFO: ==19345== Releasing lock... [2025-04-12 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:34:05 [end_date_ymd] => 2025-04-12 17:34:05 [RateCDR] => 1 ) [2025-04-12 17:34: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-04-12 14:34:05' and `end` < '2025-04-12 17:34: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-04-12 17:34:18] Production.INFO: count ==1285 [2025-04-12 17:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:34:05 - End Time 2025-04-12 17:34:05 [2025-04-12 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893121', 'tblTempUsageDetail_20' ) start [2025-04-12 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893121', 'tblTempUsageDetail_20' ) end [2025-04-12 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893121', 'tblTempVendorCDR_20' ) start [2025-04-12 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893121', 'tblTempVendorCDR_20' ) end [2025-04-12 17:34:18] Production.INFO: ProcessCDR(1,14893121,1,1,2) [2025-04-12 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893121', 'tblTempUsageDetail_20' ) start [2025-04-12 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893121', 'tblTempUsageDetail_20' ) end [2025-04-12 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:34:23] Production.INFO: ==19438== Releasing lock... [2025-04-12 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:34:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:35:04 [end_date_ymd] => 2025-04-12 17:35:04 [RateCDR] => 1 ) [2025-04-12 17:35: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-04-12 14:35:04' and `end` < '2025-04-12 17:35: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-04-12 17:35:18] Production.INFO: count ==1286 [2025-04-12 17:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:35:04 - End Time 2025-04-12 17:35:04 [2025-04-12 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893126', 'tblTempUsageDetail_20' ) start [2025-04-12 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893126', 'tblTempUsageDetail_20' ) end [2025-04-12 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893126', 'tblTempVendorCDR_20' ) start [2025-04-12 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893126', 'tblTempVendorCDR_20' ) end [2025-04-12 17:35:18] Production.INFO: ProcessCDR(1,14893126,1,1,2) [2025-04-12 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893126', 'tblTempUsageDetail_20' ) start [2025-04-12 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893126', 'tblTempUsageDetail_20' ) end [2025-04-12 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:35:23] Production.INFO: ==19535== Releasing lock... [2025-04-12 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:36:05 [end_date_ymd] => 2025-04-12 17:36:05 [RateCDR] => 1 ) [2025-04-12 17:36: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-04-12 14:36:05' and `end` < '2025-04-12 17:36: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-04-12 17:36:18] Production.INFO: count ==1280 [2025-04-12 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:36:05 - End Time 2025-04-12 17:36:05 [2025-04-12 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893131', 'tblTempUsageDetail_20' ) start [2025-04-12 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893131', 'tblTempUsageDetail_20' ) end [2025-04-12 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893131', 'tblTempVendorCDR_20' ) start [2025-04-12 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893131', 'tblTempVendorCDR_20' ) end [2025-04-12 17:36:19] Production.INFO: ProcessCDR(1,14893131,1,1,2) [2025-04-12 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893131', 'tblTempUsageDetail_20' ) start [2025-04-12 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893131', 'tblTempUsageDetail_20' ) end [2025-04-12 17:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:36:22] Production.INFO: ==19616== Releasing lock... [2025-04-12 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:37:05 [end_date_ymd] => 2025-04-12 17:37:05 [RateCDR] => 1 ) [2025-04-12 17:37: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-04-12 14:37:05' and `end` < '2025-04-12 17:37: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-04-12 17:37:18] Production.INFO: count ==1285 [2025-04-12 17:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:37:05 - End Time 2025-04-12 17:37:05 [2025-04-12 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893136', 'tblTempUsageDetail_20' ) start [2025-04-12 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893136', 'tblTempUsageDetail_20' ) end [2025-04-12 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893136', 'tblTempVendorCDR_20' ) start [2025-04-12 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893136', 'tblTempVendorCDR_20' ) end [2025-04-12 17:37:18] Production.INFO: ProcessCDR(1,14893136,1,1,2) [2025-04-12 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893136', 'tblTempUsageDetail_20' ) start [2025-04-12 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893136', 'tblTempUsageDetail_20' ) end [2025-04-12 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:37:24] Production.INFO: ==19713== Releasing lock... [2025-04-12 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:37:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:38:05 [end_date_ymd] => 2025-04-12 17:38:05 [RateCDR] => 1 ) [2025-04-12 17:38: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-04-12 14:38:05' and `end` < '2025-04-12 17:38: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-04-12 17:38:18] Production.INFO: count ==1273 [2025-04-12 17:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:38:05 - End Time 2025-04-12 17:38:05 [2025-04-12 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893141', 'tblTempUsageDetail_20' ) start [2025-04-12 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893141', 'tblTempUsageDetail_20' ) end [2025-04-12 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893141', 'tblTempVendorCDR_20' ) start [2025-04-12 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893141', 'tblTempVendorCDR_20' ) end [2025-04-12 17:38:19] Production.INFO: ProcessCDR(1,14893141,1,1,2) [2025-04-12 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893141', 'tblTempUsageDetail_20' ) start [2025-04-12 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893141', 'tblTempUsageDetail_20' ) end [2025-04-12 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:38:22] Production.INFO: ==19799== Releasing lock... [2025-04-12 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:39:05 [end_date_ymd] => 2025-04-12 17:39:05 [RateCDR] => 1 ) [2025-04-12 17:39: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-04-12 14:39:05' and `end` < '2025-04-12 17:39: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-04-12 17:39:18] Production.INFO: count ==1275 [2025-04-12 17:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:39:05 - End Time 2025-04-12 17:39:05 [2025-04-12 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893146', 'tblTempUsageDetail_20' ) start [2025-04-12 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893146', 'tblTempUsageDetail_20' ) end [2025-04-12 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893146', 'tblTempVendorCDR_20' ) start [2025-04-12 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893146', 'tblTempVendorCDR_20' ) end [2025-04-12 17:39:19] Production.INFO: ProcessCDR(1,14893146,1,1,2) [2025-04-12 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893146', 'tblTempUsageDetail_20' ) start [2025-04-12 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893146', 'tblTempUsageDetail_20' ) end [2025-04-12 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:39:23] Production.INFO: ==19939== Releasing lock... [2025-04-12 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:39:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:40:06 [end_date_ymd] => 2025-04-12 17:40:06 [RateCDR] => 1 ) [2025-04-12 17:40: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-04-12 14:40:06' and `end` < '2025-04-12 17:40: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-04-12 17:40:19] Production.INFO: count ==1274 [2025-04-12 17:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:40:06 - End Time 2025-04-12 17:40:06 [2025-04-12 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893152', 'tblTempUsageDetail_20' ) start [2025-04-12 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893152', 'tblTempUsageDetail_20' ) end [2025-04-12 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893152', 'tblTempVendorCDR_20' ) start [2025-04-12 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893152', 'tblTempVendorCDR_20' ) end [2025-04-12 17:40:19] Production.INFO: ProcessCDR(1,14893152,1,1,2) [2025-04-12 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893152', 'tblTempUsageDetail_20' ) start [2025-04-12 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893152', 'tblTempUsageDetail_20' ) end [2025-04-12 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:40:24] Production.INFO: ==20032== Releasing lock... [2025-04-12 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:40:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:41:05 [end_date_ymd] => 2025-04-12 17:41:05 [RateCDR] => 1 ) [2025-04-12 17:41: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-04-12 14:41:05' and `end` < '2025-04-12 17:41: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-04-12 17:41:18] Production.INFO: count ==1308 [2025-04-12 17:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:41:05 - End Time 2025-04-12 17:41:05 [2025-04-12 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893157', 'tblTempUsageDetail_20' ) start [2025-04-12 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893157', 'tblTempUsageDetail_20' ) end [2025-04-12 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893157', 'tblTempVendorCDR_20' ) start [2025-04-12 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893157', 'tblTempVendorCDR_20' ) end [2025-04-12 17:41:18] Production.INFO: ProcessCDR(1,14893157,1,1,2) [2025-04-12 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893157', 'tblTempUsageDetail_20' ) start [2025-04-12 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893157', 'tblTempUsageDetail_20' ) end [2025-04-12 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:41:23] Production.INFO: ==20117== Releasing lock... [2025-04-12 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:41:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:42:05 [end_date_ymd] => 2025-04-12 17:42:05 [RateCDR] => 1 ) [2025-04-12 17:42: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-04-12 14:42:05' and `end` < '2025-04-12 17:42: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-04-12 17:42:18] Production.INFO: count ==1311 [2025-04-12 17:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:42:05 - End Time 2025-04-12 17:42:05 [2025-04-12 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893162', 'tblTempUsageDetail_20' ) start [2025-04-12 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893162', 'tblTempUsageDetail_20' ) end [2025-04-12 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893162', 'tblTempVendorCDR_20' ) start [2025-04-12 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893162', 'tblTempVendorCDR_20' ) end [2025-04-12 17:42:19] Production.INFO: ProcessCDR(1,14893162,1,1,2) [2025-04-12 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893162', 'tblTempUsageDetail_20' ) start [2025-04-12 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893162', 'tblTempUsageDetail_20' ) end [2025-04-12 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:42:23] Production.INFO: ==20208== Releasing lock... [2025-04-12 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:42:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:43:05 [end_date_ymd] => 2025-04-12 17:43:05 [RateCDR] => 1 ) [2025-04-12 17:43: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-04-12 14:43:05' and `end` < '2025-04-12 17:43: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-04-12 17:43:18] Production.INFO: count ==1313 [2025-04-12 17:43:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:43:05 - End Time 2025-04-12 17:43:05 [2025-04-12 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893167', 'tblTempUsageDetail_20' ) start [2025-04-12 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893167', 'tblTempUsageDetail_20' ) end [2025-04-12 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893167', 'tblTempVendorCDR_20' ) start [2025-04-12 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893167', 'tblTempVendorCDR_20' ) end [2025-04-12 17:43:19] Production.INFO: ProcessCDR(1,14893167,1,1,2) [2025-04-12 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893167', 'tblTempUsageDetail_20' ) start [2025-04-12 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893167', 'tblTempUsageDetail_20' ) end [2025-04-12 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:43:24] Production.INFO: ==20287== Releasing lock... [2025-04-12 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:43:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:44:05 [end_date_ymd] => 2025-04-12 17:44:05 [RateCDR] => 1 ) [2025-04-12 17:44: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-04-12 14:44:05' and `end` < '2025-04-12 17:44: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-04-12 17:44:18] Production.INFO: count ==1312 [2025-04-12 17:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:44:05 - End Time 2025-04-12 17:44:05 [2025-04-12 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893172', 'tblTempUsageDetail_20' ) start [2025-04-12 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893172', 'tblTempUsageDetail_20' ) end [2025-04-12 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893172', 'tblTempVendorCDR_20' ) start [2025-04-12 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893172', 'tblTempVendorCDR_20' ) end [2025-04-12 17:44:19] Production.INFO: ProcessCDR(1,14893172,1,1,2) [2025-04-12 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893172', 'tblTempUsageDetail_20' ) start [2025-04-12 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893172', 'tblTempUsageDetail_20' ) end [2025-04-12 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:44:22] Production.INFO: ==20383== Releasing lock... [2025-04-12 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:44:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:45:05 [end_date_ymd] => 2025-04-12 17:45:05 [RateCDR] => 1 ) [2025-04-12 17:45: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-04-12 14:45:05' and `end` < '2025-04-12 17:45: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-04-12 17:45:18] Production.INFO: count ==1312 [2025-04-12 17:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:45:05 - End Time 2025-04-12 17:45:05 [2025-04-12 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893177', 'tblTempUsageDetail_20' ) start [2025-04-12 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893177', 'tblTempUsageDetail_20' ) end [2025-04-12 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893177', 'tblTempVendorCDR_20' ) start [2025-04-12 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893177', 'tblTempVendorCDR_20' ) end [2025-04-12 17:45:18] Production.INFO: ProcessCDR(1,14893177,1,1,2) [2025-04-12 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893177', 'tblTempUsageDetail_20' ) start [2025-04-12 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893177', 'tblTempUsageDetail_20' ) end [2025-04-12 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:45:24] Production.INFO: ==20478== Releasing lock... [2025-04-12 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:45:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:46:05 [end_date_ymd] => 2025-04-12 17:46:05 [RateCDR] => 1 ) [2025-04-12 17:46: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-04-12 14:46:05' and `end` < '2025-04-12 17:46: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-04-12 17:46:18] Production.INFO: count ==1318 [2025-04-12 17:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:46:05 - End Time 2025-04-12 17:46:05 [2025-04-12 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893182', 'tblTempUsageDetail_20' ) start [2025-04-12 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893182', 'tblTempUsageDetail_20' ) end [2025-04-12 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893182', 'tblTempVendorCDR_20' ) start [2025-04-12 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893182', 'tblTempVendorCDR_20' ) end [2025-04-12 17:46:18] Production.INFO: ProcessCDR(1,14893182,1,1,2) [2025-04-12 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893182', 'tblTempUsageDetail_20' ) start [2025-04-12 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893182', 'tblTempUsageDetail_20' ) end [2025-04-12 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:46:23] Production.INFO: ==20562== Releasing lock... [2025-04-12 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:46:23] Production.INFO: 38 MB #Memory Used# [2025-04-12 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:47:05 [end_date_ymd] => 2025-04-12 17:47:05 [RateCDR] => 1 ) [2025-04-12 17:47: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-04-12 14:47:05' and `end` < '2025-04-12 17:47: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-04-12 17:47:18] Production.INFO: count ==1386 [2025-04-12 17:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:47:05 - End Time 2025-04-12 17:47:05 [2025-04-12 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893187', 'tblTempUsageDetail_20' ) start [2025-04-12 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893187', 'tblTempUsageDetail_20' ) end [2025-04-12 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893187', 'tblTempVendorCDR_20' ) start [2025-04-12 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893187', 'tblTempVendorCDR_20' ) end [2025-04-12 17:47:18] Production.INFO: ProcessCDR(1,14893187,1,1,2) [2025-04-12 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893187', 'tblTempUsageDetail_20' ) start [2025-04-12 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893187', 'tblTempUsageDetail_20' ) end [2025-04-12 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:47:24] Production.INFO: ==20651== Releasing lock... [2025-04-12 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:47:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:48:05 [end_date_ymd] => 2025-04-12 17:48:05 [RateCDR] => 1 ) [2025-04-12 17:48: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-04-12 14:48:05' and `end` < '2025-04-12 17:48: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-04-12 17:48:18] Production.INFO: count ==1397 [2025-04-12 17:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:48:05 - End Time 2025-04-12 17:48:05 [2025-04-12 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893192', 'tblTempUsageDetail_20' ) start [2025-04-12 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893192', 'tblTempUsageDetail_20' ) end [2025-04-12 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893192', 'tblTempVendorCDR_20' ) start [2025-04-12 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893192', 'tblTempVendorCDR_20' ) end [2025-04-12 17:48:18] Production.INFO: ProcessCDR(1,14893192,1,1,2) [2025-04-12 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893192', 'tblTempUsageDetail_20' ) start [2025-04-12 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893192', 'tblTempUsageDetail_20' ) end [2025-04-12 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:48:23] Production.INFO: ==20740== Releasing lock... [2025-04-12 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:48:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:49:05 [end_date_ymd] => 2025-04-12 17:49:05 [RateCDR] => 1 ) [2025-04-12 17:49: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-04-12 14:49:05' and `end` < '2025-04-12 17:49: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-04-12 17:49:18] Production.INFO: count ==1416 [2025-04-12 17:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:49:05 - End Time 2025-04-12 17:49:05 [2025-04-12 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893197', 'tblTempUsageDetail_20' ) start [2025-04-12 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893197', 'tblTempUsageDetail_20' ) end [2025-04-12 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893197', 'tblTempVendorCDR_20' ) start [2025-04-12 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893197', 'tblTempVendorCDR_20' ) end [2025-04-12 17:49:18] Production.INFO: ProcessCDR(1,14893197,1,1,2) [2025-04-12 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893197', 'tblTempUsageDetail_20' ) start [2025-04-12 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893197', 'tblTempUsageDetail_20' ) end [2025-04-12 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:49:22] Production.INFO: ==20830== Releasing lock... [2025-04-12 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:49:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:50:06 [end_date_ymd] => 2025-04-12 17:50:06 [RateCDR] => 1 ) [2025-04-12 17:50: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-04-12 14:50:06' and `end` < '2025-04-12 17:50: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-04-12 17:50:20] Production.INFO: count ==1418 [2025-04-12 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-12 14:50:06 - End Time 2025-04-12 17:50:06 [2025-04-12 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893203', 'tblTempUsageDetail_20' ) start [2025-04-12 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893203', 'tblTempUsageDetail_20' ) end [2025-04-12 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893203', 'tblTempVendorCDR_20' ) start [2025-04-12 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893203', 'tblTempVendorCDR_20' ) end [2025-04-12 17:50:20] Production.INFO: ProcessCDR(1,14893203,1,1,2) [2025-04-12 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893203', 'tblTempUsageDetail_20' ) start [2025-04-12 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893203', 'tblTempUsageDetail_20' ) end [2025-04-12 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:50:24] Production.INFO: ==20937== Releasing lock... [2025-04-12 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:51:05 [end_date_ymd] => 2025-04-12 17:51:05 [RateCDR] => 1 ) [2025-04-12 17:51: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-04-12 14:51:05' and `end` < '2025-04-12 17:51: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-04-12 17:51:18] Production.INFO: count ==1465 [2025-04-12 17:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:51:05 - End Time 2025-04-12 17:51:05 [2025-04-12 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893208', 'tblTempUsageDetail_20' ) start [2025-04-12 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893208', 'tblTempUsageDetail_20' ) end [2025-04-12 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893208', 'tblTempVendorCDR_20' ) start [2025-04-12 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893208', 'tblTempVendorCDR_20' ) end [2025-04-12 17:51:19] Production.INFO: ProcessCDR(1,14893208,1,1,2) [2025-04-12 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893208', 'tblTempUsageDetail_20' ) start [2025-04-12 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893208', 'tblTempUsageDetail_20' ) end [2025-04-12 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:51:22] Production.INFO: ==21028== Releasing lock... [2025-04-12 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:52:05 [end_date_ymd] => 2025-04-12 17:52:05 [RateCDR] => 1 ) [2025-04-12 17:52: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-04-12 14:52:05' and `end` < '2025-04-12 17:52: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-04-12 17:52:18] Production.INFO: count ==1466 [2025-04-12 17:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:52:05 - End Time 2025-04-12 17:52:05 [2025-04-12 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893213', 'tblTempUsageDetail_20' ) start [2025-04-12 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893213', 'tblTempUsageDetail_20' ) end [2025-04-12 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893213', 'tblTempVendorCDR_20' ) start [2025-04-12 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893213', 'tblTempVendorCDR_20' ) end [2025-04-12 17:52:18] Production.INFO: ProcessCDR(1,14893213,1,1,2) [2025-04-12 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893213', 'tblTempUsageDetail_20' ) start [2025-04-12 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893213', 'tblTempUsageDetail_20' ) end [2025-04-12 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:52:24] Production.INFO: ==21120== Releasing lock... [2025-04-12 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:52:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:53:06 [end_date_ymd] => 2025-04-12 17:53:06 [RateCDR] => 1 ) [2025-04-12 17:53: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-04-12 14:53:06' and `end` < '2025-04-12 17:53: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-04-12 17:53:19] Production.INFO: count ==1509 [2025-04-12 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:53:06 - End Time 2025-04-12 17:53:06 [2025-04-12 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893218', 'tblTempUsageDetail_20' ) start [2025-04-12 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893218', 'tblTempUsageDetail_20' ) end [2025-04-12 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893218', 'tblTempVendorCDR_20' ) start [2025-04-12 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893218', 'tblTempVendorCDR_20' ) end [2025-04-12 17:53:19] Production.INFO: ProcessCDR(1,14893218,1,1,2) [2025-04-12 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893218', 'tblTempUsageDetail_20' ) start [2025-04-12 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893218', 'tblTempUsageDetail_20' ) end [2025-04-12 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:53:22] Production.INFO: ==21205== Releasing lock... [2025-04-12 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:54:06 [end_date_ymd] => 2025-04-12 17:54:06 [RateCDR] => 1 ) [2025-04-12 17:54: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-04-12 14:54:06' and `end` < '2025-04-12 17:54: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-04-12 17:54:19] Production.INFO: count ==1505 [2025-04-12 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:54:06 - End Time 2025-04-12 17:54:06 [2025-04-12 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893223', 'tblTempUsageDetail_20' ) start [2025-04-12 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893223', 'tblTempUsageDetail_20' ) end [2025-04-12 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893223', 'tblTempVendorCDR_20' ) start [2025-04-12 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893223', 'tblTempVendorCDR_20' ) end [2025-04-12 17:54:19] Production.INFO: ProcessCDR(1,14893223,1,1,2) [2025-04-12 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893223', 'tblTempUsageDetail_20' ) start [2025-04-12 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893223', 'tblTempUsageDetail_20' ) end [2025-04-12 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:54:22] Production.INFO: ==21288== Releasing lock... [2025-04-12 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:55:05 [end_date_ymd] => 2025-04-12 17:55:05 [RateCDR] => 1 ) [2025-04-12 17:55: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-04-12 14:55:05' and `end` < '2025-04-12 17:55: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-04-12 17:55:18] Production.INFO: count ==1516 [2025-04-12 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:55:05 - End Time 2025-04-12 17:55:05 [2025-04-12 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893228', 'tblTempUsageDetail_20' ) start [2025-04-12 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893228', 'tblTempUsageDetail_20' ) end [2025-04-12 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893228', 'tblTempVendorCDR_20' ) start [2025-04-12 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893228', 'tblTempVendorCDR_20' ) end [2025-04-12 17:55:19] Production.INFO: ProcessCDR(1,14893228,1,1,2) [2025-04-12 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893228', 'tblTempUsageDetail_20' ) start [2025-04-12 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893228', 'tblTempUsageDetail_20' ) end [2025-04-12 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:55:23] Production.INFO: ==21424== Releasing lock... [2025-04-12 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:55:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:56:06 [end_date_ymd] => 2025-04-12 17:56:06 [RateCDR] => 1 ) [2025-04-12 17:56: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-04-12 14:56:06' and `end` < '2025-04-12 17:56: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-04-12 17:56:19] Production.INFO: count ==1514 [2025-04-12 17:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:56:06 - End Time 2025-04-12 17:56:06 [2025-04-12 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893233', 'tblTempUsageDetail_20' ) start [2025-04-12 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893233', 'tblTempUsageDetail_20' ) end [2025-04-12 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893233', 'tblTempVendorCDR_20' ) start [2025-04-12 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893233', 'tblTempVendorCDR_20' ) end [2025-04-12 17:56:19] Production.INFO: ProcessCDR(1,14893233,1,1,2) [2025-04-12 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893233', 'tblTempUsageDetail_20' ) start [2025-04-12 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893233', 'tblTempUsageDetail_20' ) end [2025-04-12 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:56:24] Production.INFO: ==21517== Releasing lock... [2025-04-12 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:56:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:57:05 [end_date_ymd] => 2025-04-12 17:57:05 [RateCDR] => 1 ) [2025-04-12 17:57: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-04-12 14:57:05' and `end` < '2025-04-12 17:57: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-04-12 17:57:18] Production.INFO: count ==1529 [2025-04-12 17:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 14:57:05 - End Time 2025-04-12 17:57:05 [2025-04-12 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893238', 'tblTempUsageDetail_20' ) start [2025-04-12 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893238', 'tblTempUsageDetail_20' ) end [2025-04-12 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893238', 'tblTempVendorCDR_20' ) start [2025-04-12 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893238', 'tblTempVendorCDR_20' ) end [2025-04-12 17:57:18] Production.INFO: ProcessCDR(1,14893238,1,1,2) [2025-04-12 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893238', 'tblTempUsageDetail_20' ) start [2025-04-12 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893238', 'tblTempUsageDetail_20' ) end [2025-04-12 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:57:24] Production.INFO: ==21604== Releasing lock... [2025-04-12 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:57:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 17:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:58:07 [end_date_ymd] => 2025-04-12 17:58:07 [RateCDR] => 1 ) [2025-04-12 17:58:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 14:58:07' and `end` < '2025-04-12 17:58:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 17:58:20] Production.INFO: count ==1531 [2025-04-12 17:58:20] Production.ERROR: pbx CDR StartTime 2025-04-12 14:58:07 - End Time 2025-04-12 17:58:07 [2025-04-12 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893243', 'tblTempUsageDetail_20' ) start [2025-04-12 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893243', 'tblTempUsageDetail_20' ) end [2025-04-12 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893243', 'tblTempVendorCDR_20' ) start [2025-04-12 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893243', 'tblTempVendorCDR_20' ) end [2025-04-12 17:58:20] Production.INFO: ProcessCDR(1,14893243,1,1,2) [2025-04-12 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893243', 'tblTempUsageDetail_20' ) start [2025-04-12 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893243', 'tblTempUsageDetail_20' ) end [2025-04-12 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:58:25] Production.INFO: ==21692== Releasing lock... [2025-04-12 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:58:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 14:59:05 [end_date_ymd] => 2025-04-12 17:59:05 [RateCDR] => 1 ) [2025-04-12 17:59: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-04-12 14:59:05' and `end` < '2025-04-12 17:59: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-04-12 17:59:18] Production.INFO: count ==1533 [2025-04-12 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 14:59:05 - End Time 2025-04-12 17:59:05 [2025-04-12 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893248', 'tblTempUsageDetail_20' ) start [2025-04-12 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893248', 'tblTempUsageDetail_20' ) end [2025-04-12 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893248', 'tblTempVendorCDR_20' ) start [2025-04-12 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893248', 'tblTempVendorCDR_20' ) end [2025-04-12 17:59:19] Production.INFO: ProcessCDR(1,14893248,1,1,2) [2025-04-12 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893248', 'tblTempUsageDetail_20' ) start [2025-04-12 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893248', 'tblTempUsageDetail_20' ) end [2025-04-12 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 17:59:23] Production.INFO: ==21778== Releasing lock... [2025-04-12 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 17:59:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:00:06 [end_date_ymd] => 2025-04-12 18:00:06 [RateCDR] => 1 ) [2025-04-12 18:00: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-04-12 15:00:06' and `end` < '2025-04-12 18:00: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-04-12 18:00:19] Production.INFO: count ==1534 [2025-04-12 18:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:00:06 - End Time 2025-04-12 18:00:06 [2025-04-12 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893254', 'tblTempUsageDetail_20' ) start [2025-04-12 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893254', 'tblTempUsageDetail_20' ) end [2025-04-12 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893254', 'tblTempVendorCDR_20' ) start [2025-04-12 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893254', 'tblTempVendorCDR_20' ) end [2025-04-12 18:00:19] Production.INFO: ProcessCDR(1,14893254,1,1,2) [2025-04-12 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893254', 'tblTempUsageDetail_20' ) start [2025-04-12 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893254', 'tblTempUsageDetail_20' ) end [2025-04-12 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:00:24] Production.INFO: ==21877== Releasing lock... [2025-04-12 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:00:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:01:06 [end_date_ymd] => 2025-04-12 18:01:06 [RateCDR] => 1 ) [2025-04-12 18:01: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-04-12 15:01:06' and `end` < '2025-04-12 18:01: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-04-12 18:01:19] Production.INFO: count ==1556 [2025-04-12 18:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:01:06 - End Time 2025-04-12 18:01:06 [2025-04-12 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893259', 'tblTempUsageDetail_20' ) start [2025-04-12 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893259', 'tblTempUsageDetail_20' ) end [2025-04-12 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893259', 'tblTempVendorCDR_20' ) start [2025-04-12 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893259', 'tblTempVendorCDR_20' ) end [2025-04-12 18:01:19] Production.INFO: ProcessCDR(1,14893259,1,1,2) [2025-04-12 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893259', 'tblTempUsageDetail_20' ) start [2025-04-12 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893259', 'tblTempUsageDetail_20' ) end [2025-04-12 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:01:24] Production.INFO: ==21988== Releasing lock... [2025-04-12 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:01:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:02:06 [end_date_ymd] => 2025-04-12 18:02:06 [RateCDR] => 1 ) [2025-04-12 18:02: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-04-12 15:02:06' and `end` < '2025-04-12 18:02: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-04-12 18:02:19] Production.INFO: count ==1554 [2025-04-12 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:02:06 - End Time 2025-04-12 18:02:06 [2025-04-12 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893264', 'tblTempUsageDetail_20' ) start [2025-04-12 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893264', 'tblTempUsageDetail_20' ) end [2025-04-12 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893264', 'tblTempVendorCDR_20' ) start [2025-04-12 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893264', 'tblTempVendorCDR_20' ) end [2025-04-12 18:02:19] Production.INFO: ProcessCDR(1,14893264,1,1,2) [2025-04-12 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893264', 'tblTempUsageDetail_20' ) start [2025-04-12 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893264', 'tblTempUsageDetail_20' ) end [2025-04-12 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:02:22] Production.INFO: ==22072== Releasing lock... [2025-04-12 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:03:05 [end_date_ymd] => 2025-04-12 18:03:05 [RateCDR] => 1 ) [2025-04-12 18:03: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-04-12 15:03:05' and `end` < '2025-04-12 18:03: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-04-12 18:03:18] Production.INFO: count ==1556 [2025-04-12 18:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:03:05 - End Time 2025-04-12 18:03:05 [2025-04-12 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893269', 'tblTempUsageDetail_20' ) start [2025-04-12 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893269', 'tblTempUsageDetail_20' ) end [2025-04-12 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893269', 'tblTempVendorCDR_20' ) start [2025-04-12 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893269', 'tblTempVendorCDR_20' ) end [2025-04-12 18:03:19] Production.INFO: ProcessCDR(1,14893269,1,1,2) [2025-04-12 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893269', 'tblTempUsageDetail_20' ) start [2025-04-12 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893269', 'tblTempUsageDetail_20' ) end [2025-04-12 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:03:24] Production.INFO: ==22168== Releasing lock... [2025-04-12 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:03:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:04:05 [end_date_ymd] => 2025-04-12 18:04:05 [RateCDR] => 1 ) [2025-04-12 18:04: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-04-12 15:04:05' and `end` < '2025-04-12 18:04: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-04-12 18:04:19] Production.INFO: count ==1556 [2025-04-12 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:04:05 - End Time 2025-04-12 18:04:05 [2025-04-12 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893274', 'tblTempUsageDetail_20' ) start [2025-04-12 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893274', 'tblTempUsageDetail_20' ) end [2025-04-12 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893274', 'tblTempVendorCDR_20' ) start [2025-04-12 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893274', 'tblTempVendorCDR_20' ) end [2025-04-12 18:04:19] Production.INFO: ProcessCDR(1,14893274,1,1,2) [2025-04-12 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893274', 'tblTempUsageDetail_20' ) start [2025-04-12 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893274', 'tblTempUsageDetail_20' ) end [2025-04-12 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:04:24] Production.INFO: ==22256== Releasing lock... [2025-04-12 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:04:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:05:05 [end_date_ymd] => 2025-04-12 18:05:05 [RateCDR] => 1 ) [2025-04-12 18:05: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-04-12 15:05:05' and `end` < '2025-04-12 18:05: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-04-12 18:05:18] Production.INFO: count ==1555 [2025-04-12 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:05:05 - End Time 2025-04-12 18:05:05 [2025-04-12 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893279', 'tblTempUsageDetail_20' ) start [2025-04-12 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893279', 'tblTempUsageDetail_20' ) end [2025-04-12 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893279', 'tblTempVendorCDR_20' ) start [2025-04-12 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893279', 'tblTempVendorCDR_20' ) end [2025-04-12 18:05:19] Production.INFO: ProcessCDR(1,14893279,1,1,2) [2025-04-12 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893279', 'tblTempUsageDetail_20' ) start [2025-04-12 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893279', 'tblTempUsageDetail_20' ) end [2025-04-12 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:05:25] Production.INFO: ==22352== Releasing lock... [2025-04-12 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:05:25] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:06:06 [end_date_ymd] => 2025-04-12 18:06:06 [RateCDR] => 1 ) [2025-04-12 18:06: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-04-12 15:06:06' and `end` < '2025-04-12 18:06: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-04-12 18:06:19] Production.INFO: count ==1542 [2025-04-12 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:06:06 - End Time 2025-04-12 18:06:06 [2025-04-12 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893284', 'tblTempUsageDetail_20' ) start [2025-04-12 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893284', 'tblTempUsageDetail_20' ) end [2025-04-12 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893284', 'tblTempVendorCDR_20' ) start [2025-04-12 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893284', 'tblTempVendorCDR_20' ) end [2025-04-12 18:06:19] Production.INFO: ProcessCDR(1,14893284,1,1,2) [2025-04-12 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893284', 'tblTempUsageDetail_20' ) start [2025-04-12 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893284', 'tblTempUsageDetail_20' ) end [2025-04-12 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:06:24] Production.INFO: ==22442== Releasing lock... [2025-04-12 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:06:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:07:05 [end_date_ymd] => 2025-04-12 18:07:05 [RateCDR] => 1 ) [2025-04-12 18:07: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-04-12 15:07:05' and `end` < '2025-04-12 18:07: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-04-12 18:07:18] Production.INFO: count ==1515 [2025-04-12 18:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:07:05 - End Time 2025-04-12 18:07:05 [2025-04-12 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893289', 'tblTempUsageDetail_20' ) start [2025-04-12 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893289', 'tblTempUsageDetail_20' ) end [2025-04-12 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893289', 'tblTempVendorCDR_20' ) start [2025-04-12 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893289', 'tblTempVendorCDR_20' ) end [2025-04-12 18:07:18] Production.INFO: ProcessCDR(1,14893289,1,1,2) [2025-04-12 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893289', 'tblTempUsageDetail_20' ) start [2025-04-12 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893289', 'tblTempUsageDetail_20' ) end [2025-04-12 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:07:24] Production.INFO: ==22536== Releasing lock... [2025-04-12 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:08:05 [end_date_ymd] => 2025-04-12 18:08:05 [RateCDR] => 1 ) [2025-04-12 18:08: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-04-12 15:08:05' and `end` < '2025-04-12 18:08: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-04-12 18:08:18] Production.INFO: count ==1487 [2025-04-12 18:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:08:05 - End Time 2025-04-12 18:08:05 [2025-04-12 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893294', 'tblTempUsageDetail_20' ) start [2025-04-12 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893294', 'tblTempUsageDetail_20' ) end [2025-04-12 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893294', 'tblTempVendorCDR_20' ) start [2025-04-12 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893294', 'tblTempVendorCDR_20' ) end [2025-04-12 18:08:19] Production.INFO: ProcessCDR(1,14893294,1,1,2) [2025-04-12 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893294', 'tblTempUsageDetail_20' ) start [2025-04-12 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893294', 'tblTempUsageDetail_20' ) end [2025-04-12 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:08:22] Production.INFO: ==22623== Releasing lock... [2025-04-12 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:09:05 [end_date_ymd] => 2025-04-12 18:09:05 [RateCDR] => 1 ) [2025-04-12 18:09: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-04-12 15:09:05' and `end` < '2025-04-12 18:09: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-04-12 18:09:18] Production.INFO: count ==1485 [2025-04-12 18:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:09:05 - End Time 2025-04-12 18:09:05 [2025-04-12 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893299', 'tblTempUsageDetail_20' ) start [2025-04-12 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893299', 'tblTempUsageDetail_20' ) end [2025-04-12 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893299', 'tblTempVendorCDR_20' ) start [2025-04-12 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893299', 'tblTempVendorCDR_20' ) end [2025-04-12 18:09:18] Production.INFO: ProcessCDR(1,14893299,1,1,2) [2025-04-12 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893299', 'tblTempUsageDetail_20' ) start [2025-04-12 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893299', 'tblTempUsageDetail_20' ) end [2025-04-12 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:09:21] Production.INFO: ==22700== Releasing lock... [2025-04-12 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:09:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:10:06 [end_date_ymd] => 2025-04-12 18:10:06 [RateCDR] => 1 ) [2025-04-12 18:10: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-04-12 15:10:06' and `end` < '2025-04-12 18:10: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-04-12 18:10:19] Production.INFO: count ==1488 [2025-04-12 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 15:10:06 - End Time 2025-04-12 18:10:06 [2025-04-12 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893304', 'tblTempUsageDetail_20' ) start [2025-04-12 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893304', 'tblTempUsageDetail_20' ) end [2025-04-12 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893304', 'tblTempVendorCDR_20' ) start [2025-04-12 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893304', 'tblTempVendorCDR_20' ) end [2025-04-12 18:10:20] Production.INFO: ProcessCDR(1,14893304,1,1,2) [2025-04-12 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893304', 'tblTempUsageDetail_20' ) start [2025-04-12 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893304', 'tblTempUsageDetail_20' ) end [2025-04-12 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:10:23] Production.INFO: ==22837== Releasing lock... [2025-04-12 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:10:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:11:05 [end_date_ymd] => 2025-04-12 18:11:05 [RateCDR] => 1 ) [2025-04-12 18:11: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-04-12 15:11:05' and `end` < '2025-04-12 18:11: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-04-12 18:11:18] Production.INFO: count ==1537 [2025-04-12 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:11:05 - End Time 2025-04-12 18:11:05 [2025-04-12 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893310', 'tblTempUsageDetail_20' ) start [2025-04-12 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893310', 'tblTempUsageDetail_20' ) end [2025-04-12 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893310', 'tblTempVendorCDR_20' ) start [2025-04-12 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893310', 'tblTempVendorCDR_20' ) end [2025-04-12 18:11:19] Production.INFO: ProcessCDR(1,14893310,1,1,2) [2025-04-12 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893310', 'tblTempUsageDetail_20' ) start [2025-04-12 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893310', 'tblTempUsageDetail_20' ) end [2025-04-12 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:11:22] Production.INFO: ==22945== Releasing lock... [2025-04-12 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:12:05 [end_date_ymd] => 2025-04-12 18:12:05 [RateCDR] => 1 ) [2025-04-12 18:12: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-04-12 15:12:05' and `end` < '2025-04-12 18:12: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-04-12 18:12:18] Production.INFO: count ==1537 [2025-04-12 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:12:05 - End Time 2025-04-12 18:12:05 [2025-04-12 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893315', 'tblTempUsageDetail_20' ) start [2025-04-12 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893315', 'tblTempUsageDetail_20' ) end [2025-04-12 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893315', 'tblTempVendorCDR_20' ) start [2025-04-12 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893315', 'tblTempVendorCDR_20' ) end [2025-04-12 18:12:19] Production.INFO: ProcessCDR(1,14893315,1,1,2) [2025-04-12 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893315', 'tblTempUsageDetail_20' ) start [2025-04-12 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893315', 'tblTempUsageDetail_20' ) end [2025-04-12 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:12:22] Production.INFO: ==23033== Releasing lock... [2025-04-12 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:13:05 [end_date_ymd] => 2025-04-12 18:13:05 [RateCDR] => 1 ) [2025-04-12 18:13: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-04-12 15:13:05' and `end` < '2025-04-12 18:13: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-04-12 18:13:18] Production.INFO: count ==1536 [2025-04-12 18:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:13:05 - End Time 2025-04-12 18:13:05 [2025-04-12 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893320', 'tblTempUsageDetail_20' ) start [2025-04-12 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893320', 'tblTempUsageDetail_20' ) end [2025-04-12 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893320', 'tblTempVendorCDR_20' ) start [2025-04-12 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893320', 'tblTempVendorCDR_20' ) end [2025-04-12 18:13:19] Production.INFO: ProcessCDR(1,14893320,1,1,2) [2025-04-12 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893320', 'tblTempUsageDetail_20' ) start [2025-04-12 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893320', 'tblTempUsageDetail_20' ) end [2025-04-12 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:13:24] Production.INFO: ==23121== Releasing lock... [2025-04-12 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:13:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:14:06 [end_date_ymd] => 2025-04-12 18:14:06 [RateCDR] => 1 ) [2025-04-12 18:14: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-04-12 15:14:06' and `end` < '2025-04-12 18:14: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-04-12 18:14:19] Production.INFO: count ==1535 [2025-04-12 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:14:06 - End Time 2025-04-12 18:14:06 [2025-04-12 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893325', 'tblTempUsageDetail_20' ) start [2025-04-12 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893325', 'tblTempUsageDetail_20' ) end [2025-04-12 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893325', 'tblTempVendorCDR_20' ) start [2025-04-12 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893325', 'tblTempVendorCDR_20' ) end [2025-04-12 18:14:19] Production.INFO: ProcessCDR(1,14893325,1,1,2) [2025-04-12 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893325', 'tblTempUsageDetail_20' ) start [2025-04-12 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893325', 'tblTempUsageDetail_20' ) end [2025-04-12 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:14:22] Production.INFO: ==23199== Releasing lock... [2025-04-12 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:15:04 [end_date_ymd] => 2025-04-12 18:15:04 [RateCDR] => 1 ) [2025-04-12 18:15: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-04-12 15:15:04' and `end` < '2025-04-12 18:15: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-04-12 18:15:17] Production.INFO: count ==1532 [2025-04-12 18:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:15:04 - End Time 2025-04-12 18:15:04 [2025-04-12 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893330', 'tblTempUsageDetail_20' ) start [2025-04-12 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893330', 'tblTempUsageDetail_20' ) end [2025-04-12 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893330', 'tblTempVendorCDR_20' ) start [2025-04-12 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893330', 'tblTempVendorCDR_20' ) end [2025-04-12 18:15:18] Production.INFO: ProcessCDR(1,14893330,1,1,2) [2025-04-12 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893330', 'tblTempUsageDetail_20' ) start [2025-04-12 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893330', 'tblTempUsageDetail_20' ) end [2025-04-12 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:15:23] Production.INFO: ==23284== Releasing lock... [2025-04-12 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:15:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:16:05 [end_date_ymd] => 2025-04-12 18:16:05 [RateCDR] => 1 ) [2025-04-12 18:16: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-04-12 15:16:05' and `end` < '2025-04-12 18:16: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-04-12 18:16:18] Production.INFO: count ==1527 [2025-04-12 18:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:16:05 - End Time 2025-04-12 18:16:05 [2025-04-12 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893335', 'tblTempUsageDetail_20' ) start [2025-04-12 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893335', 'tblTempUsageDetail_20' ) end [2025-04-12 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893335', 'tblTempVendorCDR_20' ) start [2025-04-12 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893335', 'tblTempVendorCDR_20' ) end [2025-04-12 18:16:18] Production.INFO: ProcessCDR(1,14893335,1,1,2) [2025-04-12 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893335', 'tblTempUsageDetail_20' ) start [2025-04-12 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893335', 'tblTempUsageDetail_20' ) end [2025-04-12 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:16:22] Production.INFO: ==23391== Releasing lock... [2025-04-12 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:17:05 [end_date_ymd] => 2025-04-12 18:17:05 [RateCDR] => 1 ) [2025-04-12 18:17: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-04-12 15:17:05' and `end` < '2025-04-12 18:17: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-04-12 18:17:18] Production.INFO: count ==1526 [2025-04-12 18:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:17:05 - End Time 2025-04-12 18:17:05 [2025-04-12 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893340', 'tblTempUsageDetail_20' ) start [2025-04-12 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893340', 'tblTempUsageDetail_20' ) end [2025-04-12 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893340', 'tblTempVendorCDR_20' ) start [2025-04-12 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893340', 'tblTempVendorCDR_20' ) end [2025-04-12 18:17:18] Production.INFO: ProcessCDR(1,14893340,1,1,2) [2025-04-12 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893340', 'tblTempUsageDetail_20' ) start [2025-04-12 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893340', 'tblTempUsageDetail_20' ) end [2025-04-12 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:17:21] Production.INFO: ==23485== Releasing lock... [2025-04-12 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:17:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:18:05 [end_date_ymd] => 2025-04-12 18:18:05 [RateCDR] => 1 ) [2025-04-12 18:18: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-04-12 15:18:05' and `end` < '2025-04-12 18:18: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-04-12 18:18:18] Production.INFO: count ==1526 [2025-04-12 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:18:05 - End Time 2025-04-12 18:18:05 [2025-04-12 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893345', 'tblTempUsageDetail_20' ) start [2025-04-12 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893345', 'tblTempUsageDetail_20' ) end [2025-04-12 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893345', 'tblTempVendorCDR_20' ) start [2025-04-12 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893345', 'tblTempVendorCDR_20' ) end [2025-04-12 18:18:19] Production.INFO: ProcessCDR(1,14893345,1,1,2) [2025-04-12 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893345', 'tblTempUsageDetail_20' ) start [2025-04-12 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893345', 'tblTempUsageDetail_20' ) end [2025-04-12 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:18:22] Production.INFO: ==23575== Releasing lock... [2025-04-12 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:19:05 [end_date_ymd] => 2025-04-12 18:19:05 [RateCDR] => 1 ) [2025-04-12 18:19: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-04-12 15:19:05' and `end` < '2025-04-12 18:19: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-04-12 18:19:18] Production.INFO: count ==1521 [2025-04-12 18:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:19:05 - End Time 2025-04-12 18:19:05 [2025-04-12 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893350', 'tblTempUsageDetail_20' ) start [2025-04-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893350', 'tblTempUsageDetail_20' ) end [2025-04-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893350', 'tblTempVendorCDR_20' ) start [2025-04-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893350', 'tblTempVendorCDR_20' ) end [2025-04-12 18:19:19] Production.INFO: ProcessCDR(1,14893350,1,1,2) [2025-04-12 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893350', 'tblTempUsageDetail_20' ) start [2025-04-12 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893350', 'tblTempUsageDetail_20' ) end [2025-04-12 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:19:22] Production.INFO: ==23653== Releasing lock... [2025-04-12 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:20:06 [end_date_ymd] => 2025-04-12 18:20:06 [RateCDR] => 1 ) [2025-04-12 18:20: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-04-12 15:20:06' and `end` < '2025-04-12 18:20: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-04-12 18:20:19] Production.INFO: count ==1524 [2025-04-12 18:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:20:06 - End Time 2025-04-12 18:20:06 [2025-04-12 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893356', 'tblTempUsageDetail_20' ) start [2025-04-12 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893356', 'tblTempUsageDetail_20' ) end [2025-04-12 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893356', 'tblTempVendorCDR_20' ) start [2025-04-12 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893356', 'tblTempVendorCDR_20' ) end [2025-04-12 18:20:19] Production.INFO: ProcessCDR(1,14893356,1,1,2) [2025-04-12 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893356', 'tblTempUsageDetail_20' ) start [2025-04-12 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893356', 'tblTempUsageDetail_20' ) end [2025-04-12 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:20:24] Production.INFO: ==23745== Releasing lock... [2025-04-12 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:20:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:21:06 [end_date_ymd] => 2025-04-12 18:21:06 [RateCDR] => 1 ) [2025-04-12 18:21: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-04-12 15:21:06' and `end` < '2025-04-12 18:21: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-04-12 18:21:19] Production.INFO: count ==1572 [2025-04-12 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:21:06 - End Time 2025-04-12 18:21:06 [2025-04-12 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893361', 'tblTempUsageDetail_20' ) start [2025-04-12 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893361', 'tblTempUsageDetail_20' ) end [2025-04-12 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893361', 'tblTempVendorCDR_20' ) start [2025-04-12 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893361', 'tblTempVendorCDR_20' ) end [2025-04-12 18:21:19] Production.INFO: ProcessCDR(1,14893361,1,1,2) [2025-04-12 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893361', 'tblTempUsageDetail_20' ) start [2025-04-12 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893361', 'tblTempUsageDetail_20' ) end [2025-04-12 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:21:23] Production.INFO: ==23856== Releasing lock... [2025-04-12 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:21:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:22:06 [end_date_ymd] => 2025-04-12 18:22:06 [RateCDR] => 1 ) [2025-04-12 18:22: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-04-12 15:22:06' and `end` < '2025-04-12 18:22: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-04-12 18:22:19] Production.INFO: count ==1575 [2025-04-12 18:22:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:22:06 - End Time 2025-04-12 18:22:06 [2025-04-12 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893366', 'tblTempUsageDetail_20' ) start [2025-04-12 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893366', 'tblTempUsageDetail_20' ) end [2025-04-12 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893366', 'tblTempVendorCDR_20' ) start [2025-04-12 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893366', 'tblTempVendorCDR_20' ) end [2025-04-12 18:22:19] Production.INFO: ProcessCDR(1,14893366,1,1,2) [2025-04-12 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893366', 'tblTempUsageDetail_20' ) start [2025-04-12 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893366', 'tblTempUsageDetail_20' ) end [2025-04-12 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:22:24] Production.INFO: ==23983== Releasing lock... [2025-04-12 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:22:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:23:05 [end_date_ymd] => 2025-04-12 18:23:05 [RateCDR] => 1 ) [2025-04-12 18:23: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-04-12 15:23:05' and `end` < '2025-04-12 18:23: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-04-12 18:23:18] Production.INFO: count ==1566 [2025-04-12 18:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:23:05 - End Time 2025-04-12 18:23:05 [2025-04-12 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893371', 'tblTempUsageDetail_20' ) start [2025-04-12 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893371', 'tblTempUsageDetail_20' ) end [2025-04-12 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893371', 'tblTempVendorCDR_20' ) start [2025-04-12 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893371', 'tblTempVendorCDR_20' ) end [2025-04-12 18:23:18] Production.INFO: ProcessCDR(1,14893371,1,1,2) [2025-04-12 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893371', 'tblTempUsageDetail_20' ) start [2025-04-12 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893371', 'tblTempUsageDetail_20' ) end [2025-04-12 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:23:22] Production.INFO: ==24068== Releasing lock... [2025-04-12 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:24:05 [end_date_ymd] => 2025-04-12 18:24:05 [RateCDR] => 1 ) [2025-04-12 18:24: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-04-12 15:24:05' and `end` < '2025-04-12 18:24: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-04-12 18:24:18] Production.INFO: count ==1551 [2025-04-12 18:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:24:05 - End Time 2025-04-12 18:24:05 [2025-04-12 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893376', 'tblTempUsageDetail_20' ) start [2025-04-12 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893376', 'tblTempUsageDetail_20' ) end [2025-04-12 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893376', 'tblTempVendorCDR_20' ) start [2025-04-12 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893376', 'tblTempVendorCDR_20' ) end [2025-04-12 18:24:19] Production.INFO: ProcessCDR(1,14893376,1,1,2) [2025-04-12 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893376', 'tblTempUsageDetail_20' ) start [2025-04-12 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893376', 'tblTempUsageDetail_20' ) end [2025-04-12 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:24:22] Production.INFO: ==24153== Releasing lock... [2025-04-12 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:24:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:25:05 [end_date_ymd] => 2025-04-12 18:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 15:25:05' and `end` < '2025-04-12 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-04-12 18:25:18] Production.INFO: count ==1545 [2025-04-12 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:25:05 - End Time 2025-04-12 18:25:05 [2025-04-12 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893381', 'tblTempUsageDetail_20' ) start [2025-04-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893381', 'tblTempUsageDetail_20' ) end [2025-04-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893381', 'tblTempVendorCDR_20' ) start [2025-04-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893381', 'tblTempVendorCDR_20' ) end [2025-04-12 18:25:19] Production.INFO: ProcessCDR(1,14893381,1,1,2) [2025-04-12 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893381', 'tblTempUsageDetail_20' ) start [2025-04-12 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893381', 'tblTempUsageDetail_20' ) end [2025-04-12 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:25:24] Production.INFO: ==24239== Releasing lock... [2025-04-12 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:25:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:26:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:26:17 [end_date_ymd] => 2025-04-12 18:26:17 [RateCDR] => 1 ) [2025-04-12 18:26:17] 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-04-12 15:26:17' and `end` < '2025-04-12 18:26:17' 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-04-12 18:26:30] Production.INFO: count ==1542 [2025-04-12 18:26:37] Production.ERROR: pbx CDR StartTime 2025-04-12 15:26:17 - End Time 2025-04-12 18:26:17 [2025-04-12 18:26:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893386', 'tblTempUsageDetail_20' ) start [2025-04-12 18:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893386', 'tblTempUsageDetail_20' ) end [2025-04-12 18:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893386', 'tblTempVendorCDR_20' ) start [2025-04-12 18:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893386', 'tblTempVendorCDR_20' ) end [2025-04-12 18:26:44] Production.INFO: ProcessCDR(1,14893386,1,1,2) [2025-04-12 18:26:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:26:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:26:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893386', 'tblTempUsageDetail_20' ) start [2025-04-12 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893386', 'tblTempUsageDetail_20' ) end [2025-04-12 18:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:27:27] Production.INFO: ==24364== Releasing lock... [2025-04-12 18:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:27:27] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:28:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:28:17 [end_date_ymd] => 2025-04-12 18:28:17 [RateCDR] => 1 ) [2025-04-12 18:28:17] 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-04-12 15:28:17' and `end` < '2025-04-12 18:28:17' 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-04-12 18:28:30] Production.INFO: count ==1540 [2025-04-12 18:28:37] Production.ERROR: pbx CDR StartTime 2025-04-12 15:28:17 - End Time 2025-04-12 18:28:17 [2025-04-12 18:28:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893394', 'tblTempUsageDetail_20' ) start [2025-04-12 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893394', 'tblTempUsageDetail_20' ) end [2025-04-12 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893394', 'tblTempVendorCDR_20' ) start [2025-04-12 18:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893394', 'tblTempVendorCDR_20' ) end [2025-04-12 18:28:37] Production.INFO: ProcessCDR(1,14893394,1,1,2) [2025-04-12 18:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:28:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:28:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:29:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:29:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893394', 'tblTempUsageDetail_20' ) start [2025-04-12 18:29:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893394', 'tblTempUsageDetail_20' ) end [2025-04-12 18:29:05] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:29:05] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:29:05] Production.INFO: ==24553== Releasing lock... [2025-04-12 18:29:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:29:05] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:30:24] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:30:24 [end_date_ymd] => 2025-04-12 18:30:24 [RateCDR] => 1 ) [2025-04-12 18:30:24] 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-04-12 15:30:24' and `end` < '2025-04-12 18:30:24' 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-04-12 18:30:37] Production.INFO: count ==1541 [2025-04-12 18:30:43] Production.ERROR: pbx CDR StartTime 2025-04-12 15:30:24 - End Time 2025-04-12 18:30:24 [2025-04-12 18:30:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893403', 'tblTempUsageDetail_20' ) start [2025-04-12 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893403', 'tblTempUsageDetail_20' ) end [2025-04-12 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893403', 'tblTempVendorCDR_20' ) start [2025-04-12 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893403', 'tblTempVendorCDR_20' ) end [2025-04-12 18:30:43] Production.INFO: ProcessCDR(1,14893403,1,1,2) [2025-04-12 18:30:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:30:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:30:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:30:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893403', 'tblTempUsageDetail_20' ) start [2025-04-12 18:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893403', 'tblTempUsageDetail_20' ) end [2025-04-12 18:30:57] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:30:57] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:30:57] Production.INFO: ==24717== Releasing lock... [2025-04-12 18:30:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:30:57] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:31:20] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:31:20 [end_date_ymd] => 2025-04-12 18:31:20 [RateCDR] => 1 ) [2025-04-12 18:31:20] 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-04-12 15:31:20' and `end` < '2025-04-12 18:31:20' 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-04-12 18:31:33] Production.INFO: count ==1556 [2025-04-12 18:31:38] Production.ERROR: pbx CDR StartTime 2025-04-12 15:31:20 - End Time 2025-04-12 18:31:20 [2025-04-12 18:31:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893407', 'tblTempUsageDetail_20' ) start [2025-04-12 18:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893407', 'tblTempUsageDetail_20' ) end [2025-04-12 18:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893407', 'tblTempVendorCDR_20' ) start [2025-04-12 18:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893407', 'tblTempVendorCDR_20' ) end [2025-04-12 18:31:38] Production.INFO: ProcessCDR(1,14893407,1,1,2) [2025-04-12 18:31:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:31:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:31:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:32:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:32:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893407', 'tblTempUsageDetail_20' ) start [2025-04-12 18:32:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893407', 'tblTempUsageDetail_20' ) end [2025-04-12 18:32:18] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:32:18] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:32:21] Production.INFO: ==24804== Releasing lock... [2025-04-12 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:32:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:33:06 [end_date_ymd] => 2025-04-12 18:33:06 [RateCDR] => 1 ) [2025-04-12 18:33: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-04-12 15:33:06' and `end` < '2025-04-12 18:33: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-04-12 18:33:19] Production.INFO: count ==1553 [2025-04-12 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:33:06 - End Time 2025-04-12 18:33:06 [2025-04-12 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893416', 'tblTempUsageDetail_20' ) start [2025-04-12 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893416', 'tblTempUsageDetail_20' ) end [2025-04-12 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893416', 'tblTempVendorCDR_20' ) start [2025-04-12 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893416', 'tblTempVendorCDR_20' ) end [2025-04-12 18:33:19] Production.INFO: ProcessCDR(1,14893416,1,1,2) [2025-04-12 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893416', 'tblTempUsageDetail_20' ) start [2025-04-12 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893416', 'tblTempUsageDetail_20' ) end [2025-04-12 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:33:22] Production.INFO: ==25000== Releasing lock... [2025-04-12 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:34:05 [end_date_ymd] => 2025-04-12 18:34:05 [RateCDR] => 1 ) [2025-04-12 18:34: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-04-12 15:34:05' and `end` < '2025-04-12 18:34: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-04-12 18:34:19] Production.INFO: count ==1552 [2025-04-12 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:34:05 - End Time 2025-04-12 18:34:05 [2025-04-12 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893421', 'tblTempUsageDetail_20' ) start [2025-04-12 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893421', 'tblTempUsageDetail_20' ) end [2025-04-12 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893421', 'tblTempVendorCDR_20' ) start [2025-04-12 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893421', 'tblTempVendorCDR_20' ) end [2025-04-12 18:34:19] Production.INFO: ProcessCDR(1,14893421,1,1,2) [2025-04-12 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893421', 'tblTempUsageDetail_20' ) start [2025-04-12 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893421', 'tblTempUsageDetail_20' ) end [2025-04-12 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:34:24] Production.INFO: ==25082== Releasing lock... [2025-04-12 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:35:05 [end_date_ymd] => 2025-04-12 18:35:05 [RateCDR] => 1 ) [2025-04-12 18:35: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-04-12 15:35:05' and `end` < '2025-04-12 18:35: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-04-12 18:35:18] Production.INFO: count ==1548 [2025-04-12 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:35:05 - End Time 2025-04-12 18:35:05 [2025-04-12 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893426', 'tblTempUsageDetail_20' ) start [2025-04-12 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893426', 'tblTempUsageDetail_20' ) end [2025-04-12 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893426', 'tblTempVendorCDR_20' ) start [2025-04-12 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893426', 'tblTempVendorCDR_20' ) end [2025-04-12 18:35:19] Production.INFO: ProcessCDR(1,14893426,1,1,2) [2025-04-12 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893426', 'tblTempUsageDetail_20' ) start [2025-04-12 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893426', 'tblTempUsageDetail_20' ) end [2025-04-12 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:35:24] Production.INFO: ==25168== Releasing lock... [2025-04-12 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:36:06 [end_date_ymd] => 2025-04-12 18:36:06 [RateCDR] => 1 ) [2025-04-12 18:36: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-04-12 15:36:06' and `end` < '2025-04-12 18:36: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-04-12 18:36:19] Production.INFO: count ==1547 [2025-04-12 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:36:06 - End Time 2025-04-12 18:36:06 [2025-04-12 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893431', 'tblTempUsageDetail_20' ) start [2025-04-12 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893431', 'tblTempUsageDetail_20' ) end [2025-04-12 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893431', 'tblTempVendorCDR_20' ) start [2025-04-12 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893431', 'tblTempVendorCDR_20' ) end [2025-04-12 18:36:19] Production.INFO: ProcessCDR(1,14893431,1,1,2) [2025-04-12 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893431', 'tblTempUsageDetail_20' ) start [2025-04-12 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893431', 'tblTempUsageDetail_20' ) end [2025-04-12 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:36:23] Production.INFO: ==25251== Releasing lock... [2025-04-12 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:37:06 [end_date_ymd] => 2025-04-12 18:37:06 [RateCDR] => 1 ) [2025-04-12 18:37: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-04-12 15:37:06' and `end` < '2025-04-12 18:37: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-04-12 18:37:19] Production.INFO: count ==1545 [2025-04-12 18:37:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:37:06 - End Time 2025-04-12 18:37:06 [2025-04-12 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893436', 'tblTempUsageDetail_20' ) start [2025-04-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893436', 'tblTempUsageDetail_20' ) end [2025-04-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893436', 'tblTempVendorCDR_20' ) start [2025-04-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893436', 'tblTempVendorCDR_20' ) end [2025-04-12 18:37:19] Production.INFO: ProcessCDR(1,14893436,1,1,2) [2025-04-12 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893436', 'tblTempUsageDetail_20' ) start [2025-04-12 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893436', 'tblTempUsageDetail_20' ) end [2025-04-12 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:37:24] Production.INFO: ==25364== Releasing lock... [2025-04-12 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:37:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:38:05 [end_date_ymd] => 2025-04-12 18:38:05 [RateCDR] => 1 ) [2025-04-12 18:38: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-04-12 15:38:05' and `end` < '2025-04-12 18:38: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-04-12 18:38:18] Production.INFO: count ==1544 [2025-04-12 18:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:38:05 - End Time 2025-04-12 18:38:05 [2025-04-12 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893441', 'tblTempUsageDetail_20' ) start [2025-04-12 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893441', 'tblTempUsageDetail_20' ) end [2025-04-12 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893441', 'tblTempVendorCDR_20' ) start [2025-04-12 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893441', 'tblTempVendorCDR_20' ) end [2025-04-12 18:38:18] Production.INFO: ProcessCDR(1,14893441,1,1,2) [2025-04-12 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893441', 'tblTempUsageDetail_20' ) start [2025-04-12 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893441', 'tblTempUsageDetail_20' ) end [2025-04-12 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:38:22] Production.INFO: ==25471== Releasing lock... [2025-04-12 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:38:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:39:06 [end_date_ymd] => 2025-04-12 18:39:06 [RateCDR] => 1 ) [2025-04-12 18:39: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-04-12 15:39:06' and `end` < '2025-04-12 18:39: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-04-12 18:39:19] Production.INFO: count ==1545 [2025-04-12 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:39:06 - End Time 2025-04-12 18:39:06 [2025-04-12 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893446', 'tblTempUsageDetail_20' ) start [2025-04-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893446', 'tblTempUsageDetail_20' ) end [2025-04-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893446', 'tblTempVendorCDR_20' ) start [2025-04-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893446', 'tblTempVendorCDR_20' ) end [2025-04-12 18:39:19] Production.INFO: ProcessCDR(1,14893446,1,1,2) [2025-04-12 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893446', 'tblTempUsageDetail_20' ) start [2025-04-12 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893446', 'tblTempUsageDetail_20' ) end [2025-04-12 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:39:24] Production.INFO: ==25563== Releasing lock... [2025-04-12 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:39:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:40:06 [end_date_ymd] => 2025-04-12 18:40:06 [RateCDR] => 1 ) [2025-04-12 18:40: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-04-12 15:40:06' and `end` < '2025-04-12 18:40: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-04-12 18:40:19] Production.INFO: count ==1543 [2025-04-12 18:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:40:06 - End Time 2025-04-12 18:40:06 [2025-04-12 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893451', 'tblTempUsageDetail_20' ) start [2025-04-12 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893451', 'tblTempUsageDetail_20' ) end [2025-04-12 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893451', 'tblTempVendorCDR_20' ) start [2025-04-12 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893451', 'tblTempVendorCDR_20' ) end [2025-04-12 18:40:19] Production.INFO: ProcessCDR(1,14893451,1,1,2) [2025-04-12 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893451', 'tblTempUsageDetail_20' ) start [2025-04-12 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893451', 'tblTempUsageDetail_20' ) end [2025-04-12 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:40:23] Production.INFO: ==25651== Releasing lock... [2025-04-12 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:40:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:41:06 [end_date_ymd] => 2025-04-12 18:41:06 [RateCDR] => 1 ) [2025-04-12 18:41: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-04-12 15:41:06' and `end` < '2025-04-12 18:41: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-04-12 18:41:19] Production.INFO: count ==1635 [2025-04-12 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:41:06 - End Time 2025-04-12 18:41:06 [2025-04-12 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893457', 'tblTempUsageDetail_20' ) start [2025-04-12 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893457', 'tblTempUsageDetail_20' ) end [2025-04-12 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893457', 'tblTempVendorCDR_20' ) start [2025-04-12 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893457', 'tblTempVendorCDR_20' ) end [2025-04-12 18:41:19] Production.INFO: ProcessCDR(1,14893457,1,1,2) [2025-04-12 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893457', 'tblTempUsageDetail_20' ) start [2025-04-12 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893457', 'tblTempUsageDetail_20' ) end [2025-04-12 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:41:25] Production.INFO: ==25775== Releasing lock... [2025-04-12 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:41:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:42:05 [end_date_ymd] => 2025-04-12 18:42:05 [RateCDR] => 1 ) [2025-04-12 18:42: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-04-12 15:42:05' and `end` < '2025-04-12 18:42: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-04-12 18:42:18] Production.INFO: count ==1628 [2025-04-12 18:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:42:05 - End Time 2025-04-12 18:42:05 [2025-04-12 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893462', 'tblTempUsageDetail_20' ) start [2025-04-12 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893462', 'tblTempUsageDetail_20' ) end [2025-04-12 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893462', 'tblTempVendorCDR_20' ) start [2025-04-12 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893462', 'tblTempVendorCDR_20' ) end [2025-04-12 18:42:18] Production.INFO: ProcessCDR(1,14893462,1,1,2) [2025-04-12 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893462', 'tblTempUsageDetail_20' ) start [2025-04-12 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893462', 'tblTempUsageDetail_20' ) end [2025-04-12 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:42:22] Production.INFO: ==25874== Releasing lock... [2025-04-12 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:43:05 [end_date_ymd] => 2025-04-12 18:43:05 [RateCDR] => 1 ) [2025-04-12 18:43: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-04-12 15:43:05' and `end` < '2025-04-12 18:43: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-04-12 18:43:18] Production.INFO: count ==1628 [2025-04-12 18:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:43:05 - End Time 2025-04-12 18:43:05 [2025-04-12 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893467', 'tblTempUsageDetail_20' ) start [2025-04-12 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893467', 'tblTempUsageDetail_20' ) end [2025-04-12 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893467', 'tblTempVendorCDR_20' ) start [2025-04-12 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893467', 'tblTempVendorCDR_20' ) end [2025-04-12 18:43:18] Production.INFO: ProcessCDR(1,14893467,1,1,2) [2025-04-12 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893467', 'tblTempUsageDetail_20' ) start [2025-04-12 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893467', 'tblTempUsageDetail_20' ) end [2025-04-12 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:43:22] Production.INFO: ==25967== Releasing lock... [2025-04-12 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:44:05 [end_date_ymd] => 2025-04-12 18:44:05 [RateCDR] => 1 ) [2025-04-12 18:44: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-04-12 15:44:05' and `end` < '2025-04-12 18:44: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-04-12 18:44:18] Production.INFO: count ==1628 [2025-04-12 18:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:44:05 - End Time 2025-04-12 18:44:05 [2025-04-12 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893472', 'tblTempUsageDetail_20' ) start [2025-04-12 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893472', 'tblTempUsageDetail_20' ) end [2025-04-12 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893472', 'tblTempVendorCDR_20' ) start [2025-04-12 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893472', 'tblTempVendorCDR_20' ) end [2025-04-12 18:44:18] Production.INFO: ProcessCDR(1,14893472,1,1,2) [2025-04-12 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893472', 'tblTempUsageDetail_20' ) start [2025-04-12 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893472', 'tblTempUsageDetail_20' ) end [2025-04-12 18:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:44:21] Production.INFO: ==26058== Releasing lock... [2025-04-12 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:44:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:45:05 [end_date_ymd] => 2025-04-12 18:45:05 [RateCDR] => 1 ) [2025-04-12 18:45: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-04-12 15:45:05' and `end` < '2025-04-12 18:45: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-04-12 18:45:18] Production.INFO: count ==1632 [2025-04-12 18:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:45:05 - End Time 2025-04-12 18:45:05 [2025-04-12 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893477', 'tblTempUsageDetail_20' ) start [2025-04-12 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893477', 'tblTempUsageDetail_20' ) end [2025-04-12 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893477', 'tblTempVendorCDR_20' ) start [2025-04-12 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893477', 'tblTempVendorCDR_20' ) end [2025-04-12 18:45:18] Production.INFO: ProcessCDR(1,14893477,1,1,2) [2025-04-12 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893477', 'tblTempUsageDetail_20' ) start [2025-04-12 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893477', 'tblTempUsageDetail_20' ) end [2025-04-12 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:45:22] Production.INFO: ==26155== Releasing lock... [2025-04-12 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:46:05 [end_date_ymd] => 2025-04-12 18:46:05 [RateCDR] => 1 ) [2025-04-12 18:46: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-04-12 15:46:05' and `end` < '2025-04-12 18:46: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-04-12 18:46:18] Production.INFO: count ==1632 [2025-04-12 18:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:46:05 - End Time 2025-04-12 18:46:05 [2025-04-12 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893482', 'tblTempUsageDetail_20' ) start [2025-04-12 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893482', 'tblTempUsageDetail_20' ) end [2025-04-12 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893482', 'tblTempVendorCDR_20' ) start [2025-04-12 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893482', 'tblTempVendorCDR_20' ) end [2025-04-12 18:46:18] Production.INFO: ProcessCDR(1,14893482,1,1,2) [2025-04-12 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893482', 'tblTempUsageDetail_20' ) start [2025-04-12 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893482', 'tblTempUsageDetail_20' ) end [2025-04-12 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:46:22] Production.INFO: ==26232== Releasing lock... [2025-04-12 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:47:05 [end_date_ymd] => 2025-04-12 18:47:05 [RateCDR] => 1 ) [2025-04-12 18:47: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-04-12 15:47:05' and `end` < '2025-04-12 18:47: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-04-12 18:47:19] Production.INFO: count ==1632 [2025-04-12 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:47:05 - End Time 2025-04-12 18:47:05 [2025-04-12 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893487', 'tblTempUsageDetail_20' ) start [2025-04-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893487', 'tblTempUsageDetail_20' ) end [2025-04-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893487', 'tblTempVendorCDR_20' ) start [2025-04-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893487', 'tblTempVendorCDR_20' ) end [2025-04-12 18:47:19] Production.INFO: ProcessCDR(1,14893487,1,1,2) [2025-04-12 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893487', 'tblTempUsageDetail_20' ) start [2025-04-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893487', 'tblTempUsageDetail_20' ) end [2025-04-12 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:47:24] Production.INFO: ==26347== Releasing lock... [2025-04-12 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:47:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:48:05 [end_date_ymd] => 2025-04-12 18:48:05 [RateCDR] => 1 ) [2025-04-12 18:48: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-04-12 15:48:05' and `end` < '2025-04-12 18:48: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-04-12 18:48:18] Production.INFO: count ==1633 [2025-04-12 18:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:48:05 - End Time 2025-04-12 18:48:05 [2025-04-12 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893492', 'tblTempUsageDetail_20' ) start [2025-04-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893492', 'tblTempUsageDetail_20' ) end [2025-04-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893492', 'tblTempVendorCDR_20' ) start [2025-04-12 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893492', 'tblTempVendorCDR_20' ) end [2025-04-12 18:48:19] Production.INFO: ProcessCDR(1,14893492,1,1,2) [2025-04-12 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893492', 'tblTempUsageDetail_20' ) start [2025-04-12 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893492', 'tblTempUsageDetail_20' ) end [2025-04-12 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:48:24] Production.INFO: ==26479== Releasing lock... [2025-04-12 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:48:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:49:05 [end_date_ymd] => 2025-04-12 18:49:05 [RateCDR] => 1 ) [2025-04-12 18:49: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-04-12 15:49:05' and `end` < '2025-04-12 18:49: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-04-12 18:49:18] Production.INFO: count ==1633 [2025-04-12 18:49:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:49:05 - End Time 2025-04-12 18:49:05 [2025-04-12 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893497', 'tblTempUsageDetail_20' ) start [2025-04-12 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893497', 'tblTempUsageDetail_20' ) end [2025-04-12 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893497', 'tblTempVendorCDR_20' ) start [2025-04-12 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893497', 'tblTempVendorCDR_20' ) end [2025-04-12 18:49:18] Production.INFO: ProcessCDR(1,14893497,1,1,2) [2025-04-12 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893497', 'tblTempUsageDetail_20' ) start [2025-04-12 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893497', 'tblTempUsageDetail_20' ) end [2025-04-12 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:49:23] Production.INFO: ==26592== Releasing lock... [2025-04-12 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:49:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:50:07 [end_date_ymd] => 2025-04-12 18:50:07 [RateCDR] => 1 ) [2025-04-12 18:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 15:50:07' and `end` < '2025-04-12 18:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 18:50:20] Production.INFO: count ==1633 [2025-04-12 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-12 15:50:07 - End Time 2025-04-12 18:50:07 [2025-04-12 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893503', 'tblTempUsageDetail_20' ) start [2025-04-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893503', 'tblTempUsageDetail_20' ) end [2025-04-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893503', 'tblTempVendorCDR_20' ) start [2025-04-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893503', 'tblTempVendorCDR_20' ) end [2025-04-12 18:50:20] Production.INFO: ProcessCDR(1,14893503,1,1,2) [2025-04-12 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893503', 'tblTempUsageDetail_20' ) start [2025-04-12 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893503', 'tblTempUsageDetail_20' ) end [2025-04-12 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:50:23] Production.INFO: ==26686== Releasing lock... [2025-04-12 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:51:06 [end_date_ymd] => 2025-04-12 18:51:06 [RateCDR] => 1 ) [2025-04-12 18:51: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-04-12 15:51:06' and `end` < '2025-04-12 18:51: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-04-12 18:51:19] Production.INFO: count ==1645 [2025-04-12 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:51:06 - End Time 2025-04-12 18:51:06 [2025-04-12 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893508', 'tblTempUsageDetail_20' ) start [2025-04-12 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893508', 'tblTempUsageDetail_20' ) end [2025-04-12 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893508', 'tblTempVendorCDR_20' ) start [2025-04-12 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893508', 'tblTempVendorCDR_20' ) end [2025-04-12 18:51:19] Production.INFO: ProcessCDR(1,14893508,1,1,2) [2025-04-12 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893508', 'tblTempUsageDetail_20' ) start [2025-04-12 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893508', 'tblTempUsageDetail_20' ) end [2025-04-12 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:51:22] Production.INFO: ==26772== Releasing lock... [2025-04-12 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:51:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:52:05 [end_date_ymd] => 2025-04-12 18:52:05 [RateCDR] => 1 ) [2025-04-12 18:52: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-04-12 15:52:05' and `end` < '2025-04-12 18:52: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-04-12 18:52:18] Production.INFO: count ==1644 [2025-04-12 18:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:52:05 - End Time 2025-04-12 18:52:05 [2025-04-12 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893513', 'tblTempUsageDetail_20' ) start [2025-04-12 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893513', 'tblTempUsageDetail_20' ) end [2025-04-12 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893513', 'tblTempVendorCDR_20' ) start [2025-04-12 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893513', 'tblTempVendorCDR_20' ) end [2025-04-12 18:52:18] Production.INFO: ProcessCDR(1,14893513,1,1,2) [2025-04-12 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893513', 'tblTempUsageDetail_20' ) start [2025-04-12 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893513', 'tblTempUsageDetail_20' ) end [2025-04-12 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:52:22] Production.INFO: ==26861== Releasing lock... [2025-04-12 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:52:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:53:05 [end_date_ymd] => 2025-04-12 18:53:05 [RateCDR] => 1 ) [2025-04-12 18:53: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-04-12 15:53:05' and `end` < '2025-04-12 18:53: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-04-12 18:53:18] Production.INFO: count ==1645 [2025-04-12 18:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:53:05 - End Time 2025-04-12 18:53:05 [2025-04-12 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893518', 'tblTempUsageDetail_20' ) start [2025-04-12 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893518', 'tblTempUsageDetail_20' ) end [2025-04-12 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893518', 'tblTempVendorCDR_20' ) start [2025-04-12 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893518', 'tblTempVendorCDR_20' ) end [2025-04-12 18:53:18] Production.INFO: ProcessCDR(1,14893518,1,1,2) [2025-04-12 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893518', 'tblTempUsageDetail_20' ) start [2025-04-12 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893518', 'tblTempUsageDetail_20' ) end [2025-04-12 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:53:23] Production.INFO: ==26959== Releasing lock... [2025-04-12 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:53:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:54:06 [end_date_ymd] => 2025-04-12 18:54:06 [RateCDR] => 1 ) [2025-04-12 18:54: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-04-12 15:54:06' and `end` < '2025-04-12 18:54: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-04-12 18:54:19] Production.INFO: count ==1644 [2025-04-12 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:54:06 - End Time 2025-04-12 18:54:06 [2025-04-12 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893523', 'tblTempUsageDetail_20' ) start [2025-04-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893523', 'tblTempUsageDetail_20' ) end [2025-04-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893523', 'tblTempVendorCDR_20' ) start [2025-04-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893523', 'tblTempVendorCDR_20' ) end [2025-04-12 18:54:19] Production.INFO: ProcessCDR(1,14893523,1,1,2) [2025-04-12 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893523', 'tblTempUsageDetail_20' ) start [2025-04-12 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893523', 'tblTempUsageDetail_20' ) end [2025-04-12 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:54:23] Production.INFO: ==27069== Releasing lock... [2025-04-12 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:54:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:55:05 [end_date_ymd] => 2025-04-12 18:55:05 [RateCDR] => 1 ) [2025-04-12 18:55: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-04-12 15:55:05' and `end` < '2025-04-12 18:55: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-04-12 18:55:18] Production.INFO: count ==1644 [2025-04-12 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:55:05 - End Time 2025-04-12 18:55:05 [2025-04-12 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893528', 'tblTempUsageDetail_20' ) start [2025-04-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893528', 'tblTempUsageDetail_20' ) end [2025-04-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893528', 'tblTempVendorCDR_20' ) start [2025-04-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893528', 'tblTempVendorCDR_20' ) end [2025-04-12 18:55:19] Production.INFO: ProcessCDR(1,14893528,1,1,2) [2025-04-12 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893528', 'tblTempUsageDetail_20' ) start [2025-04-12 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893528', 'tblTempUsageDetail_20' ) end [2025-04-12 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:55:22] Production.INFO: ==27157== Releasing lock... [2025-04-12 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:55:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:56:05 [end_date_ymd] => 2025-04-12 18:56:05 [RateCDR] => 1 ) [2025-04-12 18:56: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-04-12 15:56:05' and `end` < '2025-04-12 18:56: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-04-12 18:56:18] Production.INFO: count ==1644 [2025-04-12 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:56:05 - End Time 2025-04-12 18:56:05 [2025-04-12 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893533', 'tblTempUsageDetail_20' ) start [2025-04-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893533', 'tblTempUsageDetail_20' ) end [2025-04-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893533', 'tblTempVendorCDR_20' ) start [2025-04-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893533', 'tblTempVendorCDR_20' ) end [2025-04-12 18:56:19] Production.INFO: ProcessCDR(1,14893533,1,1,2) [2025-04-12 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893533', 'tblTempUsageDetail_20' ) start [2025-04-12 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893533', 'tblTempUsageDetail_20' ) end [2025-04-12 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:56:22] Production.INFO: ==27249== Releasing lock... [2025-04-12 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:56:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:57:05 [end_date_ymd] => 2025-04-12 18:57:05 [RateCDR] => 1 ) [2025-04-12 18:57: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-04-12 15:57:05' and `end` < '2025-04-12 18:57: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-04-12 18:57:18] Production.INFO: count ==1644 [2025-04-12 18:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:57:05 - End Time 2025-04-12 18:57:05 [2025-04-12 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893538', 'tblTempUsageDetail_20' ) start [2025-04-12 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893538', 'tblTempUsageDetail_20' ) end [2025-04-12 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893538', 'tblTempVendorCDR_20' ) start [2025-04-12 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893538', 'tblTempVendorCDR_20' ) end [2025-04-12 18:57:18] Production.INFO: ProcessCDR(1,14893538,1,1,2) [2025-04-12 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893538', 'tblTempUsageDetail_20' ) start [2025-04-12 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893538', 'tblTempUsageDetail_20' ) end [2025-04-12 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:57:22] Production.INFO: ==27381== Releasing lock... [2025-04-12 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:57:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:58:05 [end_date_ymd] => 2025-04-12 18:58:05 [RateCDR] => 1 ) [2025-04-12 18:58: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-04-12 15:58:05' and `end` < '2025-04-12 18:58: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-04-12 18:58:18] Production.INFO: count ==1642 [2025-04-12 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 15:58:05 - End Time 2025-04-12 18:58:05 [2025-04-12 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893543', 'tblTempUsageDetail_20' ) start [2025-04-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893543', 'tblTempUsageDetail_20' ) end [2025-04-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893543', 'tblTempVendorCDR_20' ) start [2025-04-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893543', 'tblTempVendorCDR_20' ) end [2025-04-12 18:58:19] Production.INFO: ProcessCDR(1,14893543,1,1,2) [2025-04-12 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893543', 'tblTempUsageDetail_20' ) start [2025-04-12 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893543', 'tblTempUsageDetail_20' ) end [2025-04-12 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:58:24] Production.INFO: ==27461== Releasing lock... [2025-04-12 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:58:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 15:59:04 [end_date_ymd] => 2025-04-12 18:59:04 [RateCDR] => 1 ) [2025-04-12 18:59: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-04-12 15:59:04' and `end` < '2025-04-12 18:59: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-04-12 18:59:18] Production.INFO: count ==1639 [2025-04-12 18:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 15:59:04 - End Time 2025-04-12 18:59:04 [2025-04-12 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893548', 'tblTempUsageDetail_20' ) start [2025-04-12 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893548', 'tblTempUsageDetail_20' ) end [2025-04-12 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893548', 'tblTempVendorCDR_20' ) start [2025-04-12 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893548', 'tblTempVendorCDR_20' ) end [2025-04-12 18:59:18] Production.INFO: ProcessCDR(1,14893548,1,1,2) [2025-04-12 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893548', 'tblTempUsageDetail_20' ) start [2025-04-12 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893548', 'tblTempUsageDetail_20' ) end [2025-04-12 18:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 18:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 18:59:21] Production.INFO: ==27551== Releasing lock... [2025-04-12 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 18:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:00:06 [end_date_ymd] => 2025-04-12 19:00:06 [RateCDR] => 1 ) [2025-04-12 19:00: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-04-12 16:00:06' and `end` < '2025-04-12 19:00: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-04-12 19:00:19] Production.INFO: count ==1638 [2025-04-12 19:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:00:06 - End Time 2025-04-12 19:00:06 [2025-04-12 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893553', 'tblTempUsageDetail_20' ) start [2025-04-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893553', 'tblTempUsageDetail_20' ) end [2025-04-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893553', 'tblTempVendorCDR_20' ) start [2025-04-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893553', 'tblTempVendorCDR_20' ) end [2025-04-12 19:00:19] Production.INFO: ProcessCDR(1,14893553,1,1,2) [2025-04-12 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893553', 'tblTempUsageDetail_20' ) start [2025-04-12 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893553', 'tblTempUsageDetail_20' ) end [2025-04-12 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:00:23] Production.INFO: ==27649== Releasing lock... [2025-04-12 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:00:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-12 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:01:05 [end_date_ymd] => 2025-04-12 19:01:05 [RateCDR] => 1 ) [2025-04-12 19:01: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-04-12 16:01:05' and `end` < '2025-04-12 19:01: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-04-12 19:01:18] Production.INFO: count ==1693 [2025-04-12 19:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:01:05 - End Time 2025-04-12 19:01:05 [2025-04-12 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893559', 'tblTempUsageDetail_20' ) start [2025-04-12 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893559', 'tblTempUsageDetail_20' ) end [2025-04-12 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893559', 'tblTempVendorCDR_20' ) start [2025-04-12 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893559', 'tblTempVendorCDR_20' ) end [2025-04-12 19:01:18] Production.INFO: ProcessCDR(1,14893559,1,1,2) [2025-04-12 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893559', 'tblTempUsageDetail_20' ) start [2025-04-12 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893559', 'tblTempUsageDetail_20' ) end [2025-04-12 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:01:22] Production.INFO: ==27831== Releasing lock... [2025-04-12 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:01:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:02:06 [end_date_ymd] => 2025-04-12 19:02:06 [RateCDR] => 1 ) [2025-04-12 19:02: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-04-12 16:02:06' and `end` < '2025-04-12 19:02: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-04-12 19:02:19] Production.INFO: count ==1692 [2025-04-12 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:02:06 - End Time 2025-04-12 19:02:06 [2025-04-12 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893564', 'tblTempUsageDetail_20' ) start [2025-04-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893564', 'tblTempUsageDetail_20' ) end [2025-04-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893564', 'tblTempVendorCDR_20' ) start [2025-04-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893564', 'tblTempVendorCDR_20' ) end [2025-04-12 19:02:19] Production.INFO: ProcessCDR(1,14893564,1,1,2) [2025-04-12 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893564', 'tblTempUsageDetail_20' ) start [2025-04-12 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893564', 'tblTempUsageDetail_20' ) end [2025-04-12 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:02:23] Production.INFO: ==27924== Releasing lock... [2025-04-12 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:02:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:03:05 [end_date_ymd] => 2025-04-12 19:03:05 [RateCDR] => 1 ) [2025-04-12 19:03: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-04-12 16:03:05' and `end` < '2025-04-12 19:03: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-04-12 19:03:18] Production.INFO: count ==1694 [2025-04-12 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:03:05 - End Time 2025-04-12 19:03:05 [2025-04-12 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893569', 'tblTempUsageDetail_20' ) start [2025-04-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893569', 'tblTempUsageDetail_20' ) end [2025-04-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893569', 'tblTempVendorCDR_20' ) start [2025-04-12 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893569', 'tblTempVendorCDR_20' ) end [2025-04-12 19:03:19] Production.INFO: ProcessCDR(1,14893569,1,1,2) [2025-04-12 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893569', 'tblTempUsageDetail_20' ) start [2025-04-12 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893569', 'tblTempUsageDetail_20' ) end [2025-04-12 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:03:22] Production.INFO: ==28005== Releasing lock... [2025-04-12 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:03:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:04:06 [end_date_ymd] => 2025-04-12 19:04:06 [RateCDR] => 1 ) [2025-04-12 19:04: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-04-12 16:04:06' and `end` < '2025-04-12 19:04: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-04-12 19:04:19] Production.INFO: count ==1695 [2025-04-12 19:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:04:06 - End Time 2025-04-12 19:04:06 [2025-04-12 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893574', 'tblTempUsageDetail_20' ) start [2025-04-12 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893574', 'tblTempUsageDetail_20' ) end [2025-04-12 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893574', 'tblTempVendorCDR_20' ) start [2025-04-12 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893574', 'tblTempVendorCDR_20' ) end [2025-04-12 19:04:19] Production.INFO: ProcessCDR(1,14893574,1,1,2) [2025-04-12 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893574', 'tblTempUsageDetail_20' ) start [2025-04-12 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893574', 'tblTempUsageDetail_20' ) end [2025-04-12 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:04:24] Production.INFO: ==28093== Releasing lock... [2025-04-12 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:04:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:05:05 [end_date_ymd] => 2025-04-12 19:05:05 [RateCDR] => 1 ) [2025-04-12 19:05: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-04-12 16:05:05' and `end` < '2025-04-12 19:05: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-04-12 19:05:18] Production.INFO: count ==1695 [2025-04-12 19:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:05:05 - End Time 2025-04-12 19:05:05 [2025-04-12 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893579', 'tblTempUsageDetail_20' ) start [2025-04-12 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893579', 'tblTempUsageDetail_20' ) end [2025-04-12 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893579', 'tblTempVendorCDR_20' ) start [2025-04-12 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893579', 'tblTempVendorCDR_20' ) end [2025-04-12 19:05:18] Production.INFO: ProcessCDR(1,14893579,1,1,2) [2025-04-12 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893579', 'tblTempUsageDetail_20' ) start [2025-04-12 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893579', 'tblTempUsageDetail_20' ) end [2025-04-12 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:05:23] Production.INFO: ==28263== Releasing lock... [2025-04-12 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:05:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:06:05 [end_date_ymd] => 2025-04-12 19:06:05 [RateCDR] => 1 ) [2025-04-12 19:06: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-04-12 16:06:05' and `end` < '2025-04-12 19:06: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-04-12 19:06:18] Production.INFO: count ==1695 [2025-04-12 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:06:05 - End Time 2025-04-12 19:06:05 [2025-04-12 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893584', 'tblTempUsageDetail_20' ) start [2025-04-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893584', 'tblTempUsageDetail_20' ) end [2025-04-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893584', 'tblTempVendorCDR_20' ) start [2025-04-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893584', 'tblTempVendorCDR_20' ) end [2025-04-12 19:06:19] Production.INFO: ProcessCDR(1,14893584,1,1,2) [2025-04-12 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893584', 'tblTempUsageDetail_20' ) start [2025-04-12 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893584', 'tblTempUsageDetail_20' ) end [2025-04-12 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:06:24] Production.INFO: ==28354== Releasing lock... [2025-04-12 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:06:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:07:04 [end_date_ymd] => 2025-04-12 19:07:04 [RateCDR] => 1 ) [2025-04-12 19:07: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-04-12 16:07:04' and `end` < '2025-04-12 19:07: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-04-12 19:07:17] Production.INFO: count ==1692 [2025-04-12 19:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:07:04 - End Time 2025-04-12 19:07:04 [2025-04-12 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893589', 'tblTempUsageDetail_20' ) start [2025-04-12 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893589', 'tblTempUsageDetail_20' ) end [2025-04-12 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893589', 'tblTempVendorCDR_20' ) start [2025-04-12 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893589', 'tblTempVendorCDR_20' ) end [2025-04-12 19:07:18] Production.INFO: ProcessCDR(1,14893589,1,1,2) [2025-04-12 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893589', 'tblTempUsageDetail_20' ) start [2025-04-12 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893589', 'tblTempUsageDetail_20' ) end [2025-04-12 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:07:21] Production.INFO: ==28448== Releasing lock... [2025-04-12 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:07:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:08:05 [end_date_ymd] => 2025-04-12 19:08:05 [RateCDR] => 1 ) [2025-04-12 19:08: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-04-12 16:08:05' and `end` < '2025-04-12 19:08: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-04-12 19:08:18] Production.INFO: count ==1689 [2025-04-12 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:08:05 - End Time 2025-04-12 19:08:05 [2025-04-12 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893594', 'tblTempUsageDetail_20' ) start [2025-04-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893594', 'tblTempUsageDetail_20' ) end [2025-04-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893594', 'tblTempVendorCDR_20' ) start [2025-04-12 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893594', 'tblTempVendorCDR_20' ) end [2025-04-12 19:08:19] Production.INFO: ProcessCDR(1,14893594,1,1,2) [2025-04-12 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893594', 'tblTempUsageDetail_20' ) start [2025-04-12 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893594', 'tblTempUsageDetail_20' ) end [2025-04-12 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:08:24] Production.INFO: ==28628== Releasing lock... [2025-04-12 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:08:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:09:04 [end_date_ymd] => 2025-04-12 19:09:04 [RateCDR] => 1 ) [2025-04-12 19:09: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-04-12 16:09:04' and `end` < '2025-04-12 19:09: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-04-12 19:09:18] Production.INFO: count ==1687 [2025-04-12 19:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:09:04 - End Time 2025-04-12 19:09:04 [2025-04-12 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893599', 'tblTempUsageDetail_20' ) start [2025-04-12 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893599', 'tblTempUsageDetail_20' ) end [2025-04-12 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893599', 'tblTempVendorCDR_20' ) start [2025-04-12 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893599', 'tblTempVendorCDR_20' ) end [2025-04-12 19:09:18] Production.INFO: ProcessCDR(1,14893599,1,1,2) [2025-04-12 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893599', 'tblTempUsageDetail_20' ) start [2025-04-12 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893599', 'tblTempUsageDetail_20' ) end [2025-04-12 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:09:23] Production.INFO: ==28709== Releasing lock... [2025-04-12 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:10:06 [end_date_ymd] => 2025-04-12 19:10:06 [RateCDR] => 1 ) [2025-04-12 19:10: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-04-12 16:10:06' and `end` < '2025-04-12 19:10: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-04-12 19:10:19] Production.INFO: count ==1690 [2025-04-12 19:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:10:06 - End Time 2025-04-12 19:10:06 [2025-04-12 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893604', 'tblTempUsageDetail_20' ) start [2025-04-12 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893604', 'tblTempUsageDetail_20' ) end [2025-04-12 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893604', 'tblTempVendorCDR_20' ) start [2025-04-12 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893604', 'tblTempVendorCDR_20' ) end [2025-04-12 19:10:19] Production.INFO: ProcessCDR(1,14893604,1,1,2) [2025-04-12 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893604', 'tblTempUsageDetail_20' ) start [2025-04-12 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893604', 'tblTempUsageDetail_20' ) end [2025-04-12 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:10:24] Production.INFO: ==28845== Releasing lock... [2025-04-12 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:10:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:11:05 [end_date_ymd] => 2025-04-12 19:11:05 [RateCDR] => 1 ) [2025-04-12 19:11: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-04-12 16:11:05' and `end` < '2025-04-12 19:11: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-04-12 19:11:19] Production.INFO: count ==1717 [2025-04-12 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:11:05 - End Time 2025-04-12 19:11:05 [2025-04-12 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893610', 'tblTempUsageDetail_20' ) start [2025-04-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893610', 'tblTempUsageDetail_20' ) end [2025-04-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893610', 'tblTempVendorCDR_20' ) start [2025-04-12 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893610', 'tblTempVendorCDR_20' ) end [2025-04-12 19:11:19] Production.INFO: ProcessCDR(1,14893610,1,1,2) [2025-04-12 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893610', 'tblTempUsageDetail_20' ) start [2025-04-12 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893610', 'tblTempUsageDetail_20' ) end [2025-04-12 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:11:24] Production.INFO: ==28978== Releasing lock... [2025-04-12 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:11:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:12:05 [end_date_ymd] => 2025-04-12 19:12:05 [RateCDR] => 1 ) [2025-04-12 19:12: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-04-12 16:12:05' and `end` < '2025-04-12 19:12: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-04-12 19:12:18] Production.INFO: count ==1715 [2025-04-12 19:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:12:05 - End Time 2025-04-12 19:12:05 [2025-04-12 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893615', 'tblTempUsageDetail_20' ) start [2025-04-12 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893615', 'tblTempUsageDetail_20' ) end [2025-04-12 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893615', 'tblTempVendorCDR_20' ) start [2025-04-12 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893615', 'tblTempVendorCDR_20' ) end [2025-04-12 19:12:19] Production.INFO: ProcessCDR(1,14893615,1,1,2) [2025-04-12 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893615', 'tblTempUsageDetail_20' ) start [2025-04-12 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893615', 'tblTempUsageDetail_20' ) end [2025-04-12 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:12:22] Production.INFO: ==29229== Releasing lock... [2025-04-12 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:12:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:13:05 [end_date_ymd] => 2025-04-12 19:13:05 [RateCDR] => 1 ) [2025-04-12 19:13: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-04-12 16:13:05' and `end` < '2025-04-12 19:13: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-04-12 19:13:18] Production.INFO: count ==1716 [2025-04-12 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:13:05 - End Time 2025-04-12 19:13:05 [2025-04-12 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893620', 'tblTempUsageDetail_20' ) start [2025-04-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893620', 'tblTempUsageDetail_20' ) end [2025-04-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893620', 'tblTempVendorCDR_20' ) start [2025-04-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893620', 'tblTempVendorCDR_20' ) end [2025-04-12 19:13:19] Production.INFO: ProcessCDR(1,14893620,1,1,2) [2025-04-12 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893620', 'tblTempUsageDetail_20' ) start [2025-04-12 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893620', 'tblTempUsageDetail_20' ) end [2025-04-12 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:13:23] Production.INFO: ==29362== Releasing lock... [2025-04-12 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:13:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:14:05 [end_date_ymd] => 2025-04-12 19:14:05 [RateCDR] => 1 ) [2025-04-12 19:14: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-04-12 16:14:05' and `end` < '2025-04-12 19:14: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-04-12 19:14:18] Production.INFO: count ==1717 [2025-04-12 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:14:05 - End Time 2025-04-12 19:14:05 [2025-04-12 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893625', 'tblTempUsageDetail_20' ) start [2025-04-12 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893625', 'tblTempUsageDetail_20' ) end [2025-04-12 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893625', 'tblTempVendorCDR_20' ) start [2025-04-12 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893625', 'tblTempVendorCDR_20' ) end [2025-04-12 19:14:19] Production.INFO: ProcessCDR(1,14893625,1,1,2) [2025-04-12 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893625', 'tblTempUsageDetail_20' ) start [2025-04-12 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893625', 'tblTempUsageDetail_20' ) end [2025-04-12 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:14:22] Production.INFO: ==29486== Releasing lock... [2025-04-12 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:14:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:15:06 [end_date_ymd] => 2025-04-12 19:15:06 [RateCDR] => 1 ) [2025-04-12 19:15: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-04-12 16:15:06' and `end` < '2025-04-12 19:15: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-04-12 19:15:19] Production.INFO: count ==1719 [2025-04-12 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:15:06 - End Time 2025-04-12 19:15:06 [2025-04-12 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893630', 'tblTempUsageDetail_20' ) start [2025-04-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893630', 'tblTempUsageDetail_20' ) end [2025-04-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893630', 'tblTempVendorCDR_20' ) start [2025-04-12 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893630', 'tblTempVendorCDR_20' ) end [2025-04-12 19:15:19] Production.INFO: ProcessCDR(1,14893630,1,1,2) [2025-04-12 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893630', 'tblTempUsageDetail_20' ) start [2025-04-12 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893630', 'tblTempUsageDetail_20' ) end [2025-04-12 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:15:24] Production.INFO: ==29688== Releasing lock... [2025-04-12 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:15:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:16:05 [end_date_ymd] => 2025-04-12 19:16:05 [RateCDR] => 1 ) [2025-04-12 19:16: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-04-12 16:16:05' and `end` < '2025-04-12 19:16: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-04-12 19:16:18] Production.INFO: count ==1719 [2025-04-12 19:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:16:05 - End Time 2025-04-12 19:16:05 [2025-04-12 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893635', 'tblTempUsageDetail_20' ) start [2025-04-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893635', 'tblTempUsageDetail_20' ) end [2025-04-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893635', 'tblTempVendorCDR_20' ) start [2025-04-12 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893635', 'tblTempVendorCDR_20' ) end [2025-04-12 19:16:19] Production.INFO: ProcessCDR(1,14893635,1,1,2) [2025-04-12 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893635', 'tblTempUsageDetail_20' ) start [2025-04-12 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893635', 'tblTempUsageDetail_20' ) end [2025-04-12 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:16:22] Production.INFO: ==29811== Releasing lock... [2025-04-12 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:17:05 [end_date_ymd] => 2025-04-12 19:17:05 [RateCDR] => 1 ) [2025-04-12 19:17: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-04-12 16:17:05' and `end` < '2025-04-12 19:17: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-04-12 19:17:19] Production.INFO: count ==1719 [2025-04-12 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:17:05 - End Time 2025-04-12 19:17:05 [2025-04-12 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893640', 'tblTempUsageDetail_20' ) start [2025-04-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893640', 'tblTempUsageDetail_20' ) end [2025-04-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893640', 'tblTempVendorCDR_20' ) start [2025-04-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893640', 'tblTempVendorCDR_20' ) end [2025-04-12 19:17:19] Production.INFO: ProcessCDR(1,14893640,1,1,2) [2025-04-12 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893640', 'tblTempUsageDetail_20' ) start [2025-04-12 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893640', 'tblTempUsageDetail_20' ) end [2025-04-12 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:17:22] Production.INFO: ==29938== Releasing lock... [2025-04-12 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:18:05 [end_date_ymd] => 2025-04-12 19:18:05 [RateCDR] => 1 ) [2025-04-12 19:18: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-04-12 16:18:05' and `end` < '2025-04-12 19:18: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-04-12 19:18:18] Production.INFO: count ==1727 [2025-04-12 19:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:18:05 - End Time 2025-04-12 19:18:05 [2025-04-12 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893645', 'tblTempUsageDetail_20' ) start [2025-04-12 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893645', 'tblTempUsageDetail_20' ) end [2025-04-12 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893645', 'tblTempVendorCDR_20' ) start [2025-04-12 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893645', 'tblTempVendorCDR_20' ) end [2025-04-12 19:18:18] Production.INFO: ProcessCDR(1,14893645,1,1,2) [2025-04-12 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893645', 'tblTempUsageDetail_20' ) start [2025-04-12 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893645', 'tblTempUsageDetail_20' ) end [2025-04-12 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:18:23] Production.INFO: ==30063== Releasing lock... [2025-04-12 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:19:05 [end_date_ymd] => 2025-04-12 19:19:05 [RateCDR] => 1 ) [2025-04-12 19:19: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-04-12 16:19:05' and `end` < '2025-04-12 19:19: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-04-12 19:19:18] Production.INFO: count ==1728 [2025-04-12 19:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:19:05 - End Time 2025-04-12 19:19:05 [2025-04-12 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893650', 'tblTempUsageDetail_20' ) start [2025-04-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893650', 'tblTempUsageDetail_20' ) end [2025-04-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893650', 'tblTempVendorCDR_20' ) start [2025-04-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893650', 'tblTempVendorCDR_20' ) end [2025-04-12 19:19:19] Production.INFO: ProcessCDR(1,14893650,1,1,2) [2025-04-12 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893650', 'tblTempUsageDetail_20' ) start [2025-04-12 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893650', 'tblTempUsageDetail_20' ) end [2025-04-12 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:19:24] Production.INFO: ==30183== Releasing lock... [2025-04-12 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:19:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:20:05 [end_date_ymd] => 2025-04-12 19:20:05 [RateCDR] => 1 ) [2025-04-12 19:20: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-04-12 16:20:05' and `end` < '2025-04-12 19:20: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-04-12 19:20:18] Production.INFO: count ==1730 [2025-04-12 19:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:20:05 - End Time 2025-04-12 19:20:05 [2025-04-12 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893656', 'tblTempUsageDetail_20' ) start [2025-04-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893656', 'tblTempUsageDetail_20' ) end [2025-04-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893656', 'tblTempVendorCDR_20' ) start [2025-04-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893656', 'tblTempVendorCDR_20' ) end [2025-04-12 19:20:19] Production.INFO: ProcessCDR(1,14893656,1,1,2) [2025-04-12 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893656', 'tblTempUsageDetail_20' ) start [2025-04-12 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893656', 'tblTempUsageDetail_20' ) end [2025-04-12 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:20:22] Production.INFO: ==30309== Releasing lock... [2025-04-12 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:21:05 [end_date_ymd] => 2025-04-12 19:21:05 [RateCDR] => 1 ) [2025-04-12 19:21: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-04-12 16:21:05' and `end` < '2025-04-12 19:21: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-04-12 19:21:18] Production.INFO: count ==1752 [2025-04-12 19:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:21:05 - End Time 2025-04-12 19:21:05 [2025-04-12 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893661', 'tblTempUsageDetail_20' ) start [2025-04-12 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893661', 'tblTempUsageDetail_20' ) end [2025-04-12 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893661', 'tblTempVendorCDR_20' ) start [2025-04-12 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893661', 'tblTempVendorCDR_20' ) end [2025-04-12 19:21:18] Production.INFO: ProcessCDR(1,14893661,1,1,2) [2025-04-12 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893661', 'tblTempUsageDetail_20' ) start [2025-04-12 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893661', 'tblTempUsageDetail_20' ) end [2025-04-12 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:21:22] Production.INFO: ==30434== Releasing lock... [2025-04-12 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:21:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:22:05 [end_date_ymd] => 2025-04-12 19:22:05 [RateCDR] => 1 ) [2025-04-12 19:22: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-04-12 16:22:05' and `end` < '2025-04-12 19:22: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-04-12 19:22:19] Production.INFO: count ==1765 [2025-04-12 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:22:05 - End Time 2025-04-12 19:22:05 [2025-04-12 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893666', 'tblTempUsageDetail_20' ) start [2025-04-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893666', 'tblTempUsageDetail_20' ) end [2025-04-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893666', 'tblTempVendorCDR_20' ) start [2025-04-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893666', 'tblTempVendorCDR_20' ) end [2025-04-12 19:22:19] Production.INFO: ProcessCDR(1,14893666,1,1,2) [2025-04-12 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893666', 'tblTempUsageDetail_20' ) start [2025-04-12 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893666', 'tblTempUsageDetail_20' ) end [2025-04-12 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:22:22] Production.INFO: ==30562== Releasing lock... [2025-04-12 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:22:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:23:05 [end_date_ymd] => 2025-04-12 19:23:05 [RateCDR] => 1 ) [2025-04-12 19:23: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-04-12 16:23:05' and `end` < '2025-04-12 19:23: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-04-12 19:23:18] Production.INFO: count ==1762 [2025-04-12 19:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:23:05 - End Time 2025-04-12 19:23:05 [2025-04-12 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893671', 'tblTempUsageDetail_20' ) start [2025-04-12 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893671', 'tblTempUsageDetail_20' ) end [2025-04-12 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893671', 'tblTempVendorCDR_20' ) start [2025-04-12 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893671', 'tblTempVendorCDR_20' ) end [2025-04-12 19:23:18] Production.INFO: ProcessCDR(1,14893671,1,1,2) [2025-04-12 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893671', 'tblTempUsageDetail_20' ) start [2025-04-12 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893671', 'tblTempUsageDetail_20' ) end [2025-04-12 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:23:22] Production.INFO: ==30689== Releasing lock... [2025-04-12 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:24:06 [end_date_ymd] => 2025-04-12 19:24:06 [RateCDR] => 1 ) [2025-04-12 19:24: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-04-12 16:24:06' and `end` < '2025-04-12 19:24: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-04-12 19:24:19] Production.INFO: count ==1760 [2025-04-12 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:24:06 - End Time 2025-04-12 19:24:06 [2025-04-12 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893676', 'tblTempUsageDetail_20' ) start [2025-04-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893676', 'tblTempUsageDetail_20' ) end [2025-04-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893676', 'tblTempVendorCDR_20' ) start [2025-04-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893676', 'tblTempVendorCDR_20' ) end [2025-04-12 19:24:19] Production.INFO: ProcessCDR(1,14893676,1,1,2) [2025-04-12 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893676', 'tblTempUsageDetail_20' ) start [2025-04-12 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893676', 'tblTempUsageDetail_20' ) end [2025-04-12 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:24:24] Production.INFO: ==30819== Releasing lock... [2025-04-12 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:24:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:25:05 [end_date_ymd] => 2025-04-12 19:25:05 [RateCDR] => 1 ) [2025-04-12 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 16:25:05' and `end` < '2025-04-12 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 19:25:18] Production.INFO: count ==1756 [2025-04-12 19:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:25:05 - End Time 2025-04-12 19:25:05 [2025-04-12 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893681', 'tblTempUsageDetail_20' ) start [2025-04-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893681', 'tblTempUsageDetail_20' ) end [2025-04-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893681', 'tblTempVendorCDR_20' ) start [2025-04-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893681', 'tblTempVendorCDR_20' ) end [2025-04-12 19:25:18] Production.INFO: ProcessCDR(1,14893681,1,1,2) [2025-04-12 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893681', 'tblTempUsageDetail_20' ) start [2025-04-12 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893681', 'tblTempUsageDetail_20' ) end [2025-04-12 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:25:22] Production.INFO: ==30940== Releasing lock... [2025-04-12 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:26:06 [end_date_ymd] => 2025-04-12 19:26:06 [RateCDR] => 1 ) [2025-04-12 19:26: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-04-12 16:26:06' and `end` < '2025-04-12 19:26: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-04-12 19:26:19] Production.INFO: count ==1756 [2025-04-12 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:26:06 - End Time 2025-04-12 19:26:06 [2025-04-12 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893686', 'tblTempUsageDetail_20' ) start [2025-04-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893686', 'tblTempUsageDetail_20' ) end [2025-04-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893686', 'tblTempVendorCDR_20' ) start [2025-04-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893686', 'tblTempVendorCDR_20' ) end [2025-04-12 19:26:19] Production.INFO: ProcessCDR(1,14893686,1,1,2) [2025-04-12 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893686', 'tblTempUsageDetail_20' ) start [2025-04-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893686', 'tblTempUsageDetail_20' ) end [2025-04-12 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:26:24] Production.INFO: ==31072== Releasing lock... [2025-04-12 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:26:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:27:05 [end_date_ymd] => 2025-04-12 19:27:05 [RateCDR] => 1 ) [2025-04-12 19:27: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-04-12 16:27:05' and `end` < '2025-04-12 19:27: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-04-12 19:27:18] Production.INFO: count ==1757 [2025-04-12 19:27:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:27:05 - End Time 2025-04-12 19:27:05 [2025-04-12 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893691', 'tblTempUsageDetail_20' ) start [2025-04-12 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893691', 'tblTempUsageDetail_20' ) end [2025-04-12 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893691', 'tblTempVendorCDR_20' ) start [2025-04-12 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893691', 'tblTempVendorCDR_20' ) end [2025-04-12 19:27:18] Production.INFO: ProcessCDR(1,14893691,1,1,2) [2025-04-12 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893691', 'tblTempUsageDetail_20' ) start [2025-04-12 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893691', 'tblTempUsageDetail_20' ) end [2025-04-12 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:27:23] Production.INFO: ==31193== Releasing lock... [2025-04-12 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:27:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:28:05 [end_date_ymd] => 2025-04-12 19:28:05 [RateCDR] => 1 ) [2025-04-12 19:28: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-04-12 16:28:05' and `end` < '2025-04-12 19:28: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-04-12 19:28:18] Production.INFO: count ==1758 [2025-04-12 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:28:05 - End Time 2025-04-12 19:28:05 [2025-04-12 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893696', 'tblTempUsageDetail_20' ) start [2025-04-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893696', 'tblTempUsageDetail_20' ) end [2025-04-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893696', 'tblTempVendorCDR_20' ) start [2025-04-12 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893696', 'tblTempVendorCDR_20' ) end [2025-04-12 19:28:19] Production.INFO: ProcessCDR(1,14893696,1,1,2) [2025-04-12 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893696', 'tblTempUsageDetail_20' ) start [2025-04-12 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893696', 'tblTempUsageDetail_20' ) end [2025-04-12 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:28:24] Production.INFO: ==31357== Releasing lock... [2025-04-12 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:28:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:29:05 [end_date_ymd] => 2025-04-12 19:29:05 [RateCDR] => 1 ) [2025-04-12 19:29: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-04-12 16:29:05' and `end` < '2025-04-12 19:29: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-04-12 19:29:18] Production.INFO: count ==1755 [2025-04-12 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:29:05 - End Time 2025-04-12 19:29:05 [2025-04-12 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893701', 'tblTempUsageDetail_20' ) start [2025-04-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893701', 'tblTempUsageDetail_20' ) end [2025-04-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893701', 'tblTempVendorCDR_20' ) start [2025-04-12 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893701', 'tblTempVendorCDR_20' ) end [2025-04-12 19:29:19] Production.INFO: ProcessCDR(1,14893701,1,1,2) [2025-04-12 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893701', 'tblTempUsageDetail_20' ) start [2025-04-12 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893701', 'tblTempUsageDetail_20' ) end [2025-04-12 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:29:22] Production.INFO: ==31469== Releasing lock... [2025-04-12 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:30:06 [end_date_ymd] => 2025-04-12 19:30:06 [RateCDR] => 1 ) [2025-04-12 19:30: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-04-12 16:30:06' and `end` < '2025-04-12 19:30: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-04-12 19:30:19] Production.INFO: count ==1756 [2025-04-12 19:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:30:06 - End Time 2025-04-12 19:30:06 [2025-04-12 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893707', 'tblTempUsageDetail_20' ) start [2025-04-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893707', 'tblTempUsageDetail_20' ) end [2025-04-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893707', 'tblTempVendorCDR_20' ) start [2025-04-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893707', 'tblTempVendorCDR_20' ) end [2025-04-12 19:30:19] Production.INFO: ProcessCDR(1,14893707,1,1,2) [2025-04-12 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893707', 'tblTempUsageDetail_20' ) start [2025-04-12 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893707', 'tblTempUsageDetail_20' ) end [2025-04-12 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:30:23] Production.INFO: ==31558== Releasing lock... [2025-04-12 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:31:05 [end_date_ymd] => 2025-04-12 19:31:05 [RateCDR] => 1 ) [2025-04-12 19:31: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-04-12 16:31:05' and `end` < '2025-04-12 19:31: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-04-12 19:31:18] Production.INFO: count ==1740 [2025-04-12 19:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:31:05 - End Time 2025-04-12 19:31:05 [2025-04-12 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893712', 'tblTempUsageDetail_20' ) start [2025-04-12 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893712', 'tblTempUsageDetail_20' ) end [2025-04-12 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893712', 'tblTempVendorCDR_20' ) start [2025-04-12 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893712', 'tblTempVendorCDR_20' ) end [2025-04-12 19:31:18] Production.INFO: ProcessCDR(1,14893712,1,1,2) [2025-04-12 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893712', 'tblTempUsageDetail_20' ) start [2025-04-12 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893712', 'tblTempUsageDetail_20' ) end [2025-04-12 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:31:23] Production.INFO: ==31646== Releasing lock... [2025-04-12 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-12 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:32:05 [end_date_ymd] => 2025-04-12 19:32:05 [RateCDR] => 1 ) [2025-04-12 19:32: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-04-12 16:32:05' and `end` < '2025-04-12 19:32: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-04-12 19:32:18] Production.INFO: count ==1736 [2025-04-12 19:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:32:05 - End Time 2025-04-12 19:32:05 [2025-04-12 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893717', 'tblTempUsageDetail_20' ) start [2025-04-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893717', 'tblTempUsageDetail_20' ) end [2025-04-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893717', 'tblTempVendorCDR_20' ) start [2025-04-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893717', 'tblTempVendorCDR_20' ) end [2025-04-12 19:32:18] Production.INFO: ProcessCDR(1,14893717,1,1,2) [2025-04-12 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893717', 'tblTempUsageDetail_20' ) start [2025-04-12 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893717', 'tblTempUsageDetail_20' ) end [2025-04-12 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:32:23] Production.INFO: ==31728== Releasing lock... [2025-04-12 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:32:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:33:05 [end_date_ymd] => 2025-04-12 19:33:05 [RateCDR] => 1 ) [2025-04-12 19:33: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-04-12 16:33:05' and `end` < '2025-04-12 19:33: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-04-12 19:33:18] Production.INFO: count ==1733 [2025-04-12 19:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:33:05 - End Time 2025-04-12 19:33:05 [2025-04-12 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893722', 'tblTempUsageDetail_20' ) start [2025-04-12 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893722', 'tblTempUsageDetail_20' ) end [2025-04-12 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893722', 'tblTempVendorCDR_20' ) start [2025-04-12 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893722', 'tblTempVendorCDR_20' ) end [2025-04-12 19:33:18] Production.INFO: ProcessCDR(1,14893722,1,1,2) [2025-04-12 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893722', 'tblTempUsageDetail_20' ) start [2025-04-12 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893722', 'tblTempUsageDetail_20' ) end [2025-04-12 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:33:22] Production.INFO: ==31807== Releasing lock... [2025-04-12 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:33:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:34:05 [end_date_ymd] => 2025-04-12 19:34:05 [RateCDR] => 1 ) [2025-04-12 19:34: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-04-12 16:34:05' and `end` < '2025-04-12 19:34: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-04-12 19:34:18] Production.INFO: count ==1734 [2025-04-12 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:34:05 - End Time 2025-04-12 19:34:05 [2025-04-12 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893727', 'tblTempUsageDetail_20' ) start [2025-04-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893727', 'tblTempUsageDetail_20' ) end [2025-04-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893727', 'tblTempVendorCDR_20' ) start [2025-04-12 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893727', 'tblTempVendorCDR_20' ) end [2025-04-12 19:34:19] Production.INFO: ProcessCDR(1,14893727,1,1,2) [2025-04-12 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893727', 'tblTempUsageDetail_20' ) start [2025-04-12 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893727', 'tblTempUsageDetail_20' ) end [2025-04-12 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:34:22] Production.INFO: ==31886== Releasing lock... [2025-04-12 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:35:05 [end_date_ymd] => 2025-04-12 19:35:05 [RateCDR] => 1 ) [2025-04-12 19:35: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-04-12 16:35:05' and `end` < '2025-04-12 19:35: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-04-12 19:35:18] Production.INFO: count ==1734 [2025-04-12 19:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:35:05 - End Time 2025-04-12 19:35:05 [2025-04-12 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893732', 'tblTempUsageDetail_20' ) start [2025-04-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893732', 'tblTempUsageDetail_20' ) end [2025-04-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893732', 'tblTempVendorCDR_20' ) start [2025-04-12 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893732', 'tblTempVendorCDR_20' ) end [2025-04-12 19:35:18] Production.INFO: ProcessCDR(1,14893732,1,1,2) [2025-04-12 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893732', 'tblTempUsageDetail_20' ) start [2025-04-12 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893732', 'tblTempUsageDetail_20' ) end [2025-04-12 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:35:22] Production.INFO: ==31962== Releasing lock... [2025-04-12 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:36:05 [end_date_ymd] => 2025-04-12 19:36:05 [RateCDR] => 1 ) [2025-04-12 19:36: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-04-12 16:36:05' and `end` < '2025-04-12 19:36: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-04-12 19:36:18] Production.INFO: count ==1725 [2025-04-12 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:36:05 - End Time 2025-04-12 19:36:05 [2025-04-12 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893737', 'tblTempUsageDetail_20' ) start [2025-04-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893737', 'tblTempUsageDetail_20' ) end [2025-04-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893737', 'tblTempVendorCDR_20' ) start [2025-04-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893737', 'tblTempVendorCDR_20' ) end [2025-04-12 19:36:19] Production.INFO: ProcessCDR(1,14893737,1,1,2) [2025-04-12 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893737', 'tblTempUsageDetail_20' ) start [2025-04-12 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893737', 'tblTempUsageDetail_20' ) end [2025-04-12 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:36:22] Production.INFO: ==32040== Releasing lock... [2025-04-12 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:37:05 [end_date_ymd] => 2025-04-12 19:37:05 [RateCDR] => 1 ) [2025-04-12 19:37: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-04-12 16:37:05' and `end` < '2025-04-12 19:37: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-04-12 19:37:18] Production.INFO: count ==1723 [2025-04-12 19:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:37:05 - End Time 2025-04-12 19:37:05 [2025-04-12 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893742', 'tblTempUsageDetail_20' ) start [2025-04-12 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893742', 'tblTempUsageDetail_20' ) end [2025-04-12 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893742', 'tblTempVendorCDR_20' ) start [2025-04-12 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893742', 'tblTempVendorCDR_20' ) end [2025-04-12 19:37:18] Production.INFO: ProcessCDR(1,14893742,1,1,2) [2025-04-12 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893742', 'tblTempUsageDetail_20' ) start [2025-04-12 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893742', 'tblTempUsageDetail_20' ) end [2025-04-12 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:37:21] Production.INFO: ==32123== Releasing lock... [2025-04-12 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:37:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:38:05 [end_date_ymd] => 2025-04-12 19:38:05 [RateCDR] => 1 ) [2025-04-12 19:38: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-04-12 16:38:05' and `end` < '2025-04-12 19:38: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-04-12 19:38:18] Production.INFO: count ==1724 [2025-04-12 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:38:05 - End Time 2025-04-12 19:38:05 [2025-04-12 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893747', 'tblTempUsageDetail_20' ) start [2025-04-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893747', 'tblTempUsageDetail_20' ) end [2025-04-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893747', 'tblTempVendorCDR_20' ) start [2025-04-12 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893747', 'tblTempVendorCDR_20' ) end [2025-04-12 19:38:19] Production.INFO: ProcessCDR(1,14893747,1,1,2) [2025-04-12 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893747', 'tblTempUsageDetail_20' ) start [2025-04-12 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893747', 'tblTempUsageDetail_20' ) end [2025-04-12 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:38:22] Production.INFO: ==32212== Releasing lock... [2025-04-12 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:39:05 [end_date_ymd] => 2025-04-12 19:39:05 [RateCDR] => 1 ) [2025-04-12 19:39: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-04-12 16:39:05' and `end` < '2025-04-12 19:39: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-04-12 19:39:19] Production.INFO: count ==1723 [2025-04-12 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:39:05 - End Time 2025-04-12 19:39:05 [2025-04-12 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893752', 'tblTempUsageDetail_20' ) start [2025-04-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893752', 'tblTempUsageDetail_20' ) end [2025-04-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893752', 'tblTempVendorCDR_20' ) start [2025-04-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893752', 'tblTempVendorCDR_20' ) end [2025-04-12 19:39:19] Production.INFO: ProcessCDR(1,14893752,1,1,2) [2025-04-12 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893752', 'tblTempUsageDetail_20' ) start [2025-04-12 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893752', 'tblTempUsageDetail_20' ) end [2025-04-12 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:39:22] Production.INFO: ==32296== Releasing lock... [2025-04-12 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:40:06 [end_date_ymd] => 2025-04-12 19:40:06 [RateCDR] => 1 ) [2025-04-12 19:40: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-04-12 16:40:06' and `end` < '2025-04-12 19:40: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-04-12 19:40:19] Production.INFO: count ==1723 [2025-04-12 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:40:06 - End Time 2025-04-12 19:40:06 [2025-04-12 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893758', 'tblTempUsageDetail_20' ) start [2025-04-12 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893758', 'tblTempUsageDetail_20' ) end [2025-04-12 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893758', 'tblTempVendorCDR_20' ) start [2025-04-12 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893758', 'tblTempVendorCDR_20' ) end [2025-04-12 19:40:19] Production.INFO: ProcessCDR(1,14893758,1,1,2) [2025-04-12 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893758', 'tblTempUsageDetail_20' ) start [2025-04-12 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893758', 'tblTempUsageDetail_20' ) end [2025-04-12 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:40:23] Production.INFO: ==32376== Releasing lock... [2025-04-12 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:40:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:41:05 [end_date_ymd] => 2025-04-12 19:41:05 [RateCDR] => 1 ) [2025-04-12 19:41: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-04-12 16:41:05' and `end` < '2025-04-12 19:41: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-04-12 19:41:18] Production.INFO: count ==1705 [2025-04-12 19:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:41:05 - End Time 2025-04-12 19:41:05 [2025-04-12 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893763', 'tblTempUsageDetail_20' ) start [2025-04-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893763', 'tblTempUsageDetail_20' ) end [2025-04-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893763', 'tblTempVendorCDR_20' ) start [2025-04-12 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893763', 'tblTempVendorCDR_20' ) end [2025-04-12 19:41:18] Production.INFO: ProcessCDR(1,14893763,1,1,2) [2025-04-12 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893763', 'tblTempUsageDetail_20' ) start [2025-04-12 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893763', 'tblTempUsageDetail_20' ) end [2025-04-12 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:41:22] Production.INFO: ==32459== Releasing lock... [2025-04-12 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:41:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:42:05 [end_date_ymd] => 2025-04-12 19:42:05 [RateCDR] => 1 ) [2025-04-12 19:42: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-04-12 16:42:05' and `end` < '2025-04-12 19:42: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-04-12 19:42:18] Production.INFO: count ==1705 [2025-04-12 19:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:42:05 - End Time 2025-04-12 19:42:05 [2025-04-12 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893768', 'tblTempUsageDetail_20' ) start [2025-04-12 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893768', 'tblTempUsageDetail_20' ) end [2025-04-12 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893768', 'tblTempVendorCDR_20' ) start [2025-04-12 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893768', 'tblTempVendorCDR_20' ) end [2025-04-12 19:42:18] Production.INFO: ProcessCDR(1,14893768,1,1,2) [2025-04-12 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893768', 'tblTempUsageDetail_20' ) start [2025-04-12 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893768', 'tblTempUsageDetail_20' ) end [2025-04-12 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:42:22] Production.INFO: ==32545== Releasing lock... [2025-04-12 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:42:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:43:05 [end_date_ymd] => 2025-04-12 19:43:05 [RateCDR] => 1 ) [2025-04-12 19:43: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-04-12 16:43:05' and `end` < '2025-04-12 19:43: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-04-12 19:43:18] Production.INFO: count ==1705 [2025-04-12 19:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:43:05 - End Time 2025-04-12 19:43:05 [2025-04-12 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893773', 'tblTempUsageDetail_20' ) start [2025-04-12 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893773', 'tblTempUsageDetail_20' ) end [2025-04-12 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893773', 'tblTempVendorCDR_20' ) start [2025-04-12 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893773', 'tblTempVendorCDR_20' ) end [2025-04-12 19:43:18] Production.INFO: ProcessCDR(1,14893773,1,1,2) [2025-04-12 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893773', 'tblTempUsageDetail_20' ) start [2025-04-12 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893773', 'tblTempUsageDetail_20' ) end [2025-04-12 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:43:22] Production.INFO: ==32664== Releasing lock... [2025-04-12 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:43:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-12 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:44:05 [end_date_ymd] => 2025-04-12 19:44:05 [RateCDR] => 1 ) [2025-04-12 19:44: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-04-12 16:44:05' and `end` < '2025-04-12 19:44: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-04-12 19:44:18] Production.INFO: count ==1701 [2025-04-12 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:44:05 - End Time 2025-04-12 19:44:05 [2025-04-12 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893778', 'tblTempUsageDetail_20' ) start [2025-04-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893778', 'tblTempUsageDetail_20' ) end [2025-04-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893778', 'tblTempVendorCDR_20' ) start [2025-04-12 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893778', 'tblTempVendorCDR_20' ) end [2025-04-12 19:44:19] Production.INFO: ProcessCDR(1,14893778,1,1,2) [2025-04-12 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893778', 'tblTempUsageDetail_20' ) start [2025-04-12 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893778', 'tblTempUsageDetail_20' ) end [2025-04-12 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:44:22] Production.INFO: ==32744== Releasing lock... [2025-04-12 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:44:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:45:05 [end_date_ymd] => 2025-04-12 19:45:05 [RateCDR] => 1 ) [2025-04-12 19:45: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-04-12 16:45:05' and `end` < '2025-04-12 19:45: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-04-12 19:45:19] Production.INFO: count ==1704 [2025-04-12 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:45:05 - End Time 2025-04-12 19:45:05 [2025-04-12 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893783', 'tblTempUsageDetail_20' ) start [2025-04-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893783', 'tblTempUsageDetail_20' ) end [2025-04-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893783', 'tblTempVendorCDR_20' ) start [2025-04-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893783', 'tblTempVendorCDR_20' ) end [2025-04-12 19:45:19] Production.INFO: ProcessCDR(1,14893783,1,1,2) [2025-04-12 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893783', 'tblTempUsageDetail_20' ) start [2025-04-12 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893783', 'tblTempUsageDetail_20' ) end [2025-04-12 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:45:24] Production.INFO: ==374== Releasing lock... [2025-04-12 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:45:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:46:05 [end_date_ymd] => 2025-04-12 19:46:05 [RateCDR] => 1 ) [2025-04-12 19:46: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-04-12 16:46:05' and `end` < '2025-04-12 19:46: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-04-12 19:46:18] Production.INFO: count ==1705 [2025-04-12 19:46:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:46:05 - End Time 2025-04-12 19:46:05 [2025-04-12 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893788', 'tblTempUsageDetail_20' ) start [2025-04-12 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893788', 'tblTempUsageDetail_20' ) end [2025-04-12 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893788', 'tblTempVendorCDR_20' ) start [2025-04-12 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893788', 'tblTempVendorCDR_20' ) end [2025-04-12 19:46:18] Production.INFO: ProcessCDR(1,14893788,1,1,2) [2025-04-12 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893788', 'tblTempUsageDetail_20' ) start [2025-04-12 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893788', 'tblTempUsageDetail_20' ) end [2025-04-12 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:46:22] Production.INFO: ==453== Releasing lock... [2025-04-12 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:46:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:47:05 [end_date_ymd] => 2025-04-12 19:47:05 [RateCDR] => 1 ) [2025-04-12 19:47: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-04-12 16:47:05' and `end` < '2025-04-12 19:47: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-04-12 19:47:18] Production.INFO: count ==1702 [2025-04-12 19:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:47:05 - End Time 2025-04-12 19:47:05 [2025-04-12 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893793', 'tblTempUsageDetail_20' ) start [2025-04-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893793', 'tblTempUsageDetail_20' ) end [2025-04-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893793', 'tblTempVendorCDR_20' ) start [2025-04-12 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893793', 'tblTempVendorCDR_20' ) end [2025-04-12 19:47:18] Production.INFO: ProcessCDR(1,14893793,1,1,2) [2025-04-12 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893793', 'tblTempUsageDetail_20' ) start [2025-04-12 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893793', 'tblTempUsageDetail_20' ) end [2025-04-12 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:47:22] Production.INFO: ==533== Releasing lock... [2025-04-12 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:47:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:48:05 [end_date_ymd] => 2025-04-12 19:48:05 [RateCDR] => 1 ) [2025-04-12 19:48: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-04-12 16:48:05' and `end` < '2025-04-12 19:48: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-04-12 19:48:18] Production.INFO: count ==1701 [2025-04-12 19:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:48:05 - End Time 2025-04-12 19:48:05 [2025-04-12 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893798', 'tblTempUsageDetail_20' ) start [2025-04-12 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893798', 'tblTempUsageDetail_20' ) end [2025-04-12 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893798', 'tblTempVendorCDR_20' ) start [2025-04-12 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893798', 'tblTempVendorCDR_20' ) end [2025-04-12 19:48:18] Production.INFO: ProcessCDR(1,14893798,1,1,2) [2025-04-12 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893798', 'tblTempUsageDetail_20' ) start [2025-04-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893798', 'tblTempUsageDetail_20' ) end [2025-04-12 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:48:22] Production.INFO: ==616== Releasing lock... [2025-04-12 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:48:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:49:05 [end_date_ymd] => 2025-04-12 19:49:05 [RateCDR] => 1 ) [2025-04-12 19:49: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-04-12 16:49:05' and `end` < '2025-04-12 19:49: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-04-12 19:49:18] Production.INFO: count ==1701 [2025-04-12 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:49:05 - End Time 2025-04-12 19:49:05 [2025-04-12 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893803', 'tblTempUsageDetail_20' ) start [2025-04-12 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893803', 'tblTempUsageDetail_20' ) end [2025-04-12 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893803', 'tblTempVendorCDR_20' ) start [2025-04-12 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893803', 'tblTempVendorCDR_20' ) end [2025-04-12 19:49:19] Production.INFO: ProcessCDR(1,14893803,1,1,2) [2025-04-12 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893803', 'tblTempUsageDetail_20' ) start [2025-04-12 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893803', 'tblTempUsageDetail_20' ) end [2025-04-12 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:49:22] Production.INFO: ==714== Releasing lock... [2025-04-12 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:49:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:50:06 [end_date_ymd] => 2025-04-12 19:50:06 [RateCDR] => 1 ) [2025-04-12 19:50: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-04-12 16:50:06' and `end` < '2025-04-12 19:50: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-04-12 19:50:19] Production.INFO: count ==1700 [2025-04-12 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:50:06 - End Time 2025-04-12 19:50:06 [2025-04-12 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893808', 'tblTempUsageDetail_20' ) start [2025-04-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893808', 'tblTempUsageDetail_20' ) end [2025-04-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893808', 'tblTempVendorCDR_20' ) start [2025-04-12 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893808', 'tblTempVendorCDR_20' ) end [2025-04-12 19:50:19] Production.INFO: ProcessCDR(1,14893808,1,1,2) [2025-04-12 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893808', 'tblTempUsageDetail_20' ) start [2025-04-12 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893808', 'tblTempUsageDetail_20' ) end [2025-04-12 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:50:23] Production.INFO: ==804== Releasing lock... [2025-04-12 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:50:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:51:05 [end_date_ymd] => 2025-04-12 19:51:05 [RateCDR] => 1 ) [2025-04-12 19:51: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-04-12 16:51:05' and `end` < '2025-04-12 19:51: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-04-12 19:51:18] Production.INFO: count ==1705 [2025-04-12 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:51:05 - End Time 2025-04-12 19:51:05 [2025-04-12 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893814', 'tblTempUsageDetail_20' ) start [2025-04-12 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893814', 'tblTempUsageDetail_20' ) end [2025-04-12 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893814', 'tblTempVendorCDR_20' ) start [2025-04-12 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893814', 'tblTempVendorCDR_20' ) end [2025-04-12 19:51:19] Production.INFO: ProcessCDR(1,14893814,1,1,2) [2025-04-12 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893814', 'tblTempUsageDetail_20' ) start [2025-04-12 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893814', 'tblTempUsageDetail_20' ) end [2025-04-12 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:51:22] Production.INFO: ==886== Releasing lock... [2025-04-12 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:52:05 [end_date_ymd] => 2025-04-12 19:52:05 [RateCDR] => 1 ) [2025-04-12 19:52: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-04-12 16:52:05' and `end` < '2025-04-12 19:52: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-04-12 19:52:18] Production.INFO: count ==1704 [2025-04-12 19:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:52:05 - End Time 2025-04-12 19:52:05 [2025-04-12 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893818', 'tblTempUsageDetail_20' ) start [2025-04-12 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893818', 'tblTempUsageDetail_20' ) end [2025-04-12 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893818', 'tblTempVendorCDR_20' ) start [2025-04-12 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893818', 'tblTempVendorCDR_20' ) end [2025-04-12 19:52:18] Production.INFO: ProcessCDR(1,14893818,1,1,2) [2025-04-12 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893818', 'tblTempUsageDetail_20' ) start [2025-04-12 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893818', 'tblTempUsageDetail_20' ) end [2025-04-12 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:52:23] Production.INFO: ==967== Releasing lock... [2025-04-12 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:53:05 [end_date_ymd] => 2025-04-12 19:53:05 [RateCDR] => 1 ) [2025-04-12 19:53: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-04-12 16:53:05' and `end` < '2025-04-12 19:53: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-04-12 19:53:18] Production.INFO: count ==1701 [2025-04-12 19:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:53:05 - End Time 2025-04-12 19:53:05 [2025-04-12 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893824', 'tblTempUsageDetail_20' ) start [2025-04-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893824', 'tblTempUsageDetail_20' ) end [2025-04-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893824', 'tblTempVendorCDR_20' ) start [2025-04-12 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893824', 'tblTempVendorCDR_20' ) end [2025-04-12 19:53:18] Production.INFO: ProcessCDR(1,14893824,1,1,2) [2025-04-12 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893824', 'tblTempUsageDetail_20' ) start [2025-04-12 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893824', 'tblTempUsageDetail_20' ) end [2025-04-12 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:53:22] Production.INFO: ==1046== Releasing lock... [2025-04-12 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:54:05 [end_date_ymd] => 2025-04-12 19:54:05 [RateCDR] => 1 ) [2025-04-12 19:54: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-04-12 16:54:05' and `end` < '2025-04-12 19:54: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-04-12 19:54:18] Production.INFO: count ==1700 [2025-04-12 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:54:05 - End Time 2025-04-12 19:54:05 [2025-04-12 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893829', 'tblTempUsageDetail_20' ) start [2025-04-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893829', 'tblTempUsageDetail_20' ) end [2025-04-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893829', 'tblTempVendorCDR_20' ) start [2025-04-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893829', 'tblTempVendorCDR_20' ) end [2025-04-12 19:54:18] Production.INFO: ProcessCDR(1,14893829,1,1,2) [2025-04-12 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893829', 'tblTempUsageDetail_20' ) start [2025-04-12 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893829', 'tblTempUsageDetail_20' ) end [2025-04-12 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:54:22] Production.INFO: ==1135== Releasing lock... [2025-04-12 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:54:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:55:05 [end_date_ymd] => 2025-04-12 19:55:05 [RateCDR] => 1 ) [2025-04-12 19:55: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-04-12 16:55:05' and `end` < '2025-04-12 19:55: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-04-12 19:55:18] Production.INFO: count ==1698 [2025-04-12 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:55:05 - End Time 2025-04-12 19:55:05 [2025-04-12 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893834', 'tblTempUsageDetail_20' ) start [2025-04-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893834', 'tblTempUsageDetail_20' ) end [2025-04-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893834', 'tblTempVendorCDR_20' ) start [2025-04-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893834', 'tblTempVendorCDR_20' ) end [2025-04-12 19:55:19] Production.INFO: ProcessCDR(1,14893834,1,1,2) [2025-04-12 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893834', 'tblTempUsageDetail_20' ) start [2025-04-12 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893834', 'tblTempUsageDetail_20' ) end [2025-04-12 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:55:22] Production.INFO: ==1215== Releasing lock... [2025-04-12 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:55:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:56:05 [end_date_ymd] => 2025-04-12 19:56:05 [RateCDR] => 1 ) [2025-04-12 19:56: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-04-12 16:56:05' and `end` < '2025-04-12 19:56: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-04-12 19:56:18] Production.INFO: count ==1699 [2025-04-12 19:56:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:56:05 - End Time 2025-04-12 19:56:05 [2025-04-12 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893839', 'tblTempUsageDetail_20' ) start [2025-04-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893839', 'tblTempUsageDetail_20' ) end [2025-04-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893839', 'tblTempVendorCDR_20' ) start [2025-04-12 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893839', 'tblTempVendorCDR_20' ) end [2025-04-12 19:56:18] Production.INFO: ProcessCDR(1,14893839,1,1,2) [2025-04-12 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893839', 'tblTempUsageDetail_20' ) start [2025-04-12 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893839', 'tblTempUsageDetail_20' ) end [2025-04-12 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:56:23] Production.INFO: ==1307== Releasing lock... [2025-04-12 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:56:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:57:05 [end_date_ymd] => 2025-04-12 19:57:05 [RateCDR] => 1 ) [2025-04-12 19:57: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-04-12 16:57:05' and `end` < '2025-04-12 19:57: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-04-12 19:57:19] Production.INFO: count ==1698 [2025-04-12 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 16:57:05 - End Time 2025-04-12 19:57:05 [2025-04-12 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893844', 'tblTempUsageDetail_20' ) start [2025-04-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893844', 'tblTempUsageDetail_20' ) end [2025-04-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893844', 'tblTempVendorCDR_20' ) start [2025-04-12 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893844', 'tblTempVendorCDR_20' ) end [2025-04-12 19:57:19] Production.INFO: ProcessCDR(1,14893844,1,1,2) [2025-04-12 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893844', 'tblTempUsageDetail_20' ) start [2025-04-12 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893844', 'tblTempUsageDetail_20' ) end [2025-04-12 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:57:24] Production.INFO: ==1394== Releasing lock... [2025-04-12 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:57:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:58:05 [end_date_ymd] => 2025-04-12 19:58:05 [RateCDR] => 1 ) [2025-04-12 19:58: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-04-12 16:58:05' and `end` < '2025-04-12 19:58: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-04-12 19:58:18] Production.INFO: count ==1696 [2025-04-12 19:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:58:05 - End Time 2025-04-12 19:58:05 [2025-04-12 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893849', 'tblTempUsageDetail_20' ) start [2025-04-12 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893849', 'tblTempUsageDetail_20' ) end [2025-04-12 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893849', 'tblTempVendorCDR_20' ) start [2025-04-12 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893849', 'tblTempVendorCDR_20' ) end [2025-04-12 19:58:18] Production.INFO: ProcessCDR(1,14893849,1,1,2) [2025-04-12 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893849', 'tblTempUsageDetail_20' ) start [2025-04-12 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893849', 'tblTempUsageDetail_20' ) end [2025-04-12 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:58:22] Production.INFO: ==1468== Releasing lock... [2025-04-12 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:58:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 16:59:05 [end_date_ymd] => 2025-04-12 19:59:05 [RateCDR] => 1 ) [2025-04-12 19:59: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-04-12 16:59:05' and `end` < '2025-04-12 19:59: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-04-12 19:59:18] Production.INFO: count ==1699 [2025-04-12 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 16:59:05 - End Time 2025-04-12 19:59:05 [2025-04-12 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893854', 'tblTempUsageDetail_20' ) start [2025-04-12 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893854', 'tblTempUsageDetail_20' ) end [2025-04-12 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893854', 'tblTempVendorCDR_20' ) start [2025-04-12 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893854', 'tblTempVendorCDR_20' ) end [2025-04-12 19:59:18] Production.INFO: ProcessCDR(1,14893854,1,1,2) [2025-04-12 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893854', 'tblTempUsageDetail_20' ) start [2025-04-12 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893854', 'tblTempUsageDetail_20' ) end [2025-04-12 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 19:59:21] Production.INFO: ==1618== Releasing lock... [2025-04-12 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 19:59:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:00:06 [end_date_ymd] => 2025-04-12 20:00:06 [RateCDR] => 1 ) [2025-04-12 20:00: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-04-12 17:00:06' and `end` < '2025-04-12 20:00: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-04-12 20:00:19] Production.INFO: count ==1698 [2025-04-12 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:00:06 - End Time 2025-04-12 20:00:06 [2025-04-12 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893860', 'tblTempUsageDetail_20' ) start [2025-04-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893860', 'tblTempUsageDetail_20' ) end [2025-04-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893860', 'tblTempVendorCDR_20' ) start [2025-04-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893860', 'tblTempVendorCDR_20' ) end [2025-04-12 20:00:19] Production.INFO: ProcessCDR(1,14893860,1,1,2) [2025-04-12 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893860', 'tblTempUsageDetail_20' ) start [2025-04-12 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893860', 'tblTempUsageDetail_20' ) end [2025-04-12 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:00:23] Production.INFO: ==1699== Releasing lock... [2025-04-12 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:00:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:01:05 [end_date_ymd] => 2025-04-12 20:01:05 [RateCDR] => 1 ) [2025-04-12 20:01: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-04-12 17:01:05' and `end` < '2025-04-12 20:01: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-04-12 20:01:18] Production.INFO: count ==1700 [2025-04-12 20:01:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:01:05 - End Time 2025-04-12 20:01:05 [2025-04-12 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893865', 'tblTempUsageDetail_20' ) start [2025-04-12 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893865', 'tblTempUsageDetail_20' ) end [2025-04-12 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893865', 'tblTempVendorCDR_20' ) start [2025-04-12 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893865', 'tblTempVendorCDR_20' ) end [2025-04-12 20:01:18] Production.INFO: ProcessCDR(1,14893865,1,1,2) [2025-04-12 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893865', 'tblTempUsageDetail_20' ) start [2025-04-12 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893865', 'tblTempUsageDetail_20' ) end [2025-04-12 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:01:21] Production.INFO: ==1827== Releasing lock... [2025-04-12 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:01:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:02:05 [end_date_ymd] => 2025-04-12 20:02:05 [RateCDR] => 1 ) [2025-04-12 20:02: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-04-12 17:02:05' and `end` < '2025-04-12 20:02: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-04-12 20:02:18] Production.INFO: count ==1698 [2025-04-12 20:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:02:05 - End Time 2025-04-12 20:02:05 [2025-04-12 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893870', 'tblTempUsageDetail_20' ) start [2025-04-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893870', 'tblTempUsageDetail_20' ) end [2025-04-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893870', 'tblTempVendorCDR_20' ) start [2025-04-12 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893870', 'tblTempVendorCDR_20' ) end [2025-04-12 20:02:18] Production.INFO: ProcessCDR(1,14893870,1,1,2) [2025-04-12 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893870', 'tblTempUsageDetail_20' ) start [2025-04-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893870', 'tblTempUsageDetail_20' ) end [2025-04-12 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:02:23] Production.INFO: ==1906== Releasing lock... [2025-04-12 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:02:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:03:05 [end_date_ymd] => 2025-04-12 20:03:05 [RateCDR] => 1 ) [2025-04-12 20:03: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-04-12 17:03:05' and `end` < '2025-04-12 20:03: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-04-12 20:03:18] Production.INFO: count ==1693 [2025-04-12 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:03:05 - End Time 2025-04-12 20:03:05 [2025-04-12 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893875', 'tblTempUsageDetail_20' ) start [2025-04-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893875', 'tblTempUsageDetail_20' ) end [2025-04-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893875', 'tblTempVendorCDR_20' ) start [2025-04-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893875', 'tblTempVendorCDR_20' ) end [2025-04-12 20:03:19] Production.INFO: ProcessCDR(1,14893875,1,1,2) [2025-04-12 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893875', 'tblTempUsageDetail_20' ) start [2025-04-12 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893875', 'tblTempUsageDetail_20' ) end [2025-04-12 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:03:24] Production.INFO: ==1980== Releasing lock... [2025-04-12 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:03:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:04:05 [end_date_ymd] => 2025-04-12 20:04:05 [RateCDR] => 1 ) [2025-04-12 20:04: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-04-12 17:04:05' and `end` < '2025-04-12 20:04: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-04-12 20:04:18] Production.INFO: count ==1690 [2025-04-12 20:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:04:05 - End Time 2025-04-12 20:04:05 [2025-04-12 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893880', 'tblTempUsageDetail_20' ) start [2025-04-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893880', 'tblTempUsageDetail_20' ) end [2025-04-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893880', 'tblTempVendorCDR_20' ) start [2025-04-12 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893880', 'tblTempVendorCDR_20' ) end [2025-04-12 20:04:18] Production.INFO: ProcessCDR(1,14893880,1,1,2) [2025-04-12 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893880', 'tblTempUsageDetail_20' ) start [2025-04-12 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893880', 'tblTempUsageDetail_20' ) end [2025-04-12 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:04:21] Production.INFO: ==2052== Releasing lock... [2025-04-12 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:04:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:05:05 [end_date_ymd] => 2025-04-12 20:05:05 [RateCDR] => 1 ) [2025-04-12 20:05: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-04-12 17:05:05' and `end` < '2025-04-12 20:05: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-04-12 20:05:18] Production.INFO: count ==1689 [2025-04-12 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:05:05 - End Time 2025-04-12 20:05:05 [2025-04-12 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893885', 'tblTempUsageDetail_20' ) start [2025-04-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893885', 'tblTempUsageDetail_20' ) end [2025-04-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893885', 'tblTempVendorCDR_20' ) start [2025-04-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893885', 'tblTempVendorCDR_20' ) end [2025-04-12 20:05:19] Production.INFO: ProcessCDR(1,14893885,1,1,2) [2025-04-12 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893885', 'tblTempUsageDetail_20' ) start [2025-04-12 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893885', 'tblTempUsageDetail_20' ) end [2025-04-12 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:05:24] Production.INFO: ==2130== Releasing lock... [2025-04-12 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:05:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:06:05 [end_date_ymd] => 2025-04-12 20:06:05 [RateCDR] => 1 ) [2025-04-12 20:06: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-04-12 17:06:05' and `end` < '2025-04-12 20:06: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-04-12 20:06:18] Production.INFO: count ==1684 [2025-04-12 20:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:06:05 - End Time 2025-04-12 20:06:05 [2025-04-12 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893890', 'tblTempUsageDetail_20' ) start [2025-04-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893890', 'tblTempUsageDetail_20' ) end [2025-04-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893890', 'tblTempVendorCDR_20' ) start [2025-04-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893890', 'tblTempVendorCDR_20' ) end [2025-04-12 20:06:18] Production.INFO: ProcessCDR(1,14893890,1,1,2) [2025-04-12 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893890', 'tblTempUsageDetail_20' ) start [2025-04-12 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893890', 'tblTempUsageDetail_20' ) end [2025-04-12 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:06:22] Production.INFO: ==2205== Releasing lock... [2025-04-12 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:06:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:07:05 [end_date_ymd] => 2025-04-12 20:07:05 [RateCDR] => 1 ) [2025-04-12 20:07: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-04-12 17:07:05' and `end` < '2025-04-12 20:07: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-04-12 20:07:18] Production.INFO: count ==1683 [2025-04-12 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:07:05 - End Time 2025-04-12 20:07:05 [2025-04-12 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893895', 'tblTempUsageDetail_20' ) start [2025-04-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893895', 'tblTempUsageDetail_20' ) end [2025-04-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893895', 'tblTempVendorCDR_20' ) start [2025-04-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893895', 'tblTempVendorCDR_20' ) end [2025-04-12 20:07:19] Production.INFO: ProcessCDR(1,14893895,1,1,2) [2025-04-12 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893895', 'tblTempUsageDetail_20' ) start [2025-04-12 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893895', 'tblTempUsageDetail_20' ) end [2025-04-12 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:07:24] Production.INFO: ==2283== Releasing lock... [2025-04-12 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:07:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:08:05 [end_date_ymd] => 2025-04-12 20:08:05 [RateCDR] => 1 ) [2025-04-12 20:08: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-04-12 17:08:05' and `end` < '2025-04-12 20:08: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-04-12 20:08:18] Production.INFO: count ==1687 [2025-04-12 20:08:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:08:05 - End Time 2025-04-12 20:08:05 [2025-04-12 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893900', 'tblTempUsageDetail_20' ) start [2025-04-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893900', 'tblTempUsageDetail_20' ) end [2025-04-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893900', 'tblTempVendorCDR_20' ) start [2025-04-12 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893900', 'tblTempVendorCDR_20' ) end [2025-04-12 20:08:18] Production.INFO: ProcessCDR(1,14893900,1,1,2) [2025-04-12 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893900', 'tblTempUsageDetail_20' ) start [2025-04-12 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893900', 'tblTempUsageDetail_20' ) end [2025-04-12 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:08:23] Production.INFO: ==2357== Releasing lock... [2025-04-12 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:08:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:09:05 [end_date_ymd] => 2025-04-12 20:09:05 [RateCDR] => 1 ) [2025-04-12 20:09: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-04-12 17:09:05' and `end` < '2025-04-12 20:09: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-04-12 20:09:18] Production.INFO: count ==1687 [2025-04-12 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:09:05 - End Time 2025-04-12 20:09:05 [2025-04-12 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893905', 'tblTempUsageDetail_20' ) start [2025-04-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893905', 'tblTempUsageDetail_20' ) end [2025-04-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893905', 'tblTempVendorCDR_20' ) start [2025-04-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893905', 'tblTempVendorCDR_20' ) end [2025-04-12 20:09:19] Production.INFO: ProcessCDR(1,14893905,1,1,2) [2025-04-12 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893905', 'tblTempUsageDetail_20' ) start [2025-04-12 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893905', 'tblTempUsageDetail_20' ) end [2025-04-12 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:09:23] Production.INFO: ==2437== Releasing lock... [2025-04-12 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:10:06 [end_date_ymd] => 2025-04-12 20:10:06 [RateCDR] => 1 ) [2025-04-12 20:10: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-04-12 17:10:06' and `end` < '2025-04-12 20:10: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-04-12 20:10:19] Production.INFO: count ==1668 [2025-04-12 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:10:06 - End Time 2025-04-12 20:10:06 [2025-04-12 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893911', 'tblTempUsageDetail_20' ) start [2025-04-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893911', 'tblTempUsageDetail_20' ) end [2025-04-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893911', 'tblTempVendorCDR_20' ) start [2025-04-12 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893911', 'tblTempVendorCDR_20' ) end [2025-04-12 20:10:19] Production.INFO: ProcessCDR(1,14893911,1,1,2) [2025-04-12 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893911', 'tblTempUsageDetail_20' ) start [2025-04-12 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893911', 'tblTempUsageDetail_20' ) end [2025-04-12 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:10:23] Production.INFO: ==2521== Releasing lock... [2025-04-12 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:10:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:11:05 [end_date_ymd] => 2025-04-12 20:11:05 [RateCDR] => 1 ) [2025-04-12 20:11: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-04-12 17:11:05' and `end` < '2025-04-12 20:11: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-04-12 20:11:18] Production.INFO: count ==1684 [2025-04-12 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:11:05 - End Time 2025-04-12 20:11:05 [2025-04-12 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893916', 'tblTempUsageDetail_20' ) start [2025-04-12 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893916', 'tblTempUsageDetail_20' ) end [2025-04-12 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893916', 'tblTempVendorCDR_20' ) start [2025-04-12 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893916', 'tblTempVendorCDR_20' ) end [2025-04-12 20:11:18] Production.INFO: ProcessCDR(1,14893916,1,1,2) [2025-04-12 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893916', 'tblTempUsageDetail_20' ) start [2025-04-12 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893916', 'tblTempUsageDetail_20' ) end [2025-04-12 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:11:22] Production.INFO: ==2594== Releasing lock... [2025-04-12 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:11:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:12:05 [end_date_ymd] => 2025-04-12 20:12:05 [RateCDR] => 1 ) [2025-04-12 20:12: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-04-12 17:12:05' and `end` < '2025-04-12 20:12: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-04-12 20:12:19] Production.INFO: count ==1686 [2025-04-12 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:12:05 - End Time 2025-04-12 20:12:05 [2025-04-12 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893921', 'tblTempUsageDetail_20' ) start [2025-04-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893921', 'tblTempUsageDetail_20' ) end [2025-04-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893921', 'tblTempVendorCDR_20' ) start [2025-04-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893921', 'tblTempVendorCDR_20' ) end [2025-04-12 20:12:19] Production.INFO: ProcessCDR(1,14893921,1,1,2) [2025-04-12 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893921', 'tblTempUsageDetail_20' ) start [2025-04-12 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893921', 'tblTempUsageDetail_20' ) end [2025-04-12 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:12:22] Production.INFO: ==2668== Releasing lock... [2025-04-12 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:12:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:13:05 [end_date_ymd] => 2025-04-12 20:13:05 [RateCDR] => 1 ) [2025-04-12 20:13: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-04-12 17:13:05' and `end` < '2025-04-12 20:13: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-04-12 20:13:18] Production.INFO: count ==1686 [2025-04-12 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:13:05 - End Time 2025-04-12 20:13:05 [2025-04-12 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893926', 'tblTempUsageDetail_20' ) start [2025-04-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893926', 'tblTempUsageDetail_20' ) end [2025-04-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893926', 'tblTempVendorCDR_20' ) start [2025-04-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893926', 'tblTempVendorCDR_20' ) end [2025-04-12 20:13:18] Production.INFO: ProcessCDR(1,14893926,1,1,2) [2025-04-12 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893926', 'tblTempUsageDetail_20' ) start [2025-04-12 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893926', 'tblTempUsageDetail_20' ) end [2025-04-12 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:13:22] Production.INFO: ==2743== Releasing lock... [2025-04-12 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:13:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:14:05 [end_date_ymd] => 2025-04-12 20:14:05 [RateCDR] => 1 ) [2025-04-12 20:14: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-04-12 17:14:05' and `end` < '2025-04-12 20:14: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-04-12 20:14:18] Production.INFO: count ==1689 [2025-04-12 20:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:14:05 - End Time 2025-04-12 20:14:05 [2025-04-12 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893931', 'tblTempUsageDetail_20' ) start [2025-04-12 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893931', 'tblTempUsageDetail_20' ) end [2025-04-12 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893931', 'tblTempVendorCDR_20' ) start [2025-04-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893931', 'tblTempVendorCDR_20' ) end [2025-04-12 20:14:19] Production.INFO: ProcessCDR(1,14893931,1,1,2) [2025-04-12 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893931', 'tblTempUsageDetail_20' ) start [2025-04-12 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893931', 'tblTempUsageDetail_20' ) end [2025-04-12 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:14:24] Production.INFO: ==2862== Releasing lock... [2025-04-12 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:14:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:15:05 [end_date_ymd] => 2025-04-12 20:15:05 [RateCDR] => 1 ) [2025-04-12 20:15: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-04-12 17:15:05' and `end` < '2025-04-12 20:15: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-04-12 20:15:18] Production.INFO: count ==1688 [2025-04-12 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:15:05 - End Time 2025-04-12 20:15:05 [2025-04-12 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893936', 'tblTempUsageDetail_20' ) start [2025-04-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893936', 'tblTempUsageDetail_20' ) end [2025-04-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893936', 'tblTempVendorCDR_20' ) start [2025-04-12 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893936', 'tblTempVendorCDR_20' ) end [2025-04-12 20:15:18] Production.INFO: ProcessCDR(1,14893936,1,1,2) [2025-04-12 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893936', 'tblTempUsageDetail_20' ) start [2025-04-12 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893936', 'tblTempUsageDetail_20' ) end [2025-04-12 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:15:21] Production.INFO: ==2938== Releasing lock... [2025-04-12 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:15:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:16:05 [end_date_ymd] => 2025-04-12 20:16:05 [RateCDR] => 1 ) [2025-04-12 20:16: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-04-12 17:16:05' and `end` < '2025-04-12 20:16: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-04-12 20:16:18] Production.INFO: count ==1685 [2025-04-12 20:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:16:05 - End Time 2025-04-12 20:16:05 [2025-04-12 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893941', 'tblTempUsageDetail_20' ) start [2025-04-12 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893941', 'tblTempUsageDetail_20' ) end [2025-04-12 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893941', 'tblTempVendorCDR_20' ) start [2025-04-12 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893941', 'tblTempVendorCDR_20' ) end [2025-04-12 20:16:18] Production.INFO: ProcessCDR(1,14893941,1,1,2) [2025-04-12 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893941', 'tblTempUsageDetail_20' ) start [2025-04-12 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893941', 'tblTempUsageDetail_20' ) end [2025-04-12 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:16:22] Production.INFO: ==3008== Releasing lock... [2025-04-12 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:16:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:17:05 [end_date_ymd] => 2025-04-12 20:17:05 [RateCDR] => 1 ) [2025-04-12 20:17: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-04-12 17:17:05' and `end` < '2025-04-12 20:17: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-04-12 20:17:18] Production.INFO: count ==1686 [2025-04-12 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:17:05 - End Time 2025-04-12 20:17:05 [2025-04-12 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893946', 'tblTempUsageDetail_20' ) start [2025-04-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893946', 'tblTempUsageDetail_20' ) end [2025-04-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893946', 'tblTempVendorCDR_20' ) start [2025-04-12 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893946', 'tblTempVendorCDR_20' ) end [2025-04-12 20:17:18] Production.INFO: ProcessCDR(1,14893946,1,1,2) [2025-04-12 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893946', 'tblTempUsageDetail_20' ) start [2025-04-12 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893946', 'tblTempUsageDetail_20' ) end [2025-04-12 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:17:21] Production.INFO: ==3082== Releasing lock... [2025-04-12 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:17:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:18:05 [end_date_ymd] => 2025-04-12 20:18:05 [RateCDR] => 1 ) [2025-04-12 20:18: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-04-12 17:18:05' and `end` < '2025-04-12 20:18: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-04-12 20:18:18] Production.INFO: count ==1681 [2025-04-12 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:18:05 - End Time 2025-04-12 20:18:05 [2025-04-12 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893951', 'tblTempUsageDetail_20' ) start [2025-04-12 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893951', 'tblTempUsageDetail_20' ) end [2025-04-12 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893951', 'tblTempVendorCDR_20' ) start [2025-04-12 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893951', 'tblTempVendorCDR_20' ) end [2025-04-12 20:18:18] Production.INFO: ProcessCDR(1,14893951,1,1,2) [2025-04-12 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893951', 'tblTempUsageDetail_20' ) start [2025-04-12 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893951', 'tblTempUsageDetail_20' ) end [2025-04-12 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:18:22] Production.INFO: ==3154== Releasing lock... [2025-04-12 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:19:05 [end_date_ymd] => 2025-04-12 20:19:05 [RateCDR] => 1 ) [2025-04-12 20:19: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-04-12 17:19:05' and `end` < '2025-04-12 20:19: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-04-12 20:19:18] Production.INFO: count ==1677 [2025-04-12 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:19:05 - End Time 2025-04-12 20:19:05 [2025-04-12 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893956', 'tblTempUsageDetail_20' ) start [2025-04-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893956', 'tblTempUsageDetail_20' ) end [2025-04-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893956', 'tblTempVendorCDR_20' ) start [2025-04-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893956', 'tblTempVendorCDR_20' ) end [2025-04-12 20:19:18] Production.INFO: ProcessCDR(1,14893956,1,1,2) [2025-04-12 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893956', 'tblTempUsageDetail_20' ) start [2025-04-12 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893956', 'tblTempUsageDetail_20' ) end [2025-04-12 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:19:22] Production.INFO: ==3233== Releasing lock... [2025-04-12 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:19:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:20:06 [end_date_ymd] => 2025-04-12 20:20:06 [RateCDR] => 1 ) [2025-04-12 20:20: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-04-12 17:20:06' and `end` < '2025-04-12 20:20: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-04-12 20:20:19] Production.INFO: count ==1671 [2025-04-12 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:20:06 - End Time 2025-04-12 20:20:06 [2025-04-12 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893961', 'tblTempUsageDetail_20' ) start [2025-04-12 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893961', 'tblTempUsageDetail_20' ) end [2025-04-12 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893961', 'tblTempVendorCDR_20' ) start [2025-04-12 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893961', 'tblTempVendorCDR_20' ) end [2025-04-12 20:20:19] Production.INFO: ProcessCDR(1,14893961,1,1,2) [2025-04-12 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893961', 'tblTempUsageDetail_20' ) start [2025-04-12 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893961', 'tblTempUsageDetail_20' ) end [2025-04-12 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:20:22] Production.INFO: ==3307== Releasing lock... [2025-04-12 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:20:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:21:06 [end_date_ymd] => 2025-04-12 20:21:06 [RateCDR] => 1 ) [2025-04-12 20:21: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-04-12 17:21:06' and `end` < '2025-04-12 20:21: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-04-12 20:21:19] Production.INFO: count ==1678 [2025-04-12 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:21:06 - End Time 2025-04-12 20:21:06 [2025-04-12 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893967', 'tblTempUsageDetail_20' ) start [2025-04-12 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893967', 'tblTempUsageDetail_20' ) end [2025-04-12 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893967', 'tblTempVendorCDR_20' ) start [2025-04-12 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893967', 'tblTempVendorCDR_20' ) end [2025-04-12 20:21:19] Production.INFO: ProcessCDR(1,14893967,1,1,2) [2025-04-12 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893967', 'tblTempUsageDetail_20' ) start [2025-04-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893967', 'tblTempUsageDetail_20' ) end [2025-04-12 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:21:23] Production.INFO: ==3389== Releasing lock... [2025-04-12 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:21:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:22:05 [end_date_ymd] => 2025-04-12 20:22:05 [RateCDR] => 1 ) [2025-04-12 20:22: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-04-12 17:22:05' and `end` < '2025-04-12 20:22: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-04-12 20:22:18] Production.INFO: count ==1676 [2025-04-12 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:22:05 - End Time 2025-04-12 20:22:05 [2025-04-12 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893972', 'tblTempUsageDetail_20' ) start [2025-04-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893972', 'tblTempUsageDetail_20' ) end [2025-04-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893972', 'tblTempVendorCDR_20' ) start [2025-04-12 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893972', 'tblTempVendorCDR_20' ) end [2025-04-12 20:22:18] Production.INFO: ProcessCDR(1,14893972,1,1,2) [2025-04-12 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893972', 'tblTempUsageDetail_20' ) start [2025-04-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893972', 'tblTempUsageDetail_20' ) end [2025-04-12 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:22:22] Production.INFO: ==3459== Releasing lock... [2025-04-12 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:23:05 [end_date_ymd] => 2025-04-12 20:23:05 [RateCDR] => 1 ) [2025-04-12 20:23: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-04-12 17:23:05' and `end` < '2025-04-12 20:23: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-04-12 20:23:18] Production.INFO: count ==1674 [2025-04-12 20:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:23:05 - End Time 2025-04-12 20:23:05 [2025-04-12 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893977', 'tblTempUsageDetail_20' ) start [2025-04-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893977', 'tblTempUsageDetail_20' ) end [2025-04-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893977', 'tblTempVendorCDR_20' ) start [2025-04-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893977', 'tblTempVendorCDR_20' ) end [2025-04-12 20:23:18] Production.INFO: ProcessCDR(1,14893977,1,1,2) [2025-04-12 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893977', 'tblTempUsageDetail_20' ) start [2025-04-12 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893977', 'tblTempUsageDetail_20' ) end [2025-04-12 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:23:22] Production.INFO: ==3531== Releasing lock... [2025-04-12 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:23:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:24:05 [end_date_ymd] => 2025-04-12 20:24:05 [RateCDR] => 1 ) [2025-04-12 20:24: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-04-12 17:24:05' and `end` < '2025-04-12 20:24: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-04-12 20:24:18] Production.INFO: count ==1672 [2025-04-12 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:24:05 - End Time 2025-04-12 20:24:05 [2025-04-12 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893982', 'tblTempUsageDetail_20' ) start [2025-04-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893982', 'tblTempUsageDetail_20' ) end [2025-04-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893982', 'tblTempVendorCDR_20' ) start [2025-04-12 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893982', 'tblTempVendorCDR_20' ) end [2025-04-12 20:24:18] Production.INFO: ProcessCDR(1,14893982,1,1,2) [2025-04-12 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893982', 'tblTempUsageDetail_20' ) start [2025-04-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893982', 'tblTempUsageDetail_20' ) end [2025-04-12 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:24:22] Production.INFO: ==3613== Releasing lock... [2025-04-12 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:24:22] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:25:06 [end_date_ymd] => 2025-04-12 20:25:06 [RateCDR] => 1 ) [2025-04-12 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 17:25:06' and `end` < '2025-04-12 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 20:25:19] Production.INFO: count ==1672 [2025-04-12 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:25:06 - End Time 2025-04-12 20:25:06 [2025-04-12 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893987', 'tblTempUsageDetail_20' ) start [2025-04-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893987', 'tblTempUsageDetail_20' ) end [2025-04-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893987', 'tblTempVendorCDR_20' ) start [2025-04-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893987', 'tblTempVendorCDR_20' ) end [2025-04-12 20:25:19] Production.INFO: ProcessCDR(1,14893987,1,1,2) [2025-04-12 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893987', 'tblTempUsageDetail_20' ) start [2025-04-12 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893987', 'tblTempUsageDetail_20' ) end [2025-04-12 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:25:23] Production.INFO: ==3691== Releasing lock... [2025-04-12 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:25:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:26:06 [end_date_ymd] => 2025-04-12 20:26:06 [RateCDR] => 1 ) [2025-04-12 20:26: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-04-12 17:26:06' and `end` < '2025-04-12 20:26: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-04-12 20:26:19] Production.INFO: count ==1673 [2025-04-12 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:26:06 - End Time 2025-04-12 20:26:06 [2025-04-12 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893992', 'tblTempUsageDetail_20' ) start [2025-04-12 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893992', 'tblTempUsageDetail_20' ) end [2025-04-12 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893992', 'tblTempVendorCDR_20' ) start [2025-04-12 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893992', 'tblTempVendorCDR_20' ) end [2025-04-12 20:26:19] Production.INFO: ProcessCDR(1,14893992,1,1,2) [2025-04-12 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893992', 'tblTempUsageDetail_20' ) start [2025-04-12 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893992', 'tblTempUsageDetail_20' ) end [2025-04-12 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:26:25] Production.INFO: ==3762== Releasing lock... [2025-04-12 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:26:25] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:27:06 [end_date_ymd] => 2025-04-12 20:27:06 [RateCDR] => 1 ) [2025-04-12 20:27: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-04-12 17:27:06' and `end` < '2025-04-12 20:27: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-04-12 20:27:19] Production.INFO: count ==1673 [2025-04-12 20:27:20] Production.ERROR: pbx CDR StartTime 2025-04-12 17:27:06 - End Time 2025-04-12 20:27:06 [2025-04-12 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893997', 'tblTempUsageDetail_20' ) start [2025-04-12 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14893997', 'tblTempUsageDetail_20' ) end [2025-04-12 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893997', 'tblTempVendorCDR_20' ) start [2025-04-12 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14893997', 'tblTempVendorCDR_20' ) end [2025-04-12 20:27:20] Production.INFO: ProcessCDR(1,14893997,1,1,2) [2025-04-12 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14893997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14893997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14893997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14893997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893997', 'tblTempUsageDetail_20' ) start [2025-04-12 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14893997', 'tblTempUsageDetail_20' ) end [2025-04-12 20:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:27:25] Production.INFO: ==3836== Releasing lock... [2025-04-12 20:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:27:25] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:28:06 [end_date_ymd] => 2025-04-12 20:28:06 [RateCDR] => 1 ) [2025-04-12 20:28: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-04-12 17:28:06' and `end` < '2025-04-12 20:28: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-04-12 20:28:19] Production.INFO: count ==1675 [2025-04-12 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:28:06 - End Time 2025-04-12 20:28:06 [2025-04-12 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894002', 'tblTempUsageDetail_20' ) start [2025-04-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894002', 'tblTempUsageDetail_20' ) end [2025-04-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894002', 'tblTempVendorCDR_20' ) start [2025-04-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894002', 'tblTempVendorCDR_20' ) end [2025-04-12 20:28:19] Production.INFO: ProcessCDR(1,14894002,1,1,2) [2025-04-12 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894002', 'tblTempUsageDetail_20' ) start [2025-04-12 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894002', 'tblTempUsageDetail_20' ) end [2025-04-12 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:28:23] Production.INFO: ==3910== Releasing lock... [2025-04-12 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:28:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:29:06 [end_date_ymd] => 2025-04-12 20:29:06 [RateCDR] => 1 ) [2025-04-12 20:29: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-04-12 17:29:06' and `end` < '2025-04-12 20:29: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-04-12 20:29:19] Production.INFO: count ==1675 [2025-04-12 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:29:06 - End Time 2025-04-12 20:29:06 [2025-04-12 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894007', 'tblTempUsageDetail_20' ) start [2025-04-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894007', 'tblTempUsageDetail_20' ) end [2025-04-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894007', 'tblTempVendorCDR_20' ) start [2025-04-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894007', 'tblTempVendorCDR_20' ) end [2025-04-12 20:29:19] Production.INFO: ProcessCDR(1,14894007,1,1,2) [2025-04-12 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894007', 'tblTempUsageDetail_20' ) start [2025-04-12 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894007', 'tblTempUsageDetail_20' ) end [2025-04-12 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:29:23] Production.INFO: ==3985== Releasing lock... [2025-04-12 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:30:06 [end_date_ymd] => 2025-04-12 20:30:06 [RateCDR] => 1 ) [2025-04-12 20:30: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-04-12 17:30:06' and `end` < '2025-04-12 20:30: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-04-12 20:30:19] Production.INFO: count ==1673 [2025-04-12 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:30:06 - End Time 2025-04-12 20:30:06 [2025-04-12 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894012', 'tblTempUsageDetail_20' ) start [2025-04-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894012', 'tblTempUsageDetail_20' ) end [2025-04-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894012', 'tblTempVendorCDR_20' ) start [2025-04-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894012', 'tblTempVendorCDR_20' ) end [2025-04-12 20:30:19] Production.INFO: ProcessCDR(1,14894012,1,1,2) [2025-04-12 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894012', 'tblTempUsageDetail_20' ) start [2025-04-12 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894012', 'tblTempUsageDetail_20' ) end [2025-04-12 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:30:25] Production.INFO: ==4109== Releasing lock... [2025-04-12 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:30:25] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:31:06 [end_date_ymd] => 2025-04-12 20:31:06 [RateCDR] => 1 ) [2025-04-12 20:31: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-04-12 17:31:06' and `end` < '2025-04-12 20:31: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-04-12 20:31:19] Production.INFO: count ==1678 [2025-04-12 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:31:06 - End Time 2025-04-12 20:31:06 [2025-04-12 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894018', 'tblTempUsageDetail_20' ) start [2025-04-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894018', 'tblTempUsageDetail_20' ) end [2025-04-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894018', 'tblTempVendorCDR_20' ) start [2025-04-12 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894018', 'tblTempVendorCDR_20' ) end [2025-04-12 20:31:19] Production.INFO: ProcessCDR(1,14894018,1,1,2) [2025-04-12 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894018', 'tblTempUsageDetail_20' ) start [2025-04-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894018', 'tblTempUsageDetail_20' ) end [2025-04-12 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:31:23] Production.INFO: ==4186== Releasing lock... [2025-04-12 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:31:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:32:06 [end_date_ymd] => 2025-04-12 20:32:06 [RateCDR] => 1 ) [2025-04-12 20:32: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-04-12 17:32:06' and `end` < '2025-04-12 20:32: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-04-12 20:32:19] Production.INFO: count ==1677 [2025-04-12 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:32:06 - End Time 2025-04-12 20:32:06 [2025-04-12 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894023', 'tblTempUsageDetail_20' ) start [2025-04-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894023', 'tblTempUsageDetail_20' ) end [2025-04-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894023', 'tblTempVendorCDR_20' ) start [2025-04-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894023', 'tblTempVendorCDR_20' ) end [2025-04-12 20:32:19] Production.INFO: ProcessCDR(1,14894023,1,1,2) [2025-04-12 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894023', 'tblTempUsageDetail_20' ) start [2025-04-12 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894023', 'tblTempUsageDetail_20' ) end [2025-04-12 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:32:25] Production.INFO: ==4261== Releasing lock... [2025-04-12 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:32:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:33:06 [end_date_ymd] => 2025-04-12 20:33:06 [RateCDR] => 1 ) [2025-04-12 20:33:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 17:33:06' and `end` < '2025-04-12 20:33: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-04-12 20:33:20] Production.INFO: count ==1672 [2025-04-12 20:33:20] Production.ERROR: pbx CDR StartTime 2025-04-12 17:33:06 - End Time 2025-04-12 20:33:06 [2025-04-12 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894028', 'tblTempUsageDetail_20' ) start [2025-04-12 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894028', 'tblTempUsageDetail_20' ) end [2025-04-12 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894028', 'tblTempVendorCDR_20' ) start [2025-04-12 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894028', 'tblTempVendorCDR_20' ) end [2025-04-12 20:33:20] Production.INFO: ProcessCDR(1,14894028,1,1,2) [2025-04-12 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894028', 'tblTempUsageDetail_20' ) start [2025-04-12 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894028', 'tblTempUsageDetail_20' ) end [2025-04-12 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:33:24] Production.INFO: ==4334== Releasing lock... [2025-04-12 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:33:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:34:06 [end_date_ymd] => 2025-04-12 20:34:06 [RateCDR] => 1 ) [2025-04-12 20:34: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-04-12 17:34:06' and `end` < '2025-04-12 20:34: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-04-12 20:34:19] Production.INFO: count ==1671 [2025-04-12 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:34:06 - End Time 2025-04-12 20:34:06 [2025-04-12 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894033', 'tblTempUsageDetail_20' ) start [2025-04-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894033', 'tblTempUsageDetail_20' ) end [2025-04-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894033', 'tblTempVendorCDR_20' ) start [2025-04-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894033', 'tblTempVendorCDR_20' ) end [2025-04-12 20:34:19] Production.INFO: ProcessCDR(1,14894033,1,1,2) [2025-04-12 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894033', 'tblTempUsageDetail_20' ) start [2025-04-12 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894033', 'tblTempUsageDetail_20' ) end [2025-04-12 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:34:23] Production.INFO: ==4408== Releasing lock... [2025-04-12 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:34:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:35:06 [end_date_ymd] => 2025-04-12 20:35:06 [RateCDR] => 1 ) [2025-04-12 20:35: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-04-12 17:35:06' and `end` < '2025-04-12 20:35: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-04-12 20:35:19] Production.INFO: count ==1667 [2025-04-12 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:35:06 - End Time 2025-04-12 20:35:06 [2025-04-12 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894038', 'tblTempUsageDetail_20' ) start [2025-04-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894038', 'tblTempUsageDetail_20' ) end [2025-04-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894038', 'tblTempVendorCDR_20' ) start [2025-04-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894038', 'tblTempVendorCDR_20' ) end [2025-04-12 20:35:19] Production.INFO: ProcessCDR(1,14894038,1,1,2) [2025-04-12 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894038', 'tblTempUsageDetail_20' ) start [2025-04-12 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894038', 'tblTempUsageDetail_20' ) end [2025-04-12 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:35:24] Production.INFO: ==4482== Releasing lock... [2025-04-12 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:35:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:36:06 [end_date_ymd] => 2025-04-12 20:36:06 [RateCDR] => 1 ) [2025-04-12 20:36: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-04-12 17:36:06' and `end` < '2025-04-12 20:36: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-04-12 20:36:19] Production.INFO: count ==1666 [2025-04-12 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:36:06 - End Time 2025-04-12 20:36:06 [2025-04-12 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894043', 'tblTempUsageDetail_20' ) start [2025-04-12 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894043', 'tblTempUsageDetail_20' ) end [2025-04-12 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894043', 'tblTempVendorCDR_20' ) start [2025-04-12 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894043', 'tblTempVendorCDR_20' ) end [2025-04-12 20:36:19] Production.INFO: ProcessCDR(1,14894043,1,1,2) [2025-04-12 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894043', 'tblTempUsageDetail_20' ) start [2025-04-12 20:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894043', 'tblTempUsageDetail_20' ) end [2025-04-12 20:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:36:25] Production.INFO: ==4560== Releasing lock... [2025-04-12 20:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:36:25] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:37:05 [end_date_ymd] => 2025-04-12 20:37:05 [RateCDR] => 1 ) [2025-04-12 20:37: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-04-12 17:37:05' and `end` < '2025-04-12 20:37: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-04-12 20:37:18] Production.INFO: count ==1661 [2025-04-12 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:37:05 - End Time 2025-04-12 20:37:05 [2025-04-12 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894048', 'tblTempUsageDetail_20' ) start [2025-04-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894048', 'tblTempUsageDetail_20' ) end [2025-04-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894048', 'tblTempVendorCDR_20' ) start [2025-04-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894048', 'tblTempVendorCDR_20' ) end [2025-04-12 20:37:19] Production.INFO: ProcessCDR(1,14894048,1,1,2) [2025-04-12 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894048', 'tblTempUsageDetail_20' ) start [2025-04-12 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894048', 'tblTempUsageDetail_20' ) end [2025-04-12 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:37:24] Production.INFO: ==4639== Releasing lock... [2025-04-12 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:37:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:38:06 [end_date_ymd] => 2025-04-12 20:38:06 [RateCDR] => 1 ) [2025-04-12 20:38: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-04-12 17:38:06' and `end` < '2025-04-12 20:38: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-04-12 20:38:19] Production.INFO: count ==1663 [2025-04-12 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:38:06 - End Time 2025-04-12 20:38:06 [2025-04-12 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894053', 'tblTempUsageDetail_20' ) start [2025-04-12 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894053', 'tblTempUsageDetail_20' ) end [2025-04-12 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894053', 'tblTempVendorCDR_20' ) start [2025-04-12 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894053', 'tblTempVendorCDR_20' ) end [2025-04-12 20:38:19] Production.INFO: ProcessCDR(1,14894053,1,1,2) [2025-04-12 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894053', 'tblTempUsageDetail_20' ) start [2025-04-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894053', 'tblTempUsageDetail_20' ) end [2025-04-12 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:38:23] Production.INFO: ==4716== Releasing lock... [2025-04-12 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:38:23] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:39:05 [end_date_ymd] => 2025-04-12 20:39:05 [RateCDR] => 1 ) [2025-04-12 20:39: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-04-12 17:39:05' and `end` < '2025-04-12 20:39: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-04-12 20:39:18] Production.INFO: count ==1661 [2025-04-12 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:39:05 - End Time 2025-04-12 20:39:05 [2025-04-12 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894058', 'tblTempUsageDetail_20' ) start [2025-04-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894058', 'tblTempUsageDetail_20' ) end [2025-04-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894058', 'tblTempVendorCDR_20' ) start [2025-04-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894058', 'tblTempVendorCDR_20' ) end [2025-04-12 20:39:18] Production.INFO: ProcessCDR(1,14894058,1,1,2) [2025-04-12 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894058', 'tblTempUsageDetail_20' ) start [2025-04-12 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894058', 'tblTempUsageDetail_20' ) end [2025-04-12 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:39:24] Production.INFO: ==4791== Releasing lock... [2025-04-12 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-12 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:40:06 [end_date_ymd] => 2025-04-12 20:40:06 [RateCDR] => 1 ) [2025-04-12 20:40: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-04-12 17:40:06' and `end` < '2025-04-12 20:40: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-04-12 20:40:20] Production.INFO: count ==1652 [2025-04-12 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-12 17:40:06 - End Time 2025-04-12 20:40:06 [2025-04-12 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894064', 'tblTempUsageDetail_20' ) start [2025-04-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894064', 'tblTempUsageDetail_20' ) end [2025-04-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894064', 'tblTempVendorCDR_20' ) start [2025-04-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894064', 'tblTempVendorCDR_20' ) end [2025-04-12 20:40:20] Production.INFO: ProcessCDR(1,14894064,1,1,2) [2025-04-12 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894064', 'tblTempUsageDetail_20' ) start [2025-04-12 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894064', 'tblTempUsageDetail_20' ) end [2025-04-12 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:40:24] Production.INFO: ==4876== Releasing lock... [2025-04-12 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:40:24] Production.INFO: 40 MB #Memory Used# [2025-04-12 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:41:06 [end_date_ymd] => 2025-04-12 20:41:06 [RateCDR] => 1 ) [2025-04-12 20:41: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-04-12 17:41:06' and `end` < '2025-04-12 20:41: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-04-12 20:41:19] Production.INFO: count ==1582 [2025-04-12 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:41:06 - End Time 2025-04-12 20:41:06 [2025-04-12 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894069', 'tblTempUsageDetail_20' ) start [2025-04-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894069', 'tblTempUsageDetail_20' ) end [2025-04-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894069', 'tblTempVendorCDR_20' ) start [2025-04-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894069', 'tblTempVendorCDR_20' ) end [2025-04-12 20:41:19] Production.INFO: ProcessCDR(1,14894069,1,1,2) [2025-04-12 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894069', 'tblTempUsageDetail_20' ) start [2025-04-12 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894069', 'tblTempUsageDetail_20' ) end [2025-04-12 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:41:25] Production.INFO: ==4948== Releasing lock... [2025-04-12 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:41:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-12 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:42:06 [end_date_ymd] => 2025-04-12 20:42:06 [RateCDR] => 1 ) [2025-04-12 20:42: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-04-12 17:42:06' and `end` < '2025-04-12 20:42: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-04-12 20:42:19] Production.INFO: count ==1570 [2025-04-12 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:42:06 - End Time 2025-04-12 20:42:06 [2025-04-12 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894074', 'tblTempUsageDetail_20' ) start [2025-04-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894074', 'tblTempUsageDetail_20' ) end [2025-04-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894074', 'tblTempVendorCDR_20' ) start [2025-04-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894074', 'tblTempVendorCDR_20' ) end [2025-04-12 20:42:19] Production.INFO: ProcessCDR(1,14894074,1,1,2) [2025-04-12 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894074', 'tblTempUsageDetail_20' ) start [2025-04-12 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894074', 'tblTempUsageDetail_20' ) end [2025-04-12 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:42:23] Production.INFO: ==5018== Releasing lock... [2025-04-12 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:42:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:43:05 [end_date_ymd] => 2025-04-12 20:43:05 [RateCDR] => 1 ) [2025-04-12 20:43: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-04-12 17:43:05' and `end` < '2025-04-12 20:43: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-04-12 20:43:18] Production.INFO: count ==1559 [2025-04-12 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:43:05 - End Time 2025-04-12 20:43:05 [2025-04-12 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894079', 'tblTempUsageDetail_20' ) start [2025-04-12 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894079', 'tblTempUsageDetail_20' ) end [2025-04-12 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894079', 'tblTempVendorCDR_20' ) start [2025-04-12 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894079', 'tblTempVendorCDR_20' ) end [2025-04-12 20:43:18] Production.INFO: ProcessCDR(1,14894079,1,1,2) [2025-04-12 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894079', 'tblTempUsageDetail_20' ) start [2025-04-12 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894079', 'tblTempUsageDetail_20' ) end [2025-04-12 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:43:24] Production.INFO: ==5088== Releasing lock... [2025-04-12 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:43:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:44:06 [end_date_ymd] => 2025-04-12 20:44:06 [RateCDR] => 1 ) [2025-04-12 20:44: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-04-12 17:44:06' and `end` < '2025-04-12 20:44: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-04-12 20:44:19] Production.INFO: count ==1549 [2025-04-12 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:44:06 - End Time 2025-04-12 20:44:06 [2025-04-12 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894084', 'tblTempUsageDetail_20' ) start [2025-04-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894084', 'tblTempUsageDetail_20' ) end [2025-04-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894084', 'tblTempVendorCDR_20' ) start [2025-04-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894084', 'tblTempVendorCDR_20' ) end [2025-04-12 20:44:19] Production.INFO: ProcessCDR(1,14894084,1,1,2) [2025-04-12 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894084', 'tblTempUsageDetail_20' ) start [2025-04-12 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894084', 'tblTempUsageDetail_20' ) end [2025-04-12 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:44:23] Production.INFO: ==5167== Releasing lock... [2025-04-12 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:44:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-12 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:45:05 [end_date_ymd] => 2025-04-12 20:45:05 [RateCDR] => 1 ) [2025-04-12 20:45: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-04-12 17:45:05' and `end` < '2025-04-12 20:45: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-04-12 20:45:19] Production.INFO: count ==1541 [2025-04-12 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:45:05 - End Time 2025-04-12 20:45:05 [2025-04-12 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894089', 'tblTempUsageDetail_20' ) start [2025-04-12 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894089', 'tblTempUsageDetail_20' ) end [2025-04-12 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894089', 'tblTempVendorCDR_20' ) start [2025-04-12 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894089', 'tblTempVendorCDR_20' ) end [2025-04-12 20:45:19] Production.INFO: ProcessCDR(1,14894089,1,1,2) [2025-04-12 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894089', 'tblTempUsageDetail_20' ) start [2025-04-12 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894089', 'tblTempUsageDetail_20' ) end [2025-04-12 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:45:25] Production.INFO: ==5276== Releasing lock... [2025-04-12 20:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:45:25] Production.INFO: 39 MB #Memory Used# [2025-04-12 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:46:06 [end_date_ymd] => 2025-04-12 20:46:06 [RateCDR] => 1 ) [2025-04-12 20:46: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-04-12 17:46:06' and `end` < '2025-04-12 20:46: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-04-12 20:46:19] Production.INFO: count ==1530 [2025-04-12 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:46:06 - End Time 2025-04-12 20:46:06 [2025-04-12 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894094', 'tblTempUsageDetail_20' ) start [2025-04-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894094', 'tblTempUsageDetail_20' ) end [2025-04-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894094', 'tblTempVendorCDR_20' ) start [2025-04-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894094', 'tblTempVendorCDR_20' ) end [2025-04-12 20:46:19] Production.INFO: ProcessCDR(1,14894094,1,1,2) [2025-04-12 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894094', 'tblTempUsageDetail_20' ) start [2025-04-12 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894094', 'tblTempUsageDetail_20' ) end [2025-04-12 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:46:25] Production.INFO: ==5367== Releasing lock... [2025-04-12 20:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:46:25] Production.INFO: 39 MB #Memory Used# [2025-04-12 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:47:06 [end_date_ymd] => 2025-04-12 20:47:06 [RateCDR] => 1 ) [2025-04-12 20:47: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-04-12 17:47:06' and `end` < '2025-04-12 20:47: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-04-12 20:47:19] Production.INFO: count ==1517 [2025-04-12 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:47:06 - End Time 2025-04-12 20:47:06 [2025-04-12 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894099', 'tblTempUsageDetail_20' ) start [2025-04-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894099', 'tblTempUsageDetail_20' ) end [2025-04-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894099', 'tblTempVendorCDR_20' ) start [2025-04-12 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894099', 'tblTempVendorCDR_20' ) end [2025-04-12 20:47:19] Production.INFO: ProcessCDR(1,14894099,1,1,2) [2025-04-12 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894099', 'tblTempUsageDetail_20' ) start [2025-04-12 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894099', 'tblTempUsageDetail_20' ) end [2025-04-12 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:47:23] Production.INFO: ==5438== Releasing lock... [2025-04-12 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:47:23] Production.INFO: 39 MB #Memory Used# [2025-04-12 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:48:06 [end_date_ymd] => 2025-04-12 20:48:06 [RateCDR] => 1 ) [2025-04-12 20:48: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-04-12 17:48:06' and `end` < '2025-04-12 20:48: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-04-12 20:48:19] Production.INFO: count ==1500 [2025-04-12 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:48:06 - End Time 2025-04-12 20:48:06 [2025-04-12 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894104', 'tblTempUsageDetail_20' ) start [2025-04-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894104', 'tblTempUsageDetail_20' ) end [2025-04-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894104', 'tblTempVendorCDR_20' ) start [2025-04-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894104', 'tblTempVendorCDR_20' ) end [2025-04-12 20:48:19] Production.INFO: ProcessCDR(1,14894104,1,1,2) [2025-04-12 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894104', 'tblTempUsageDetail_20' ) start [2025-04-12 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894104', 'tblTempUsageDetail_20' ) end [2025-04-12 20:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:48:25] Production.INFO: ==5509== Releasing lock... [2025-04-12 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:48:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:49:06 [end_date_ymd] => 2025-04-12 20:49:06 [RateCDR] => 1 ) [2025-04-12 20:49: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-04-12 17:49:06' and `end` < '2025-04-12 20:49: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-04-12 20:49:19] Production.INFO: count ==1490 [2025-04-12 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:49:06 - End Time 2025-04-12 20:49:06 [2025-04-12 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894109', 'tblTempUsageDetail_20' ) start [2025-04-12 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894109', 'tblTempUsageDetail_20' ) end [2025-04-12 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894109', 'tblTempVendorCDR_20' ) start [2025-04-12 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894109', 'tblTempVendorCDR_20' ) end [2025-04-12 20:49:19] Production.INFO: ProcessCDR(1,14894109,1,1,2) [2025-04-12 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894109', 'tblTempUsageDetail_20' ) start [2025-04-12 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894109', 'tblTempUsageDetail_20' ) end [2025-04-12 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:49:23] Production.INFO: ==5580== Releasing lock... [2025-04-12 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:49:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:50:07 [end_date_ymd] => 2025-04-12 20:50:07 [RateCDR] => 1 ) [2025-04-12 20:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 17:50:07' and `end` < '2025-04-12 20:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 20:50:20] Production.INFO: count ==1482 [2025-04-12 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-12 17:50:07 - End Time 2025-04-12 20:50:07 [2025-04-12 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894115', 'tblTempUsageDetail_20' ) start [2025-04-12 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894115', 'tblTempUsageDetail_20' ) end [2025-04-12 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894115', 'tblTempVendorCDR_20' ) start [2025-04-12 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894115', 'tblTempVendorCDR_20' ) end [2025-04-12 20:50:20] Production.INFO: ProcessCDR(1,14894115,1,1,2) [2025-04-12 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894115', 'tblTempUsageDetail_20' ) start [2025-04-12 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894115', 'tblTempUsageDetail_20' ) end [2025-04-12 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:50:24] Production.INFO: ==5655== Releasing lock... [2025-04-12 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-12 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:51:06 [end_date_ymd] => 2025-04-12 20:51:06 [RateCDR] => 1 ) [2025-04-12 20:51: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-04-12 17:51:06' and `end` < '2025-04-12 20:51: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-04-12 20:51:19] Production.INFO: count ==1467 [2025-04-12 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:51:06 - End Time 2025-04-12 20:51:06 [2025-04-12 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894120', 'tblTempUsageDetail_20' ) start [2025-04-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894120', 'tblTempUsageDetail_20' ) end [2025-04-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894120', 'tblTempVendorCDR_20' ) start [2025-04-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894120', 'tblTempVendorCDR_20' ) end [2025-04-12 20:51:19] Production.INFO: ProcessCDR(1,14894120,1,1,2) [2025-04-12 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894120', 'tblTempUsageDetail_20' ) start [2025-04-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894120', 'tblTempUsageDetail_20' ) end [2025-04-12 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:51:22] Production.INFO: ==5737== Releasing lock... [2025-04-12 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:52:06 [end_date_ymd] => 2025-04-12 20:52:06 [RateCDR] => 1 ) [2025-04-12 20:52: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-04-12 17:52:06' and `end` < '2025-04-12 20:52: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-04-12 20:52:19] Production.INFO: count ==1458 [2025-04-12 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:52:06 - End Time 2025-04-12 20:52:06 [2025-04-12 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894125', 'tblTempUsageDetail_20' ) start [2025-04-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894125', 'tblTempUsageDetail_20' ) end [2025-04-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894125', 'tblTempVendorCDR_20' ) start [2025-04-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894125', 'tblTempVendorCDR_20' ) end [2025-04-12 20:52:19] Production.INFO: ProcessCDR(1,14894125,1,1,2) [2025-04-12 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894125', 'tblTempUsageDetail_20' ) start [2025-04-12 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894125', 'tblTempUsageDetail_20' ) end [2025-04-12 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:52:23] Production.INFO: ==5809== Releasing lock... [2025-04-12 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:52:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:53:05 [end_date_ymd] => 2025-04-12 20:53:05 [RateCDR] => 1 ) [2025-04-12 20:53: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-04-12 17:53:05' and `end` < '2025-04-12 20:53: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-04-12 20:53:18] Production.INFO: count ==1452 [2025-04-12 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:53:05 - End Time 2025-04-12 20:53:05 [2025-04-12 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894130', 'tblTempUsageDetail_20' ) start [2025-04-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894130', 'tblTempUsageDetail_20' ) end [2025-04-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894130', 'tblTempVendorCDR_20' ) start [2025-04-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894130', 'tblTempVendorCDR_20' ) end [2025-04-12 20:53:19] Production.INFO: ProcessCDR(1,14894130,1,1,2) [2025-04-12 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894130', 'tblTempUsageDetail_20' ) start [2025-04-12 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894130', 'tblTempUsageDetail_20' ) end [2025-04-12 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:53:24] Production.INFO: ==5880== Releasing lock... [2025-04-12 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:53:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:54:06 [end_date_ymd] => 2025-04-12 20:54:06 [RateCDR] => 1 ) [2025-04-12 20:54: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-04-12 17:54:06' and `end` < '2025-04-12 20:54: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-04-12 20:54:19] Production.INFO: count ==1447 [2025-04-12 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:54:06 - End Time 2025-04-12 20:54:06 [2025-04-12 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894135', 'tblTempUsageDetail_20' ) start [2025-04-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894135', 'tblTempUsageDetail_20' ) end [2025-04-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894135', 'tblTempVendorCDR_20' ) start [2025-04-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894135', 'tblTempVendorCDR_20' ) end [2025-04-12 20:54:19] Production.INFO: ProcessCDR(1,14894135,1,1,2) [2025-04-12 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894135', 'tblTempUsageDetail_20' ) start [2025-04-12 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894135', 'tblTempUsageDetail_20' ) end [2025-04-12 20:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:54:25] Production.INFO: ==5958== Releasing lock... [2025-04-12 20:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:54:25] Production.INFO: 38.5 MB #Memory Used# [2025-04-12 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:55:05 [end_date_ymd] => 2025-04-12 20:55:05 [RateCDR] => 1 ) [2025-04-12 20:55: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-04-12 17:55:05' and `end` < '2025-04-12 20:55: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-04-12 20:55:18] Production.INFO: count ==1439 [2025-04-12 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:55:05 - End Time 2025-04-12 20:55:05 [2025-04-12 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894140', 'tblTempUsageDetail_20' ) start [2025-04-12 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894140', 'tblTempUsageDetail_20' ) end [2025-04-12 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894140', 'tblTempVendorCDR_20' ) start [2025-04-12 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894140', 'tblTempVendorCDR_20' ) end [2025-04-12 20:55:19] Production.INFO: ProcessCDR(1,14894140,1,1,2) [2025-04-12 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894140', 'tblTempUsageDetail_20' ) start [2025-04-12 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894140', 'tblTempUsageDetail_20' ) end [2025-04-12 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:55:23] Production.INFO: ==6030== Releasing lock... [2025-04-12 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:55:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:56:06 [end_date_ymd] => 2025-04-12 20:56:06 [RateCDR] => 1 ) [2025-04-12 20:56: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-04-12 17:56:06' and `end` < '2025-04-12 20:56: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-04-12 20:56:19] Production.INFO: count ==1433 [2025-04-12 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:56:06 - End Time 2025-04-12 20:56:06 [2025-04-12 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894145', 'tblTempUsageDetail_20' ) start [2025-04-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894145', 'tblTempUsageDetail_20' ) end [2025-04-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894145', 'tblTempVendorCDR_20' ) start [2025-04-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894145', 'tblTempVendorCDR_20' ) end [2025-04-12 20:56:19] Production.INFO: ProcessCDR(1,14894145,1,1,2) [2025-04-12 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894145', 'tblTempUsageDetail_20' ) start [2025-04-12 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894145', 'tblTempUsageDetail_20' ) end [2025-04-12 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:56:23] Production.INFO: ==6109== Releasing lock... [2025-04-12 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:56:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:57:05 [end_date_ymd] => 2025-04-12 20:57:05 [RateCDR] => 1 ) [2025-04-12 20:57: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-04-12 17:57:05' and `end` < '2025-04-12 20:57: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-04-12 20:57:18] Production.INFO: count ==1431 [2025-04-12 20:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 17:57:05 - End Time 2025-04-12 20:57:05 [2025-04-12 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894150', 'tblTempUsageDetail_20' ) start [2025-04-12 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894150', 'tblTempUsageDetail_20' ) end [2025-04-12 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894150', 'tblTempVendorCDR_20' ) start [2025-04-12 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894150', 'tblTempVendorCDR_20' ) end [2025-04-12 20:57:18] Production.INFO: ProcessCDR(1,14894150,1,1,2) [2025-04-12 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894150', 'tblTempUsageDetail_20' ) start [2025-04-12 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894150', 'tblTempUsageDetail_20' ) end [2025-04-12 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:57:22] Production.INFO: ==6179== Releasing lock... [2025-04-12 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:57:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:58:06 [end_date_ymd] => 2025-04-12 20:58:06 [RateCDR] => 1 ) [2025-04-12 20:58: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-04-12 17:58:06' and `end` < '2025-04-12 20:58: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-04-12 20:58:19] Production.INFO: count ==1429 [2025-04-12 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:58:06 - End Time 2025-04-12 20:58:06 [2025-04-12 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894155', 'tblTempUsageDetail_20' ) start [2025-04-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894155', 'tblTempUsageDetail_20' ) end [2025-04-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894155', 'tblTempVendorCDR_20' ) start [2025-04-12 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894155', 'tblTempVendorCDR_20' ) end [2025-04-12 20:58:19] Production.INFO: ProcessCDR(1,14894155,1,1,2) [2025-04-12 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894155', 'tblTempUsageDetail_20' ) start [2025-04-12 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894155', 'tblTempUsageDetail_20' ) end [2025-04-12 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:58:23] Production.INFO: ==6250== Releasing lock... [2025-04-12 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:58:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 17:59:06 [end_date_ymd] => 2025-04-12 20:59:06 [RateCDR] => 1 ) [2025-04-12 20:59: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-04-12 17:59:06' and `end` < '2025-04-12 20:59: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-04-12 20:59:19] Production.INFO: count ==1427 [2025-04-12 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 17:59:06 - End Time 2025-04-12 20:59:06 [2025-04-12 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894160', 'tblTempUsageDetail_20' ) start [2025-04-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894160', 'tblTempUsageDetail_20' ) end [2025-04-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894160', 'tblTempVendorCDR_20' ) start [2025-04-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894160', 'tblTempVendorCDR_20' ) end [2025-04-12 20:59:19] Production.INFO: ProcessCDR(1,14894160,1,1,2) [2025-04-12 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894160', 'tblTempUsageDetail_20' ) start [2025-04-12 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894160', 'tblTempUsageDetail_20' ) end [2025-04-12 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 20:59:23] Production.INFO: ==6320== Releasing lock... [2025-04-12 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 20:59:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:00:07 [end_date_ymd] => 2025-04-12 21:00:07 [RateCDR] => 1 ) [2025-04-12 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 18:00:07' and `end` < '2025-04-12 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 21:00:20] Production.INFO: count ==1422 [2025-04-12 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-12 18:00:07 - End Time 2025-04-12 21:00:07 [2025-04-12 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894166', 'tblTempUsageDetail_20' ) start [2025-04-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894166', 'tblTempUsageDetail_20' ) end [2025-04-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894166', 'tblTempVendorCDR_20' ) start [2025-04-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894166', 'tblTempVendorCDR_20' ) end [2025-04-12 21:00:20] Production.INFO: ProcessCDR(1,14894166,1,1,2) [2025-04-12 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894166', 'tblTempUsageDetail_20' ) start [2025-04-12 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894166', 'tblTempUsageDetail_20' ) end [2025-04-12 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:00:24] Production.INFO: ==6447== Releasing lock... [2025-04-12 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:00:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:01:06 [end_date_ymd] => 2025-04-12 21:01:06 [RateCDR] => 1 ) [2025-04-12 21:01: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-04-12 18:01:06' and `end` < '2025-04-12 21:01: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-04-12 21:01:19] Production.INFO: count ==1424 [2025-04-12 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:01:06 - End Time 2025-04-12 21:01:06 [2025-04-12 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894171', 'tblTempUsageDetail_20' ) start [2025-04-12 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894171', 'tblTempUsageDetail_20' ) end [2025-04-12 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894171', 'tblTempVendorCDR_20' ) start [2025-04-12 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894171', 'tblTempVendorCDR_20' ) end [2025-04-12 21:01:19] Production.INFO: ProcessCDR(1,14894171,1,1,2) [2025-04-12 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894171', 'tblTempUsageDetail_20' ) start [2025-04-12 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894171', 'tblTempUsageDetail_20' ) end [2025-04-12 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:01:24] Production.INFO: ==6532== Releasing lock... [2025-04-12 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:01:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:02:06 [end_date_ymd] => 2025-04-12 21:02:06 [RateCDR] => 1 ) [2025-04-12 21:02: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-04-12 18:02:06' and `end` < '2025-04-12 21:02: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-04-12 21:02:19] Production.INFO: count ==1424 [2025-04-12 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:02:06 - End Time 2025-04-12 21:02:06 [2025-04-12 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894176', 'tblTempUsageDetail_20' ) start [2025-04-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894176', 'tblTempUsageDetail_20' ) end [2025-04-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894176', 'tblTempVendorCDR_20' ) start [2025-04-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894176', 'tblTempVendorCDR_20' ) end [2025-04-12 21:02:19] Production.INFO: ProcessCDR(1,14894176,1,1,2) [2025-04-12 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894176', 'tblTempUsageDetail_20' ) start [2025-04-12 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894176', 'tblTempUsageDetail_20' ) end [2025-04-12 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:02:23] Production.INFO: ==6610== Releasing lock... [2025-04-12 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:02:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:03:06 [end_date_ymd] => 2025-04-12 21:03:06 [RateCDR] => 1 ) [2025-04-12 21:03: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-04-12 18:03:06' and `end` < '2025-04-12 21:03: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-04-12 21:03:19] Production.INFO: count ==1421 [2025-04-12 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:03:06 - End Time 2025-04-12 21:03:06 [2025-04-12 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894181', 'tblTempUsageDetail_20' ) start [2025-04-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894181', 'tblTempUsageDetail_20' ) end [2025-04-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894181', 'tblTempVendorCDR_20' ) start [2025-04-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894181', 'tblTempVendorCDR_20' ) end [2025-04-12 21:03:19] Production.INFO: ProcessCDR(1,14894181,1,1,2) [2025-04-12 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894181', 'tblTempUsageDetail_20' ) start [2025-04-12 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894181', 'tblTempUsageDetail_20' ) end [2025-04-12 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:03:23] Production.INFO: ==6689== Releasing lock... [2025-04-12 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:03:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:04:05 [end_date_ymd] => 2025-04-12 21:04:05 [RateCDR] => 1 ) [2025-04-12 21:04: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-04-12 18:04:05' and `end` < '2025-04-12 21:04: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-04-12 21:04:18] Production.INFO: count ==1418 [2025-04-12 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:04:05 - End Time 2025-04-12 21:04:05 [2025-04-12 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894186', 'tblTempUsageDetail_20' ) start [2025-04-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894186', 'tblTempUsageDetail_20' ) end [2025-04-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894186', 'tblTempVendorCDR_20' ) start [2025-04-12 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894186', 'tblTempVendorCDR_20' ) end [2025-04-12 21:04:18] Production.INFO: ProcessCDR(1,14894186,1,1,2) [2025-04-12 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894186', 'tblTempUsageDetail_20' ) start [2025-04-12 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894186', 'tblTempUsageDetail_20' ) end [2025-04-12 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:04:22] Production.INFO: ==6761== Releasing lock... [2025-04-12 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:04:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:05:06 [end_date_ymd] => 2025-04-12 21:05:06 [RateCDR] => 1 ) [2025-04-12 21:05: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-04-12 18:05:06' and `end` < '2025-04-12 21:05: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-04-12 21:05:19] Production.INFO: count ==1417 [2025-04-12 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:05:06 - End Time 2025-04-12 21:05:06 [2025-04-12 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894191', 'tblTempUsageDetail_20' ) start [2025-04-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894191', 'tblTempUsageDetail_20' ) end [2025-04-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894191', 'tblTempVendorCDR_20' ) start [2025-04-12 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894191', 'tblTempVendorCDR_20' ) end [2025-04-12 21:05:19] Production.INFO: ProcessCDR(1,14894191,1,1,2) [2025-04-12 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894191', 'tblTempUsageDetail_20' ) start [2025-04-12 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894191', 'tblTempUsageDetail_20' ) end [2025-04-12 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:05:23] Production.INFO: ==6833== Releasing lock... [2025-04-12 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:06:05 [end_date_ymd] => 2025-04-12 21:06:05 [RateCDR] => 1 ) [2025-04-12 21:06: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-04-12 18:06:05' and `end` < '2025-04-12 21:06: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-04-12 21:06:18] Production.INFO: count ==1416 [2025-04-12 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:06:05 - End Time 2025-04-12 21:06:05 [2025-04-12 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894196', 'tblTempUsageDetail_20' ) start [2025-04-12 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894196', 'tblTempUsageDetail_20' ) end [2025-04-12 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894196', 'tblTempVendorCDR_20' ) start [2025-04-12 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894196', 'tblTempVendorCDR_20' ) end [2025-04-12 21:06:18] Production.INFO: ProcessCDR(1,14894196,1,1,2) [2025-04-12 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894196', 'tblTempUsageDetail_20' ) start [2025-04-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894196', 'tblTempUsageDetail_20' ) end [2025-04-12 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:06:22] Production.INFO: ==6907== Releasing lock... [2025-04-12 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:07:06 [end_date_ymd] => 2025-04-12 21:07:06 [RateCDR] => 1 ) [2025-04-12 21:07: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-04-12 18:07:06' and `end` < '2025-04-12 21:07: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-04-12 21:07:19] Production.INFO: count ==1416 [2025-04-12 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:07:06 - End Time 2025-04-12 21:07:06 [2025-04-12 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894201', 'tblTempUsageDetail_20' ) start [2025-04-12 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894201', 'tblTempUsageDetail_20' ) end [2025-04-12 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894201', 'tblTempVendorCDR_20' ) start [2025-04-12 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894201', 'tblTempVendorCDR_20' ) end [2025-04-12 21:07:19] Production.INFO: ProcessCDR(1,14894201,1,1,2) [2025-04-12 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894201', 'tblTempUsageDetail_20' ) start [2025-04-12 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894201', 'tblTempUsageDetail_20' ) end [2025-04-12 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:07:24] Production.INFO: ==6980== Releasing lock... [2025-04-12 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:07:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:08:06 [end_date_ymd] => 2025-04-12 21:08:06 [RateCDR] => 1 ) [2025-04-12 21:08: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-04-12 18:08:06' and `end` < '2025-04-12 21:08: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-04-12 21:08:19] Production.INFO: count ==1415 [2025-04-12 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:08:06 - End Time 2025-04-12 21:08:06 [2025-04-12 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894206', 'tblTempUsageDetail_20' ) start [2025-04-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894206', 'tblTempUsageDetail_20' ) end [2025-04-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894206', 'tblTempVendorCDR_20' ) start [2025-04-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894206', 'tblTempVendorCDR_20' ) end [2025-04-12 21:08:19] Production.INFO: ProcessCDR(1,14894206,1,1,2) [2025-04-12 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894206', 'tblTempUsageDetail_20' ) start [2025-04-12 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894206', 'tblTempUsageDetail_20' ) end [2025-04-12 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:08:23] Production.INFO: ==7051== Releasing lock... [2025-04-12 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:08:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:09:05 [end_date_ymd] => 2025-04-12 21:09:05 [RateCDR] => 1 ) [2025-04-12 21:09: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-04-12 18:09:05' and `end` < '2025-04-12 21:09: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-04-12 21:09:18] Production.INFO: count ==1415 [2025-04-12 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:09:05 - End Time 2025-04-12 21:09:05 [2025-04-12 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894211', 'tblTempUsageDetail_20' ) start [2025-04-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894211', 'tblTempUsageDetail_20' ) end [2025-04-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894211', 'tblTempVendorCDR_20' ) start [2025-04-12 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894211', 'tblTempVendorCDR_20' ) end [2025-04-12 21:09:18] Production.INFO: ProcessCDR(1,14894211,1,1,2) [2025-04-12 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894211', 'tblTempUsageDetail_20' ) start [2025-04-12 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894211', 'tblTempUsageDetail_20' ) end [2025-04-12 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:09:22] Production.INFO: ==7128== Releasing lock... [2025-04-12 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:09:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:10:07 [end_date_ymd] => 2025-04-12 21:10:07 [RateCDR] => 1 ) [2025-04-12 21:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 18:10:07' and `end` < '2025-04-12 21:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 21:10:20] Production.INFO: count ==1416 [2025-04-12 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-12 18:10:07 - End Time 2025-04-12 21:10:07 [2025-04-12 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894217', 'tblTempUsageDetail_20' ) start [2025-04-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894217', 'tblTempUsageDetail_20' ) end [2025-04-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894217', 'tblTempVendorCDR_20' ) start [2025-04-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894217', 'tblTempVendorCDR_20' ) end [2025-04-12 21:10:20] Production.INFO: ProcessCDR(1,14894217,1,1,2) [2025-04-12 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894217', 'tblTempUsageDetail_20' ) start [2025-04-12 21:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894217', 'tblTempUsageDetail_20' ) end [2025-04-12 21:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:10:26] Production.INFO: ==7205== Releasing lock... [2025-04-12 21:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:10:26] Production.INFO: 38.25 MB #Memory Used# [2025-04-12 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:11:05 [end_date_ymd] => 2025-04-12 21:11:05 [RateCDR] => 1 ) [2025-04-12 21:11: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-04-12 18:11:05' and `end` < '2025-04-12 21:11: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-04-12 21:11:18] Production.INFO: count ==1362 [2025-04-12 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:11:05 - End Time 2025-04-12 21:11:05 [2025-04-12 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894222', 'tblTempUsageDetail_20' ) start [2025-04-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894222', 'tblTempUsageDetail_20' ) end [2025-04-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894222', 'tblTempVendorCDR_20' ) start [2025-04-12 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894222', 'tblTempVendorCDR_20' ) end [2025-04-12 21:11:18] Production.INFO: ProcessCDR(1,14894222,1,1,2) [2025-04-12 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894222', 'tblTempUsageDetail_20' ) start [2025-04-12 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894222', 'tblTempUsageDetail_20' ) end [2025-04-12 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:11:22] Production.INFO: ==7285== Releasing lock... [2025-04-12 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:12:05 [end_date_ymd] => 2025-04-12 21:12:05 [RateCDR] => 1 ) [2025-04-12 21:12: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-04-12 18:12:05' and `end` < '2025-04-12 21:12: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-04-12 21:12:18] Production.INFO: count ==1362 [2025-04-12 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:12:05 - End Time 2025-04-12 21:12:05 [2025-04-12 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894227', 'tblTempUsageDetail_20' ) start [2025-04-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894227', 'tblTempUsageDetail_20' ) end [2025-04-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894227', 'tblTempVendorCDR_20' ) start [2025-04-12 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894227', 'tblTempVendorCDR_20' ) end [2025-04-12 21:12:18] Production.INFO: ProcessCDR(1,14894227,1,1,2) [2025-04-12 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894227', 'tblTempUsageDetail_20' ) start [2025-04-12 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894227', 'tblTempUsageDetail_20' ) end [2025-04-12 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:12:24] Production.INFO: ==7356== Releasing lock... [2025-04-12 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:12:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:13:05 [end_date_ymd] => 2025-04-12 21:13:05 [RateCDR] => 1 ) [2025-04-12 21:13: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-04-12 18:13:05' and `end` < '2025-04-12 21:13: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-04-12 21:13:18] Production.INFO: count ==1366 [2025-04-12 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:13:05 - End Time 2025-04-12 21:13:05 [2025-04-12 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894232', 'tblTempUsageDetail_20' ) start [2025-04-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894232', 'tblTempUsageDetail_20' ) end [2025-04-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894232', 'tblTempVendorCDR_20' ) start [2025-04-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894232', 'tblTempVendorCDR_20' ) end [2025-04-12 21:13:19] Production.INFO: ProcessCDR(1,14894232,1,1,2) [2025-04-12 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894232', 'tblTempUsageDetail_20' ) start [2025-04-12 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894232', 'tblTempUsageDetail_20' ) end [2025-04-12 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:13:24] Production.INFO: ==7434== Releasing lock... [2025-04-12 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:13:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:14:06 [end_date_ymd] => 2025-04-12 21:14:06 [RateCDR] => 1 ) [2025-04-12 21:14: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-04-12 18:14:06' and `end` < '2025-04-12 21:14: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-04-12 21:14:19] Production.INFO: count ==1367 [2025-04-12 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:14:06 - End Time 2025-04-12 21:14:06 [2025-04-12 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894237', 'tblTempUsageDetail_20' ) start [2025-04-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894237', 'tblTempUsageDetail_20' ) end [2025-04-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894237', 'tblTempVendorCDR_20' ) start [2025-04-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894237', 'tblTempVendorCDR_20' ) end [2025-04-12 21:14:19] Production.INFO: ProcessCDR(1,14894237,1,1,2) [2025-04-12 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894237', 'tblTempUsageDetail_20' ) start [2025-04-12 21:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894237', 'tblTempUsageDetail_20' ) end [2025-04-12 21:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:14:25] Production.INFO: ==7504== Releasing lock... [2025-04-12 21:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:14:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:15:06 [end_date_ymd] => 2025-04-12 21:15:06 [RateCDR] => 1 ) [2025-04-12 21:15: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-04-12 18:15:06' and `end` < '2025-04-12 21:15: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-04-12 21:15:19] Production.INFO: count ==1362 [2025-04-12 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:15:06 - End Time 2025-04-12 21:15:06 [2025-04-12 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894242', 'tblTempUsageDetail_20' ) start [2025-04-12 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894242', 'tblTempUsageDetail_20' ) end [2025-04-12 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894242', 'tblTempVendorCDR_20' ) start [2025-04-12 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894242', 'tblTempVendorCDR_20' ) end [2025-04-12 21:15:19] Production.INFO: ProcessCDR(1,14894242,1,1,2) [2025-04-12 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894242', 'tblTempUsageDetail_20' ) start [2025-04-12 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894242', 'tblTempUsageDetail_20' ) end [2025-04-12 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:15:23] Production.INFO: ==7575== Releasing lock... [2025-04-12 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:15:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:16:05 [end_date_ymd] => 2025-04-12 21:16:05 [RateCDR] => 1 ) [2025-04-12 21:16: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-04-12 18:16:05' and `end` < '2025-04-12 21:16: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-04-12 21:16:17] Production.INFO: count ==1363 [2025-04-12 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:16:05 - End Time 2025-04-12 21:16:05 [2025-04-12 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894247', 'tblTempUsageDetail_20' ) start [2025-04-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894247', 'tblTempUsageDetail_20' ) end [2025-04-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894247', 'tblTempVendorCDR_20' ) start [2025-04-12 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894247', 'tblTempVendorCDR_20' ) end [2025-04-12 21:16:18] Production.INFO: ProcessCDR(1,14894247,1,1,2) [2025-04-12 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894247', 'tblTempUsageDetail_20' ) start [2025-04-12 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894247', 'tblTempUsageDetail_20' ) end [2025-04-12 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:16:21] Production.INFO: ==7682== Releasing lock... [2025-04-12 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:17:06 [end_date_ymd] => 2025-04-12 21:17:06 [RateCDR] => 1 ) [2025-04-12 21:17: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-04-12 18:17:06' and `end` < '2025-04-12 21:17: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-04-12 21:17:19] Production.INFO: count ==1363 [2025-04-12 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:17:06 - End Time 2025-04-12 21:17:06 [2025-04-12 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894252', 'tblTempUsageDetail_20' ) start [2025-04-12 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894252', 'tblTempUsageDetail_20' ) end [2025-04-12 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894252', 'tblTempVendorCDR_20' ) start [2025-04-12 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894252', 'tblTempVendorCDR_20' ) end [2025-04-12 21:17:19] Production.INFO: ProcessCDR(1,14894252,1,1,2) [2025-04-12 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894252', 'tblTempUsageDetail_20' ) start [2025-04-12 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894252', 'tblTempUsageDetail_20' ) end [2025-04-12 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:17:23] Production.INFO: ==7754== Releasing lock... [2025-04-12 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:17:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:18:05 [end_date_ymd] => 2025-04-12 21:18:05 [RateCDR] => 1 ) [2025-04-12 21:18: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-04-12 18:18:05' and `end` < '2025-04-12 21:18: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-04-12 21:18:18] Production.INFO: count ==1364 [2025-04-12 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:18:05 - End Time 2025-04-12 21:18:05 [2025-04-12 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894257', 'tblTempUsageDetail_20' ) start [2025-04-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894257', 'tblTempUsageDetail_20' ) end [2025-04-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894257', 'tblTempVendorCDR_20' ) start [2025-04-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894257', 'tblTempVendorCDR_20' ) end [2025-04-12 21:18:18] Production.INFO: ProcessCDR(1,14894257,1,1,2) [2025-04-12 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894257', 'tblTempUsageDetail_20' ) start [2025-04-12 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894257', 'tblTempUsageDetail_20' ) end [2025-04-12 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:18:22] Production.INFO: ==7843== Releasing lock... [2025-04-12 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:18:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:19:06 [end_date_ymd] => 2025-04-12 21:19:06 [RateCDR] => 1 ) [2025-04-12 21:19: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-04-12 18:19:06' and `end` < '2025-04-12 21:19: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-04-12 21:19:18] Production.INFO: count ==1367 [2025-04-12 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:19:06 - End Time 2025-04-12 21:19:06 [2025-04-12 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894262', 'tblTempUsageDetail_20' ) start [2025-04-12 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894262', 'tblTempUsageDetail_20' ) end [2025-04-12 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894262', 'tblTempVendorCDR_20' ) start [2025-04-12 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894262', 'tblTempVendorCDR_20' ) end [2025-04-12 21:19:19] Production.INFO: ProcessCDR(1,14894262,1,1,2) [2025-04-12 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894262', 'tblTempUsageDetail_20' ) start [2025-04-12 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894262', 'tblTempUsageDetail_20' ) end [2025-04-12 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:19:22] Production.INFO: ==7914== Releasing lock... [2025-04-12 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:20:07 [end_date_ymd] => 2025-04-12 21:20:07 [RateCDR] => 1 ) [2025-04-12 21:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 18:20:07' and `end` < '2025-04-12 21:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 21:20:20] Production.INFO: count ==1364 [2025-04-12 21:20:21] Production.ERROR: pbx CDR StartTime 2025-04-12 18:20:07 - End Time 2025-04-12 21:20:07 [2025-04-12 21:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894268', 'tblTempUsageDetail_20' ) start [2025-04-12 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894268', 'tblTempUsageDetail_20' ) end [2025-04-12 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894268', 'tblTempVendorCDR_20' ) start [2025-04-12 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894268', 'tblTempVendorCDR_20' ) end [2025-04-12 21:20:21] Production.INFO: ProcessCDR(1,14894268,1,1,2) [2025-04-12 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894268', 'tblTempUsageDetail_20' ) start [2025-04-12 21:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894268', 'tblTempUsageDetail_20' ) end [2025-04-12 21:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:20:26] Production.INFO: ==7988== Releasing lock... [2025-04-12 21:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:20:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:21:05 [end_date_ymd] => 2025-04-12 21:21:05 [RateCDR] => 1 ) [2025-04-12 21:21: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-04-12 18:21:05' and `end` < '2025-04-12 21:21: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-04-12 21:21:18] Production.INFO: count ==1322 [2025-04-12 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:21:05 - End Time 2025-04-12 21:21:05 [2025-04-12 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894273', 'tblTempUsageDetail_20' ) start [2025-04-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894273', 'tblTempUsageDetail_20' ) end [2025-04-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894273', 'tblTempVendorCDR_20' ) start [2025-04-12 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894273', 'tblTempVendorCDR_20' ) end [2025-04-12 21:21:18] Production.INFO: ProcessCDR(1,14894273,1,1,2) [2025-04-12 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894273', 'tblTempUsageDetail_20' ) start [2025-04-12 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894273', 'tblTempUsageDetail_20' ) end [2025-04-12 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:21:24] Production.INFO: ==8063== Releasing lock... [2025-04-12 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:21:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:22:05 [end_date_ymd] => 2025-04-12 21:22:05 [RateCDR] => 1 ) [2025-04-12 21:22: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-04-12 18:22:05' and `end` < '2025-04-12 21:22: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-04-12 21:22:18] Production.INFO: count ==1322 [2025-04-12 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:22:05 - End Time 2025-04-12 21:22:05 [2025-04-12 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894278', 'tblTempUsageDetail_20' ) start [2025-04-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894278', 'tblTempUsageDetail_20' ) end [2025-04-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894278', 'tblTempVendorCDR_20' ) start [2025-04-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894278', 'tblTempVendorCDR_20' ) end [2025-04-12 21:22:18] Production.INFO: ProcessCDR(1,14894278,1,1,2) [2025-04-12 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894278', 'tblTempUsageDetail_20' ) start [2025-04-12 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894278', 'tblTempUsageDetail_20' ) end [2025-04-12 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:22:24] Production.INFO: ==8134== Releasing lock... [2025-04-12 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:23:06 [end_date_ymd] => 2025-04-12 21:23:06 [RateCDR] => 1 ) [2025-04-12 21:23: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-04-12 18:23:06' and `end` < '2025-04-12 21:23: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-04-12 21:23:19] Production.INFO: count ==1325 [2025-04-12 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:23:06 - End Time 2025-04-12 21:23:06 [2025-04-12 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894283', 'tblTempUsageDetail_20' ) start [2025-04-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894283', 'tblTempUsageDetail_20' ) end [2025-04-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894283', 'tblTempVendorCDR_20' ) start [2025-04-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894283', 'tblTempVendorCDR_20' ) end [2025-04-12 21:23:19] Production.INFO: ProcessCDR(1,14894283,1,1,2) [2025-04-12 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894283', 'tblTempUsageDetail_20' ) start [2025-04-12 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894283', 'tblTempUsageDetail_20' ) end [2025-04-12 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:23:24] Production.INFO: ==8206== Releasing lock... [2025-04-12 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:24:06 [end_date_ymd] => 2025-04-12 21:24:06 [RateCDR] => 1 ) [2025-04-12 21:24: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-04-12 18:24:06' and `end` < '2025-04-12 21:24: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-04-12 21:24:19] Production.INFO: count ==1325 [2025-04-12 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:24:06 - End Time 2025-04-12 21:24:06 [2025-04-12 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894288', 'tblTempUsageDetail_20' ) start [2025-04-12 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894288', 'tblTempUsageDetail_20' ) end [2025-04-12 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894288', 'tblTempVendorCDR_20' ) start [2025-04-12 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894288', 'tblTempVendorCDR_20' ) end [2025-04-12 21:24:19] Production.INFO: ProcessCDR(1,14894288,1,1,2) [2025-04-12 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894288', 'tblTempUsageDetail_20' ) start [2025-04-12 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894288', 'tblTempUsageDetail_20' ) end [2025-04-12 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:24:23] Production.INFO: ==8291== Releasing lock... [2025-04-12 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:25:06 [end_date_ymd] => 2025-04-12 21:25:06 [RateCDR] => 1 ) [2025-04-12 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-04-12 18:25:06' and `end` < '2025-04-12 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-04-12 21:25:19] Production.INFO: count ==1324 [2025-04-12 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:25:06 - End Time 2025-04-12 21:25:06 [2025-04-12 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894293', 'tblTempUsageDetail_20' ) start [2025-04-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894293', 'tblTempUsageDetail_20' ) end [2025-04-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894293', 'tblTempVendorCDR_20' ) start [2025-04-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894293', 'tblTempVendorCDR_20' ) end [2025-04-12 21:25:19] Production.INFO: ProcessCDR(1,14894293,1,1,2) [2025-04-12 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894293', 'tblTempUsageDetail_20' ) start [2025-04-12 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894293', 'tblTempUsageDetail_20' ) end [2025-04-12 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:25:23] Production.INFO: ==8362== Releasing lock... [2025-04-12 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:25:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:26:06 [end_date_ymd] => 2025-04-12 21:26:06 [RateCDR] => 1 ) [2025-04-12 21:26: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-04-12 18:26:06' and `end` < '2025-04-12 21:26: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-04-12 21:26:19] Production.INFO: count ==1324 [2025-04-12 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:26:06 - End Time 2025-04-12 21:26:06 [2025-04-12 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894298', 'tblTempUsageDetail_20' ) start [2025-04-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894298', 'tblTempUsageDetail_20' ) end [2025-04-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894298', 'tblTempVendorCDR_20' ) start [2025-04-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894298', 'tblTempVendorCDR_20' ) end [2025-04-12 21:26:19] Production.INFO: ProcessCDR(1,14894298,1,1,2) [2025-04-12 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894298', 'tblTempUsageDetail_20' ) start [2025-04-12 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894298', 'tblTempUsageDetail_20' ) end [2025-04-12 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:26:24] Production.INFO: ==8432== Releasing lock... [2025-04-12 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:26:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:27:06 [end_date_ymd] => 2025-04-12 21:27:06 [RateCDR] => 1 ) [2025-04-12 21:27: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-04-12 18:27:06' and `end` < '2025-04-12 21:27: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-04-12 21:27:19] Production.INFO: count ==1324 [2025-04-12 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:27:06 - End Time 2025-04-12 21:27:06 [2025-04-12 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894303', 'tblTempUsageDetail_20' ) start [2025-04-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894303', 'tblTempUsageDetail_20' ) end [2025-04-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894303', 'tblTempVendorCDR_20' ) start [2025-04-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894303', 'tblTempVendorCDR_20' ) end [2025-04-12 21:27:19] Production.INFO: ProcessCDR(1,14894303,1,1,2) [2025-04-12 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894303', 'tblTempUsageDetail_20' ) start [2025-04-12 21:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894303', 'tblTempUsageDetail_20' ) end [2025-04-12 21:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:27:25] Production.INFO: ==8512== Releasing lock... [2025-04-12 21:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:27:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:28:06 [end_date_ymd] => 2025-04-12 21:28:06 [RateCDR] => 1 ) [2025-04-12 21:28: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-04-12 18:28:06' and `end` < '2025-04-12 21:28: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-04-12 21:28:19] Production.INFO: count ==1324 [2025-04-12 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:28:06 - End Time 2025-04-12 21:28:06 [2025-04-12 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894308', 'tblTempUsageDetail_20' ) start [2025-04-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894308', 'tblTempUsageDetail_20' ) end [2025-04-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894308', 'tblTempVendorCDR_20' ) start [2025-04-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894308', 'tblTempVendorCDR_20' ) end [2025-04-12 21:28:19] Production.INFO: ProcessCDR(1,14894308,1,1,2) [2025-04-12 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894308', 'tblTempUsageDetail_20' ) start [2025-04-12 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894308', 'tblTempUsageDetail_20' ) end [2025-04-12 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:28:23] Production.INFO: ==8583== Releasing lock... [2025-04-12 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:28:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:29:06 [end_date_ymd] => 2025-04-12 21:29:06 [RateCDR] => 1 ) [2025-04-12 21:29: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-04-12 18:29:06' and `end` < '2025-04-12 21:29: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-04-12 21:29:19] Production.INFO: count ==1324 [2025-04-12 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:29:06 - End Time 2025-04-12 21:29:06 [2025-04-12 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894313', 'tblTempUsageDetail_20' ) start [2025-04-12 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894313', 'tblTempUsageDetail_20' ) end [2025-04-12 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894313', 'tblTempVendorCDR_20' ) start [2025-04-12 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894313', 'tblTempVendorCDR_20' ) end [2025-04-12 21:29:19] Production.INFO: ProcessCDR(1,14894313,1,1,2) [2025-04-12 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894313', 'tblTempUsageDetail_20' ) start [2025-04-12 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894313', 'tblTempUsageDetail_20' ) end [2025-04-12 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:29:22] Production.INFO: ==8653== Releasing lock... [2025-04-12 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:30:06 [end_date_ymd] => 2025-04-12 21:30:06 [RateCDR] => 1 ) [2025-04-12 21:30: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-04-12 18:30:06' and `end` < '2025-04-12 21:30: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-04-12 21:30:19] Production.INFO: count ==1324 [2025-04-12 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:30:06 - End Time 2025-04-12 21:30:06 [2025-04-12 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894318', 'tblTempUsageDetail_20' ) start [2025-04-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894318', 'tblTempUsageDetail_20' ) end [2025-04-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894318', 'tblTempVendorCDR_20' ) start [2025-04-12 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894318', 'tblTempVendorCDR_20' ) end [2025-04-12 21:30:19] Production.INFO: ProcessCDR(1,14894318,1,1,2) [2025-04-12 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894318', 'tblTempUsageDetail_20' ) start [2025-04-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894318', 'tblTempUsageDetail_20' ) end [2025-04-12 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:30:23] Production.INFO: ==8726== Releasing lock... [2025-04-12 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:31:06 [end_date_ymd] => 2025-04-12 21:31:06 [RateCDR] => 1 ) [2025-04-12 21:31: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-04-12 18:31:06' and `end` < '2025-04-12 21:31: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-04-12 21:31:19] Production.INFO: count ==1314 [2025-04-12 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:31:06 - End Time 2025-04-12 21:31:06 [2025-04-12 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894324', 'tblTempUsageDetail_20' ) start [2025-04-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894324', 'tblTempUsageDetail_20' ) end [2025-04-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894324', 'tblTempVendorCDR_20' ) start [2025-04-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894324', 'tblTempVendorCDR_20' ) end [2025-04-12 21:31:19] Production.INFO: ProcessCDR(1,14894324,1,1,2) [2025-04-12 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894324', 'tblTempUsageDetail_20' ) start [2025-04-12 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894324', 'tblTempUsageDetail_20' ) end [2025-04-12 21:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:31:25] Production.INFO: ==8838== Releasing lock... [2025-04-12 21:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:31:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:32:05 [end_date_ymd] => 2025-04-12 21:32:05 [RateCDR] => 1 ) [2025-04-12 21:32: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-04-12 18:32:05' and `end` < '2025-04-12 21:32: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-04-12 21:32:18] Production.INFO: count ==1314 [2025-04-12 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:32:05 - End Time 2025-04-12 21:32:05 [2025-04-12 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894329', 'tblTempUsageDetail_20' ) start [2025-04-12 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894329', 'tblTempUsageDetail_20' ) end [2025-04-12 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894329', 'tblTempVendorCDR_20' ) start [2025-04-12 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894329', 'tblTempVendorCDR_20' ) end [2025-04-12 21:32:18] Production.INFO: ProcessCDR(1,14894329,1,1,2) [2025-04-12 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894329', 'tblTempUsageDetail_20' ) start [2025-04-12 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894329', 'tblTempUsageDetail_20' ) end [2025-04-12 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:32:22] Production.INFO: ==8910== Releasing lock... [2025-04-12 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:33:05 [end_date_ymd] => 2025-04-12 21:33:05 [RateCDR] => 1 ) [2025-04-12 21:33: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-04-12 18:33:05' and `end` < '2025-04-12 21:33: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-04-12 21:33:18] Production.INFO: count ==1315 [2025-04-12 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:33:05 - End Time 2025-04-12 21:33:05 [2025-04-12 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894330', 'tblTempUsageDetail_20' ) start [2025-04-12 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894330', 'tblTempUsageDetail_20' ) end [2025-04-12 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894330', 'tblTempVendorCDR_20' ) start [2025-04-12 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894330', 'tblTempVendorCDR_20' ) end [2025-04-12 21:33:19] Production.INFO: ProcessCDR(1,14894330,1,1,2) [2025-04-12 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894330', 'tblTempUsageDetail_20' ) start [2025-04-12 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894330', 'tblTempUsageDetail_20' ) end [2025-04-12 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:33:24] Production.INFO: ==8983== Releasing lock... [2025-04-12 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:33:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:34:05 [end_date_ymd] => 2025-04-12 21:34:05 [RateCDR] => 1 ) [2025-04-12 21:34: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-04-12 18:34:05' and `end` < '2025-04-12 21:34: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-04-12 21:34:18] Production.INFO: count ==1314 [2025-04-12 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:34:05 - End Time 2025-04-12 21:34:05 [2025-04-12 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894339', 'tblTempUsageDetail_20' ) start [2025-04-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894339', 'tblTempUsageDetail_20' ) end [2025-04-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894339', 'tblTempVendorCDR_20' ) start [2025-04-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894339', 'tblTempVendorCDR_20' ) end [2025-04-12 21:34:18] Production.INFO: ProcessCDR(1,14894339,1,1,2) [2025-04-12 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894339', 'tblTempUsageDetail_20' ) start [2025-04-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894339', 'tblTempUsageDetail_20' ) end [2025-04-12 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:34:22] Production.INFO: ==9060== Releasing lock... [2025-04-12 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:34:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:35:05 [end_date_ymd] => 2025-04-12 21:35:05 [RateCDR] => 1 ) [2025-04-12 21:35: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-04-12 18:35:05' and `end` < '2025-04-12 21:35: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-04-12 21:35:19] Production.INFO: count ==1313 [2025-04-12 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:35:05 - End Time 2025-04-12 21:35:05 [2025-04-12 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894344', 'tblTempUsageDetail_20' ) start [2025-04-12 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894344', 'tblTempUsageDetail_20' ) end [2025-04-12 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894344', 'tblTempVendorCDR_20' ) start [2025-04-12 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894344', 'tblTempVendorCDR_20' ) end [2025-04-12 21:35:19] Production.INFO: ProcessCDR(1,14894344,1,1,2) [2025-04-12 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894344', 'tblTempUsageDetail_20' ) start [2025-04-12 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894344', 'tblTempUsageDetail_20' ) end [2025-04-12 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:35:23] Production.INFO: ==9131== Releasing lock... [2025-04-12 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:35:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:36:06 [end_date_ymd] => 2025-04-12 21:36:06 [RateCDR] => 1 ) [2025-04-12 21:36: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-04-12 18:36:06' and `end` < '2025-04-12 21:36: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-04-12 21:36:19] Production.INFO: count ==1330 [2025-04-12 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:36:06 - End Time 2025-04-12 21:36:06 [2025-04-12 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894349', 'tblTempUsageDetail_20' ) start [2025-04-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894349', 'tblTempUsageDetail_20' ) end [2025-04-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894349', 'tblTempVendorCDR_20' ) start [2025-04-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894349', 'tblTempVendorCDR_20' ) end [2025-04-12 21:36:19] Production.INFO: ProcessCDR(1,14894349,1,1,2) [2025-04-12 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894349', 'tblTempUsageDetail_20' ) start [2025-04-12 21:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894349', 'tblTempUsageDetail_20' ) end [2025-04-12 21:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:36:25] Production.INFO: ==9204== Releasing lock... [2025-04-12 21:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:36:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:37:06 [end_date_ymd] => 2025-04-12 21:37:06 [RateCDR] => 1 ) [2025-04-12 21:37: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-04-12 18:37:06' and `end` < '2025-04-12 21:37: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-04-12 21:37:19] Production.INFO: count ==1329 [2025-04-12 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:37:06 - End Time 2025-04-12 21:37:06 [2025-04-12 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894354', 'tblTempUsageDetail_20' ) start [2025-04-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894354', 'tblTempUsageDetail_20' ) end [2025-04-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894354', 'tblTempVendorCDR_20' ) start [2025-04-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894354', 'tblTempVendorCDR_20' ) end [2025-04-12 21:37:19] Production.INFO: ProcessCDR(1,14894354,1,1,2) [2025-04-12 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894354', 'tblTempUsageDetail_20' ) start [2025-04-12 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894354', 'tblTempUsageDetail_20' ) end [2025-04-12 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:37:23] Production.INFO: ==9273== Releasing lock... [2025-04-12 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:37:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:38:05 [end_date_ymd] => 2025-04-12 21:38:05 [RateCDR] => 1 ) [2025-04-12 21:38: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-04-12 18:38:05' and `end` < '2025-04-12 21:38: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-04-12 21:38:18] Production.INFO: count ==1329 [2025-04-12 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:38:05 - End Time 2025-04-12 21:38:05 [2025-04-12 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894359', 'tblTempUsageDetail_20' ) start [2025-04-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894359', 'tblTempUsageDetail_20' ) end [2025-04-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894359', 'tblTempVendorCDR_20' ) start [2025-04-12 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894359', 'tblTempVendorCDR_20' ) end [2025-04-12 21:38:18] Production.INFO: ProcessCDR(1,14894359,1,1,2) [2025-04-12 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894359', 'tblTempUsageDetail_20' ) start [2025-04-12 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894359', 'tblTempUsageDetail_20' ) end [2025-04-12 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:38:22] Production.INFO: ==9349== Releasing lock... [2025-04-12 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:39:06 [end_date_ymd] => 2025-04-12 21:39:06 [RateCDR] => 1 ) [2025-04-12 21:39: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-04-12 18:39:06' and `end` < '2025-04-12 21:39: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-04-12 21:39:19] Production.INFO: count ==1327 [2025-04-12 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:39:06 - End Time 2025-04-12 21:39:06 [2025-04-12 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894364', 'tblTempUsageDetail_20' ) start [2025-04-12 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894364', 'tblTempUsageDetail_20' ) end [2025-04-12 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894364', 'tblTempVendorCDR_20' ) start [2025-04-12 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894364', 'tblTempVendorCDR_20' ) end [2025-04-12 21:39:19] Production.INFO: ProcessCDR(1,14894364,1,1,2) [2025-04-12 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894364', 'tblTempUsageDetail_20' ) start [2025-04-12 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894364', 'tblTempUsageDetail_20' ) end [2025-04-12 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:39:23] Production.INFO: ==9435== Releasing lock... [2025-04-12 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:39:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:40:06 [end_date_ymd] => 2025-04-12 21:40:06 [RateCDR] => 1 ) [2025-04-12 21:40: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-04-12 18:40:06' and `end` < '2025-04-12 21:40: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-04-12 21:40:19] Production.INFO: count ==1329 [2025-04-12 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:40:06 - End Time 2025-04-12 21:40:06 [2025-04-12 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894370', 'tblTempUsageDetail_20' ) start [2025-04-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894370', 'tblTempUsageDetail_20' ) end [2025-04-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894370', 'tblTempVendorCDR_20' ) start [2025-04-12 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894370', 'tblTempVendorCDR_20' ) end [2025-04-12 21:40:19] Production.INFO: ProcessCDR(1,14894370,1,1,2) [2025-04-12 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894370', 'tblTempUsageDetail_20' ) start [2025-04-12 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894370', 'tblTempUsageDetail_20' ) end [2025-04-12 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:40:23] Production.INFO: ==9517== Releasing lock... [2025-04-12 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:40:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:41:06 [end_date_ymd] => 2025-04-12 21:41:06 [RateCDR] => 1 ) [2025-04-12 21:41: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-04-12 18:41:06' and `end` < '2025-04-12 21:41: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-04-12 21:41:19] Production.INFO: count ==1284 [2025-04-12 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:41:06 - End Time 2025-04-12 21:41:06 [2025-04-12 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894375', 'tblTempUsageDetail_20' ) start [2025-04-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894375', 'tblTempUsageDetail_20' ) end [2025-04-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894375', 'tblTempVendorCDR_20' ) start [2025-04-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894375', 'tblTempVendorCDR_20' ) end [2025-04-12 21:41:19] Production.INFO: ProcessCDR(1,14894375,1,1,2) [2025-04-12 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894375', 'tblTempUsageDetail_20' ) start [2025-04-12 21:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894375', 'tblTempUsageDetail_20' ) end [2025-04-12 21:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:41:25] Production.INFO: ==9590== Releasing lock... [2025-04-12 21:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:41:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:42:05 [end_date_ymd] => 2025-04-12 21:42:05 [RateCDR] => 1 ) [2025-04-12 21:42: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-04-12 18:42:05' and `end` < '2025-04-12 21:42: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-04-12 21:42:18] Production.INFO: count ==1282 [2025-04-12 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:42:05 - End Time 2025-04-12 21:42:05 [2025-04-12 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894380', 'tblTempUsageDetail_20' ) start [2025-04-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894380', 'tblTempUsageDetail_20' ) end [2025-04-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894380', 'tblTempVendorCDR_20' ) start [2025-04-12 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894380', 'tblTempVendorCDR_20' ) end [2025-04-12 21:42:18] Production.INFO: ProcessCDR(1,14894380,1,1,2) [2025-04-12 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894380', 'tblTempUsageDetail_20' ) start [2025-04-12 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894380', 'tblTempUsageDetail_20' ) end [2025-04-12 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:42:22] Production.INFO: ==9661== Releasing lock... [2025-04-12 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:43:06 [end_date_ymd] => 2025-04-12 21:43:06 [RateCDR] => 1 ) [2025-04-12 21:43: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-04-12 18:43:06' and `end` < '2025-04-12 21:43: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-04-12 21:43:19] Production.INFO: count ==1283 [2025-04-12 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:43:06 - End Time 2025-04-12 21:43:06 [2025-04-12 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894385', 'tblTempUsageDetail_20' ) start [2025-04-12 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894385', 'tblTempUsageDetail_20' ) end [2025-04-12 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894385', 'tblTempVendorCDR_20' ) start [2025-04-12 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894385', 'tblTempVendorCDR_20' ) end [2025-04-12 21:43:19] Production.INFO: ProcessCDR(1,14894385,1,1,2) [2025-04-12 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894385', 'tblTempUsageDetail_20' ) start [2025-04-12 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894385', 'tblTempUsageDetail_20' ) end [2025-04-12 21:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:43:25] Production.INFO: ==9739== Releasing lock... [2025-04-12 21:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:43:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:44:05 [end_date_ymd] => 2025-04-12 21:44:05 [RateCDR] => 1 ) [2025-04-12 21:44: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-04-12 18:44:05' and `end` < '2025-04-12 21:44: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-04-12 21:44:18] Production.INFO: count ==1286 [2025-04-12 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:44:05 - End Time 2025-04-12 21:44:05 [2025-04-12 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894390', 'tblTempUsageDetail_20' ) start [2025-04-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894390', 'tblTempUsageDetail_20' ) end [2025-04-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894390', 'tblTempVendorCDR_20' ) start [2025-04-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894390', 'tblTempVendorCDR_20' ) end [2025-04-12 21:44:18] Production.INFO: ProcessCDR(1,14894390,1,1,2) [2025-04-12 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894390', 'tblTempUsageDetail_20' ) start [2025-04-12 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894390', 'tblTempUsageDetail_20' ) end [2025-04-12 21:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:44:24] Production.INFO: ==9808== Releasing lock... [2025-04-12 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:44:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:45:05 [end_date_ymd] => 2025-04-12 21:45:05 [RateCDR] => 1 ) [2025-04-12 21:45: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-04-12 18:45:05' and `end` < '2025-04-12 21:45: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-04-12 21:45:18] Production.INFO: count ==1286 [2025-04-12 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:45:05 - End Time 2025-04-12 21:45:05 [2025-04-12 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894395', 'tblTempUsageDetail_20' ) start [2025-04-12 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894395', 'tblTempUsageDetail_20' ) end [2025-04-12 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894395', 'tblTempVendorCDR_20' ) start [2025-04-12 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894395', 'tblTempVendorCDR_20' ) end [2025-04-12 21:45:19] Production.INFO: ProcessCDR(1,14894395,1,1,2) [2025-04-12 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894395', 'tblTempUsageDetail_20' ) start [2025-04-12 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894395', 'tblTempUsageDetail_20' ) end [2025-04-12 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:45:24] Production.INFO: ==9881== Releasing lock... [2025-04-12 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:45:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:46:06 [end_date_ymd] => 2025-04-12 21:46:06 [RateCDR] => 1 ) [2025-04-12 21:46: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-04-12 18:46:06' and `end` < '2025-04-12 21:46: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-04-12 21:46:19] Production.INFO: count ==1287 [2025-04-12 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:46:06 - End Time 2025-04-12 21:46:06 [2025-04-12 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894400', 'tblTempUsageDetail_20' ) start [2025-04-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894400', 'tblTempUsageDetail_20' ) end [2025-04-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894400', 'tblTempVendorCDR_20' ) start [2025-04-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894400', 'tblTempVendorCDR_20' ) end [2025-04-12 21:46:19] Production.INFO: ProcessCDR(1,14894400,1,1,2) [2025-04-12 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894400', 'tblTempUsageDetail_20' ) start [2025-04-12 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894400', 'tblTempUsageDetail_20' ) end [2025-04-12 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:46:24] Production.INFO: ==9952== Releasing lock... [2025-04-12 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:46:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:47:05 [end_date_ymd] => 2025-04-12 21:47:05 [RateCDR] => 1 ) [2025-04-12 21:47: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-04-12 18:47:05' and `end` < '2025-04-12 21:47: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-04-12 21:47:18] Production.INFO: count ==1287 [2025-04-12 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:47:05 - End Time 2025-04-12 21:47:05 [2025-04-12 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894405', 'tblTempUsageDetail_20' ) start [2025-04-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894405', 'tblTempUsageDetail_20' ) end [2025-04-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894405', 'tblTempVendorCDR_20' ) start [2025-04-12 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894405', 'tblTempVendorCDR_20' ) end [2025-04-12 21:47:18] Production.INFO: ProcessCDR(1,14894405,1,1,2) [2025-04-12 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894405', 'tblTempUsageDetail_20' ) start [2025-04-12 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894405', 'tblTempUsageDetail_20' ) end [2025-04-12 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:47:24] Production.INFO: ==10060== Releasing lock... [2025-04-12 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:47:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:48:06 [end_date_ymd] => 2025-04-12 21:48:06 [RateCDR] => 1 ) [2025-04-12 21:48: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-04-12 18:48:06' and `end` < '2025-04-12 21:48: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-04-12 21:48:19] Production.INFO: count ==1285 [2025-04-12 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:48:06 - End Time 2025-04-12 21:48:06 [2025-04-12 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894410', 'tblTempUsageDetail_20' ) start [2025-04-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894410', 'tblTempUsageDetail_20' ) end [2025-04-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894410', 'tblTempVendorCDR_20' ) start [2025-04-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894410', 'tblTempVendorCDR_20' ) end [2025-04-12 21:48:19] Production.INFO: ProcessCDR(1,14894410,1,1,2) [2025-04-12 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894410', 'tblTempUsageDetail_20' ) start [2025-04-12 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894410', 'tblTempUsageDetail_20' ) end [2025-04-12 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:48:23] Production.INFO: ==10131== Releasing lock... [2025-04-12 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:49:06 [end_date_ymd] => 2025-04-12 21:49:06 [RateCDR] => 1 ) [2025-04-12 21:49: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-04-12 18:49:06' and `end` < '2025-04-12 21:49: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-04-12 21:49:19] Production.INFO: count ==1284 [2025-04-12 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:49:06 - End Time 2025-04-12 21:49:06 [2025-04-12 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894415', 'tblTempUsageDetail_20' ) start [2025-04-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894415', 'tblTempUsageDetail_20' ) end [2025-04-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894415', 'tblTempVendorCDR_20' ) start [2025-04-12 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894415', 'tblTempVendorCDR_20' ) end [2025-04-12 21:49:19] Production.INFO: ProcessCDR(1,14894415,1,1,2) [2025-04-12 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894415', 'tblTempUsageDetail_20' ) start [2025-04-12 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894415', 'tblTempUsageDetail_20' ) end [2025-04-12 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:49:23] Production.INFO: ==10201== Releasing lock... [2025-04-12 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:49:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:50:07 [end_date_ymd] => 2025-04-12 21:50:07 [RateCDR] => 1 ) [2025-04-12 21:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 18:50:07' and `end` < '2025-04-12 21:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 21:50:20] Production.INFO: count ==1285 [2025-04-12 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-12 18:50:07 - End Time 2025-04-12 21:50:07 [2025-04-12 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894421', 'tblTempUsageDetail_20' ) start [2025-04-12 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894421', 'tblTempUsageDetail_20' ) end [2025-04-12 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894421', 'tblTempVendorCDR_20' ) start [2025-04-12 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894421', 'tblTempVendorCDR_20' ) end [2025-04-12 21:50:20] Production.INFO: ProcessCDR(1,14894421,1,1,2) [2025-04-12 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894421', 'tblTempUsageDetail_20' ) start [2025-04-12 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894421', 'tblTempUsageDetail_20' ) end [2025-04-12 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:50:24] Production.INFO: ==10281== Releasing lock... [2025-04-12 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:50:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:51:05 [end_date_ymd] => 2025-04-12 21:51:05 [RateCDR] => 1 ) [2025-04-12 21:51: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-04-12 18:51:05' and `end` < '2025-04-12 21:51: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-04-12 21:51:18] Production.INFO: count ==1286 [2025-04-12 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:51:05 - End Time 2025-04-12 21:51:05 [2025-04-12 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894426', 'tblTempUsageDetail_20' ) start [2025-04-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894426', 'tblTempUsageDetail_20' ) end [2025-04-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894426', 'tblTempVendorCDR_20' ) start [2025-04-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894426', 'tblTempVendorCDR_20' ) end [2025-04-12 21:51:18] Production.INFO: ProcessCDR(1,14894426,1,1,2) [2025-04-12 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894426', 'tblTempUsageDetail_20' ) start [2025-04-12 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894426', 'tblTempUsageDetail_20' ) end [2025-04-12 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:51:24] Production.INFO: ==10361== Releasing lock... [2025-04-12 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:51:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:52:06 [end_date_ymd] => 2025-04-12 21:52:06 [RateCDR] => 1 ) [2025-04-12 21:52: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-04-12 18:52:06' and `end` < '2025-04-12 21:52: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-04-12 21:52:19] Production.INFO: count ==1286 [2025-04-12 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:52:06 - End Time 2025-04-12 21:52:06 [2025-04-12 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894431', 'tblTempUsageDetail_20' ) start [2025-04-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894431', 'tblTempUsageDetail_20' ) end [2025-04-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894431', 'tblTempVendorCDR_20' ) start [2025-04-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894431', 'tblTempVendorCDR_20' ) end [2025-04-12 21:52:19] Production.INFO: ProcessCDR(1,14894431,1,1,2) [2025-04-12 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894431', 'tblTempUsageDetail_20' ) start [2025-04-12 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894431', 'tblTempUsageDetail_20' ) end [2025-04-12 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:52:23] Production.INFO: ==10436== Releasing lock... [2025-04-12 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:52:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:53:05 [end_date_ymd] => 2025-04-12 21:53:05 [RateCDR] => 1 ) [2025-04-12 21:53: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-04-12 18:53:05' and `end` < '2025-04-12 21:53: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-04-12 21:53:18] Production.INFO: count ==1286 [2025-04-12 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:53:05 - End Time 2025-04-12 21:53:05 [2025-04-12 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894436', 'tblTempUsageDetail_20' ) start [2025-04-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894436', 'tblTempUsageDetail_20' ) end [2025-04-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894436', 'tblTempVendorCDR_20' ) start [2025-04-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894436', 'tblTempVendorCDR_20' ) end [2025-04-12 21:53:18] Production.INFO: ProcessCDR(1,14894436,1,1,2) [2025-04-12 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894436', 'tblTempUsageDetail_20' ) start [2025-04-12 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894436', 'tblTempUsageDetail_20' ) end [2025-04-12 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:53:23] Production.INFO: ==10509== Releasing lock... [2025-04-12 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:53:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:54:05 [end_date_ymd] => 2025-04-12 21:54:05 [RateCDR] => 1 ) [2025-04-12 21:54: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-04-12 18:54:05' and `end` < '2025-04-12 21:54: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-04-12 21:54:19] Production.INFO: count ==1286 [2025-04-12 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:54:05 - End Time 2025-04-12 21:54:05 [2025-04-12 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894441', 'tblTempUsageDetail_20' ) start [2025-04-12 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894441', 'tblTempUsageDetail_20' ) end [2025-04-12 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894441', 'tblTempVendorCDR_20' ) start [2025-04-12 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894441', 'tblTempVendorCDR_20' ) end [2025-04-12 21:54:19] Production.INFO: ProcessCDR(1,14894441,1,1,2) [2025-04-12 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894441', 'tblTempUsageDetail_20' ) start [2025-04-12 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894441', 'tblTempUsageDetail_20' ) end [2025-04-12 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:54:23] Production.INFO: ==10596== Releasing lock... [2025-04-12 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:54:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:55:05 [end_date_ymd] => 2025-04-12 21:55:05 [RateCDR] => 1 ) [2025-04-12 21:55: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-04-12 18:55:05' and `end` < '2025-04-12 21:55: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-04-12 21:55:18] Production.INFO: count ==1289 [2025-04-12 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:55:05 - End Time 2025-04-12 21:55:05 [2025-04-12 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894446', 'tblTempUsageDetail_20' ) start [2025-04-12 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894446', 'tblTempUsageDetail_20' ) end [2025-04-12 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894446', 'tblTempVendorCDR_20' ) start [2025-04-12 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894446', 'tblTempVendorCDR_20' ) end [2025-04-12 21:55:18] Production.INFO: ProcessCDR(1,14894446,1,1,2) [2025-04-12 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894446', 'tblTempUsageDetail_20' ) start [2025-04-12 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894446', 'tblTempUsageDetail_20' ) end [2025-04-12 21:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:55:24] Production.INFO: ==10667== Releasing lock... [2025-04-12 21:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:55:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:56:06 [end_date_ymd] => 2025-04-12 21:56:06 [RateCDR] => 1 ) [2025-04-12 21:56: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-04-12 18:56:06' and `end` < '2025-04-12 21:56: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-04-12 21:56:19] Production.INFO: count ==1289 [2025-04-12 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 18:56:06 - End Time 2025-04-12 21:56:06 [2025-04-12 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894451', 'tblTempUsageDetail_20' ) start [2025-04-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894451', 'tblTempUsageDetail_20' ) end [2025-04-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894451', 'tblTempVendorCDR_20' ) start [2025-04-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894451', 'tblTempVendorCDR_20' ) end [2025-04-12 21:56:19] Production.INFO: ProcessCDR(1,14894451,1,1,2) [2025-04-12 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894451', 'tblTempUsageDetail_20' ) start [2025-04-12 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894451', 'tblTempUsageDetail_20' ) end [2025-04-12 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:56:23] Production.INFO: ==10738== Releasing lock... [2025-04-12 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:57:05 [end_date_ymd] => 2025-04-12 21:57:05 [RateCDR] => 1 ) [2025-04-12 21:57: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-04-12 18:57:05' and `end` < '2025-04-12 21:57: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-04-12 21:57:18] Production.INFO: count ==1290 [2025-04-12 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:57:05 - End Time 2025-04-12 21:57:05 [2025-04-12 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894456', 'tblTempUsageDetail_20' ) start [2025-04-12 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894456', 'tblTempUsageDetail_20' ) end [2025-04-12 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894456', 'tblTempVendorCDR_20' ) start [2025-04-12 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894456', 'tblTempVendorCDR_20' ) end [2025-04-12 21:57:18] Production.INFO: ProcessCDR(1,14894456,1,1,2) [2025-04-12 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894456', 'tblTempUsageDetail_20' ) start [2025-04-12 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894456', 'tblTempUsageDetail_20' ) end [2025-04-12 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:57:24] Production.INFO: ==10808== Releasing lock... [2025-04-12 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:57:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:58:05 [end_date_ymd] => 2025-04-12 21:58:05 [RateCDR] => 1 ) [2025-04-12 21:58: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-04-12 18:58:05' and `end` < '2025-04-12 21:58: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-04-12 21:58:18] Production.INFO: count ==1294 [2025-04-12 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:58:05 - End Time 2025-04-12 21:58:05 [2025-04-12 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894461', 'tblTempUsageDetail_20' ) start [2025-04-12 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894461', 'tblTempUsageDetail_20' ) end [2025-04-12 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894461', 'tblTempVendorCDR_20' ) start [2025-04-12 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894461', 'tblTempVendorCDR_20' ) end [2025-04-12 21:58:19] Production.INFO: ProcessCDR(1,14894461,1,1,2) [2025-04-12 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894461', 'tblTempUsageDetail_20' ) start [2025-04-12 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894461', 'tblTempUsageDetail_20' ) end [2025-04-12 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:58:24] Production.INFO: ==10885== Releasing lock... [2025-04-12 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:58:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 18:59:05 [end_date_ymd] => 2025-04-12 21:59:05 [RateCDR] => 1 ) [2025-04-12 21:59: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-04-12 18:59:05' and `end` < '2025-04-12 21:59: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-04-12 21:59:18] Production.INFO: count ==1293 [2025-04-12 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 18:59:05 - End Time 2025-04-12 21:59:05 [2025-04-12 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894466', 'tblTempUsageDetail_20' ) start [2025-04-12 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894466', 'tblTempUsageDetail_20' ) end [2025-04-12 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894466', 'tblTempVendorCDR_20' ) start [2025-04-12 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894466', 'tblTempVendorCDR_20' ) end [2025-04-12 21:59:18] Production.INFO: ProcessCDR(1,14894466,1,1,2) [2025-04-12 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894466', 'tblTempUsageDetail_20' ) start [2025-04-12 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894466', 'tblTempUsageDetail_20' ) end [2025-04-12 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 21:59:23] Production.INFO: ==10956== Releasing lock... [2025-04-12 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 21:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:00:06 [end_date_ymd] => 2025-04-12 22:00:06 [RateCDR] => 1 ) [2025-04-12 22:00: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-04-12 19:00:06' and `end` < '2025-04-12 22:00: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-04-12 22:00:20] Production.INFO: count ==1288 [2025-04-12 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-12 19:00:06 - End Time 2025-04-12 22:00:06 [2025-04-12 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894471', 'tblTempUsageDetail_20' ) start [2025-04-12 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894471', 'tblTempUsageDetail_20' ) end [2025-04-12 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894471', 'tblTempVendorCDR_20' ) start [2025-04-12 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894471', 'tblTempVendorCDR_20' ) end [2025-04-12 22:00:20] Production.INFO: ProcessCDR(1,14894471,1,1,2) [2025-04-12 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894471', 'tblTempUsageDetail_20' ) start [2025-04-12 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894471', 'tblTempUsageDetail_20' ) end [2025-04-12 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:00:24] Production.INFO: ==11030== Releasing lock... [2025-04-12 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:00:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:01:06 [end_date_ymd] => 2025-04-12 22:01:06 [RateCDR] => 1 ) [2025-04-12 22:01: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-04-12 19:01:06' and `end` < '2025-04-12 22:01: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-04-12 22:01:19] Production.INFO: count ==1235 [2025-04-12 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:01:06 - End Time 2025-04-12 22:01:06 [2025-04-12 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894477', 'tblTempUsageDetail_20' ) start [2025-04-12 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894477', 'tblTempUsageDetail_20' ) end [2025-04-12 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894477', 'tblTempVendorCDR_20' ) start [2025-04-12 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894477', 'tblTempVendorCDR_20' ) end [2025-04-12 22:01:19] Production.INFO: ProcessCDR(1,14894477,1,1,2) [2025-04-12 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894477', 'tblTempUsageDetail_20' ) start [2025-04-12 22:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894477', 'tblTempUsageDetail_20' ) end [2025-04-12 22:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:01:25] Production.INFO: ==11116== Releasing lock... [2025-04-12 22:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:01:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:02:05 [end_date_ymd] => 2025-04-12 22:02:05 [RateCDR] => 1 ) [2025-04-12 22:02: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-04-12 19:02:05' and `end` < '2025-04-12 22:02: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-04-12 22:02:19] Production.INFO: count ==1236 [2025-04-12 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:02:05 - End Time 2025-04-12 22:02:05 [2025-04-12 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894482', 'tblTempUsageDetail_20' ) start [2025-04-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894482', 'tblTempUsageDetail_20' ) end [2025-04-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894482', 'tblTempVendorCDR_20' ) start [2025-04-12 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894482', 'tblTempVendorCDR_20' ) end [2025-04-12 22:02:19] Production.INFO: ProcessCDR(1,14894482,1,1,2) [2025-04-12 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894482', 'tblTempUsageDetail_20' ) start [2025-04-12 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894482', 'tblTempUsageDetail_20' ) end [2025-04-12 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:02:23] Production.INFO: ==11228== Releasing lock... [2025-04-12 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:02:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:03:06 [end_date_ymd] => 2025-04-12 22:03:06 [RateCDR] => 1 ) [2025-04-12 22:03: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-04-12 19:03:06' and `end` < '2025-04-12 22:03: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-04-12 22:03:19] Production.INFO: count ==1235 [2025-04-12 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:03:06 - End Time 2025-04-12 22:03:06 [2025-04-12 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894487', 'tblTempUsageDetail_20' ) start [2025-04-12 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894487', 'tblTempUsageDetail_20' ) end [2025-04-12 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894487', 'tblTempVendorCDR_20' ) start [2025-04-12 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894487', 'tblTempVendorCDR_20' ) end [2025-04-12 22:03:19] Production.INFO: ProcessCDR(1,14894487,1,1,2) [2025-04-12 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894487', 'tblTempUsageDetail_20' ) start [2025-04-12 22:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894487', 'tblTempUsageDetail_20' ) end [2025-04-12 22:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:03:25] Production.INFO: ==11301== Releasing lock... [2025-04-12 22:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:03:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:04:06 [end_date_ymd] => 2025-04-12 22:04:06 [RateCDR] => 1 ) [2025-04-12 22:04: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-04-12 19:04:06' and `end` < '2025-04-12 22:04: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-04-12 22:04:19] Production.INFO: count ==1236 [2025-04-12 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:04:06 - End Time 2025-04-12 22:04:06 [2025-04-12 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894492', 'tblTempUsageDetail_20' ) start [2025-04-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894492', 'tblTempUsageDetail_20' ) end [2025-04-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894492', 'tblTempVendorCDR_20' ) start [2025-04-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894492', 'tblTempVendorCDR_20' ) end [2025-04-12 22:04:19] Production.INFO: ProcessCDR(1,14894492,1,1,2) [2025-04-12 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894492', 'tblTempUsageDetail_20' ) start [2025-04-12 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894492', 'tblTempUsageDetail_20' ) end [2025-04-12 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:04:24] Production.INFO: ==11374== Releasing lock... [2025-04-12 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:04:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:05:05 [end_date_ymd] => 2025-04-12 22:05:05 [RateCDR] => 1 ) [2025-04-12 22:05: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-04-12 19:05:05' and `end` < '2025-04-12 22:05: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-04-12 22:05:18] Production.INFO: count ==1236 [2025-04-12 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:05:05 - End Time 2025-04-12 22:05:05 [2025-04-12 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894497', 'tblTempUsageDetail_20' ) start [2025-04-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894497', 'tblTempUsageDetail_20' ) end [2025-04-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894497', 'tblTempVendorCDR_20' ) start [2025-04-12 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894497', 'tblTempVendorCDR_20' ) end [2025-04-12 22:05:18] Production.INFO: ProcessCDR(1,14894497,1,1,2) [2025-04-12 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894497', 'tblTempUsageDetail_20' ) start [2025-04-12 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894497', 'tblTempUsageDetail_20' ) end [2025-04-12 22:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:05:25] Production.INFO: ==11453== Releasing lock... [2025-04-12 22:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:05:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:06:06 [end_date_ymd] => 2025-04-12 22:06:06 [RateCDR] => 1 ) [2025-04-12 22:06: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-04-12 19:06:06' and `end` < '2025-04-12 22:06: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-04-12 22:06:19] Production.INFO: count ==1236 [2025-04-12 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:06:06 - End Time 2025-04-12 22:06:06 [2025-04-12 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894502', 'tblTempUsageDetail_20' ) start [2025-04-12 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894502', 'tblTempUsageDetail_20' ) end [2025-04-12 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894502', 'tblTempVendorCDR_20' ) start [2025-04-12 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894502', 'tblTempVendorCDR_20' ) end [2025-04-12 22:06:19] Production.INFO: ProcessCDR(1,14894502,1,1,2) [2025-04-12 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894502', 'tblTempUsageDetail_20' ) start [2025-04-12 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894502', 'tblTempUsageDetail_20' ) end [2025-04-12 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:06:23] Production.INFO: ==11532== Releasing lock... [2025-04-12 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:06:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:07:05 [end_date_ymd] => 2025-04-12 22:07:05 [RateCDR] => 1 ) [2025-04-12 22:07: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-04-12 19:07:05' and `end` < '2025-04-12 22:07: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-04-12 22:07:18] Production.INFO: count ==1236 [2025-04-12 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:07:05 - End Time 2025-04-12 22:07:05 [2025-04-12 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894507', 'tblTempUsageDetail_20' ) start [2025-04-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894507', 'tblTempUsageDetail_20' ) end [2025-04-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894507', 'tblTempVendorCDR_20' ) start [2025-04-12 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894507', 'tblTempVendorCDR_20' ) end [2025-04-12 22:07:18] Production.INFO: ProcessCDR(1,14894507,1,1,2) [2025-04-12 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894507', 'tblTempUsageDetail_20' ) start [2025-04-12 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894507', 'tblTempUsageDetail_20' ) end [2025-04-12 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:07:24] Production.INFO: ==11603== Releasing lock... [2025-04-12 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:07:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:08:06 [end_date_ymd] => 2025-04-12 22:08:06 [RateCDR] => 1 ) [2025-04-12 22:08: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-04-12 19:08:06' and `end` < '2025-04-12 22:08: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-04-12 22:08:19] Production.INFO: count ==1233 [2025-04-12 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:08:06 - End Time 2025-04-12 22:08:06 [2025-04-12 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894512', 'tblTempUsageDetail_20' ) start [2025-04-12 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894512', 'tblTempUsageDetail_20' ) end [2025-04-12 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894512', 'tblTempVendorCDR_20' ) start [2025-04-12 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894512', 'tblTempVendorCDR_20' ) end [2025-04-12 22:08:19] Production.INFO: ProcessCDR(1,14894512,1,1,2) [2025-04-12 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894512', 'tblTempUsageDetail_20' ) start [2025-04-12 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894512', 'tblTempUsageDetail_20' ) end [2025-04-12 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:08:23] Production.INFO: ==11678== Releasing lock... [2025-04-12 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:08:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:09:05 [end_date_ymd] => 2025-04-12 22:09:05 [RateCDR] => 1 ) [2025-04-12 22:09: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-04-12 19:09:05' and `end` < '2025-04-12 22:09: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-04-12 22:09:18] Production.INFO: count ==1233 [2025-04-12 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:09:05 - End Time 2025-04-12 22:09:05 [2025-04-12 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894516', 'tblTempUsageDetail_20' ) start [2025-04-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894516', 'tblTempUsageDetail_20' ) end [2025-04-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894516', 'tblTempVendorCDR_20' ) start [2025-04-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894516', 'tblTempVendorCDR_20' ) end [2025-04-12 22:09:18] Production.INFO: ProcessCDR(1,14894516,1,1,2) [2025-04-12 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894516', 'tblTempUsageDetail_20' ) start [2025-04-12 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894516', 'tblTempUsageDetail_20' ) end [2025-04-12 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:09:22] Production.INFO: ==11761== Releasing lock... [2025-04-12 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:09:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:10:06 [end_date_ymd] => 2025-04-12 22:10:06 [RateCDR] => 1 ) [2025-04-12 22:10: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-04-12 19:10:06' and `end` < '2025-04-12 22:10: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-04-12 22:10:19] Production.INFO: count ==1231 [2025-04-12 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:10:06 - End Time 2025-04-12 22:10:06 [2025-04-12 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894523', 'tblTempUsageDetail_20' ) start [2025-04-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894523', 'tblTempUsageDetail_20' ) end [2025-04-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894523', 'tblTempVendorCDR_20' ) start [2025-04-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894523', 'tblTempVendorCDR_20' ) end [2025-04-12 22:10:19] Production.INFO: ProcessCDR(1,14894523,1,1,2) [2025-04-12 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894523', 'tblTempUsageDetail_20' ) start [2025-04-12 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894523', 'tblTempUsageDetail_20' ) end [2025-04-12 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:10:23] Production.INFO: ==11834== Releasing lock... [2025-04-12 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:10:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:11:05 [end_date_ymd] => 2025-04-12 22:11:05 [RateCDR] => 1 ) [2025-04-12 22:11: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-04-12 19:11:05' and `end` < '2025-04-12 22:11: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-04-12 22:11:18] Production.INFO: count ==1206 [2025-04-12 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:11:05 - End Time 2025-04-12 22:11:05 [2025-04-12 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894528', 'tblTempUsageDetail_20' ) start [2025-04-12 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894528', 'tblTempUsageDetail_20' ) end [2025-04-12 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894528', 'tblTempVendorCDR_20' ) start [2025-04-12 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894528', 'tblTempVendorCDR_20' ) end [2025-04-12 22:11:18] Production.INFO: ProcessCDR(1,14894528,1,1,2) [2025-04-12 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894528', 'tblTempUsageDetail_20' ) start [2025-04-12 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894528', 'tblTempUsageDetail_20' ) end [2025-04-12 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:11:22] Production.INFO: ==11908== Releasing lock... [2025-04-12 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:12:06 [end_date_ymd] => 2025-04-12 22:12:06 [RateCDR] => 1 ) [2025-04-12 22:12: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-04-12 19:12:06' and `end` < '2025-04-12 22:12: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-04-12 22:12:19] Production.INFO: count ==1202 [2025-04-12 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:12:06 - End Time 2025-04-12 22:12:06 [2025-04-12 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894533', 'tblTempUsageDetail_20' ) start [2025-04-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894533', 'tblTempUsageDetail_20' ) end [2025-04-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894533', 'tblTempVendorCDR_20' ) start [2025-04-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894533', 'tblTempVendorCDR_20' ) end [2025-04-12 22:12:19] Production.INFO: ProcessCDR(1,14894533,1,1,2) [2025-04-12 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894533', 'tblTempUsageDetail_20' ) start [2025-04-12 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894533', 'tblTempUsageDetail_20' ) end [2025-04-12 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:12:23] Production.INFO: ==11978== Releasing lock... [2025-04-12 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:12:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:13:05 [end_date_ymd] => 2025-04-12 22:13:05 [RateCDR] => 1 ) [2025-04-12 22:13: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-04-12 19:13:05' and `end` < '2025-04-12 22:13: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-04-12 22:13:18] Production.INFO: count ==1209 [2025-04-12 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:13:05 - End Time 2025-04-12 22:13:05 [2025-04-12 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894538', 'tblTempUsageDetail_20' ) start [2025-04-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894538', 'tblTempUsageDetail_20' ) end [2025-04-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894538', 'tblTempVendorCDR_20' ) start [2025-04-12 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894538', 'tblTempVendorCDR_20' ) end [2025-04-12 22:13:18] Production.INFO: ProcessCDR(1,14894538,1,1,2) [2025-04-12 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894538', 'tblTempUsageDetail_20' ) start [2025-04-12 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894538', 'tblTempUsageDetail_20' ) end [2025-04-12 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:13:24] Production.INFO: ==12055== Releasing lock... [2025-04-12 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:13:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:14:06 [end_date_ymd] => 2025-04-12 22:14:06 [RateCDR] => 1 ) [2025-04-12 22:14: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-04-12 19:14:06' and `end` < '2025-04-12 22:14: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-04-12 22:14:19] Production.INFO: count ==1207 [2025-04-12 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:14:06 - End Time 2025-04-12 22:14:06 [2025-04-12 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894543', 'tblTempUsageDetail_20' ) start [2025-04-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894543', 'tblTempUsageDetail_20' ) end [2025-04-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894543', 'tblTempVendorCDR_20' ) start [2025-04-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894543', 'tblTempVendorCDR_20' ) end [2025-04-12 22:14:19] Production.INFO: ProcessCDR(1,14894543,1,1,2) [2025-04-12 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894543', 'tblTempUsageDetail_20' ) start [2025-04-12 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894543', 'tblTempUsageDetail_20' ) end [2025-04-12 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:14:23] Production.INFO: ==12131== Releasing lock... [2025-04-12 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:14:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:15:06 [end_date_ymd] => 2025-04-12 22:15:06 [RateCDR] => 1 ) [2025-04-12 22:15: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-04-12 19:15:06' and `end` < '2025-04-12 22:15: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-04-12 22:15:19] Production.INFO: count ==1205 [2025-04-12 22:15:20] Production.ERROR: pbx CDR StartTime 2025-04-12 19:15:06 - End Time 2025-04-12 22:15:06 [2025-04-12 22:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894548', 'tblTempUsageDetail_20' ) start [2025-04-12 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894548', 'tblTempUsageDetail_20' ) end [2025-04-12 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894548', 'tblTempVendorCDR_20' ) start [2025-04-12 22:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894548', 'tblTempVendorCDR_20' ) end [2025-04-12 22:15:20] Production.INFO: ProcessCDR(1,14894548,1,1,2) [2025-04-12 22:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894548', 'tblTempUsageDetail_20' ) start [2025-04-12 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894548', 'tblTempUsageDetail_20' ) end [2025-04-12 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:15:24] Production.INFO: ==12204== Releasing lock... [2025-04-12 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:15:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:16:06 [end_date_ymd] => 2025-04-12 22:16:06 [RateCDR] => 1 ) [2025-04-12 22:16: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-04-12 19:16:06' and `end` < '2025-04-12 22:16: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-04-12 22:16:19] Production.INFO: count ==1207 [2025-04-12 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:16:06 - End Time 2025-04-12 22:16:06 [2025-04-12 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894553', 'tblTempUsageDetail_20' ) start [2025-04-12 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894553', 'tblTempUsageDetail_20' ) end [2025-04-12 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894553', 'tblTempVendorCDR_20' ) start [2025-04-12 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894553', 'tblTempVendorCDR_20' ) end [2025-04-12 22:16:19] Production.INFO: ProcessCDR(1,14894553,1,1,2) [2025-04-12 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894553', 'tblTempUsageDetail_20' ) start [2025-04-12 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894553', 'tblTempUsageDetail_20' ) end [2025-04-12 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:16:23] Production.INFO: ==12277== Releasing lock... [2025-04-12 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:16:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:17:06 [end_date_ymd] => 2025-04-12 22:17:06 [RateCDR] => 1 ) [2025-04-12 22:17: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-04-12 19:17:06' and `end` < '2025-04-12 22:17: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-04-12 22:17:19] Production.INFO: count ==1209 [2025-04-12 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:17:06 - End Time 2025-04-12 22:17:06 [2025-04-12 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894558', 'tblTempUsageDetail_20' ) start [2025-04-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894558', 'tblTempUsageDetail_20' ) end [2025-04-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894558', 'tblTempVendorCDR_20' ) start [2025-04-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894558', 'tblTempVendorCDR_20' ) end [2025-04-12 22:17:19] Production.INFO: ProcessCDR(1,14894558,1,1,2) [2025-04-12 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894558', 'tblTempUsageDetail_20' ) start [2025-04-12 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894558', 'tblTempUsageDetail_20' ) end [2025-04-12 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:17:23] Production.INFO: ==12347== Releasing lock... [2025-04-12 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:17:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:18:05 [end_date_ymd] => 2025-04-12 22:18:05 [RateCDR] => 1 ) [2025-04-12 22:18: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-04-12 19:18:05' and `end` < '2025-04-12 22:18: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-04-12 22:18:18] Production.INFO: count ==1202 [2025-04-12 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:18:05 - End Time 2025-04-12 22:18:05 [2025-04-12 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894563', 'tblTempUsageDetail_20' ) start [2025-04-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894563', 'tblTempUsageDetail_20' ) end [2025-04-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894563', 'tblTempVendorCDR_20' ) start [2025-04-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894563', 'tblTempVendorCDR_20' ) end [2025-04-12 22:18:19] Production.INFO: ProcessCDR(1,14894563,1,1,2) [2025-04-12 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894563', 'tblTempUsageDetail_20' ) start [2025-04-12 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894563', 'tblTempUsageDetail_20' ) end [2025-04-12 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:18:24] Production.INFO: ==12455== Releasing lock... [2025-04-12 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:18:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:19:06 [end_date_ymd] => 2025-04-12 22:19:06 [RateCDR] => 1 ) [2025-04-12 22:19: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-04-12 19:19:06' and `end` < '2025-04-12 22:19: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-04-12 22:19:19] Production.INFO: count ==1198 [2025-04-12 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:19:06 - End Time 2025-04-12 22:19:06 [2025-04-12 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894568', 'tblTempUsageDetail_20' ) start [2025-04-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894568', 'tblTempUsageDetail_20' ) end [2025-04-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894568', 'tblTempVendorCDR_20' ) start [2025-04-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894568', 'tblTempVendorCDR_20' ) end [2025-04-12 22:19:19] Production.INFO: ProcessCDR(1,14894568,1,1,2) [2025-04-12 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894568', 'tblTempUsageDetail_20' ) start [2025-04-12 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894568', 'tblTempUsageDetail_20' ) end [2025-04-12 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:19:23] Production.INFO: ==12524== Releasing lock... [2025-04-12 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:20:06 [end_date_ymd] => 2025-04-12 22:20:06 [RateCDR] => 1 ) [2025-04-12 22:20: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-04-12 19:20:06' and `end` < '2025-04-12 22:20: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-04-12 22:20:19] Production.INFO: count ==1194 [2025-04-12 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:20:06 - End Time 2025-04-12 22:20:06 [2025-04-12 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894574', 'tblTempUsageDetail_20' ) start [2025-04-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894574', 'tblTempUsageDetail_20' ) end [2025-04-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894574', 'tblTempVendorCDR_20' ) start [2025-04-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894574', 'tblTempVendorCDR_20' ) end [2025-04-12 22:20:19] Production.INFO: ProcessCDR(1,14894574,1,1,2) [2025-04-12 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894574', 'tblTempUsageDetail_20' ) start [2025-04-12 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894574', 'tblTempUsageDetail_20' ) end [2025-04-12 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:20:23] Production.INFO: ==12597== Releasing lock... [2025-04-12 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:20:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:21:06 [end_date_ymd] => 2025-04-12 22:21:06 [RateCDR] => 1 ) [2025-04-12 22:21: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-04-12 19:21:06' and `end` < '2025-04-12 22:21: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-04-12 22:21:19] Production.INFO: count ==1178 [2025-04-12 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:21:06 - End Time 2025-04-12 22:21:06 [2025-04-12 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894579', 'tblTempUsageDetail_20' ) start [2025-04-12 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894579', 'tblTempUsageDetail_20' ) end [2025-04-12 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894579', 'tblTempVendorCDR_20' ) start [2025-04-12 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894579', 'tblTempVendorCDR_20' ) end [2025-04-12 22:21:19] Production.INFO: ProcessCDR(1,14894579,1,1,2) [2025-04-12 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894579', 'tblTempUsageDetail_20' ) start [2025-04-12 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894579', 'tblTempUsageDetail_20' ) end [2025-04-12 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:21:22] Production.INFO: ==12687== Releasing lock... [2025-04-12 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:21:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:22:05 [end_date_ymd] => 2025-04-12 22:22:05 [RateCDR] => 1 ) [2025-04-12 22:22: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-04-12 19:22:05' and `end` < '2025-04-12 22:22: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-04-12 22:22:18] Production.INFO: count ==1164 [2025-04-12 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:22:05 - End Time 2025-04-12 22:22:05 [2025-04-12 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894584', 'tblTempUsageDetail_20' ) start [2025-04-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894584', 'tblTempUsageDetail_20' ) end [2025-04-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894584', 'tblTempVendorCDR_20' ) start [2025-04-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894584', 'tblTempVendorCDR_20' ) end [2025-04-12 22:22:18] Production.INFO: ProcessCDR(1,14894584,1,1,2) [2025-04-12 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894584', 'tblTempUsageDetail_20' ) start [2025-04-12 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894584', 'tblTempUsageDetail_20' ) end [2025-04-12 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:22:22] Production.INFO: ==12757== Releasing lock... [2025-04-12 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:23:06 [end_date_ymd] => 2025-04-12 22:23:06 [RateCDR] => 1 ) [2025-04-12 22:23: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-04-12 19:23:06' and `end` < '2025-04-12 22:23: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-04-12 22:23:19] Production.INFO: count ==1163 [2025-04-12 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:23:06 - End Time 2025-04-12 22:23:06 [2025-04-12 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894589', 'tblTempUsageDetail_20' ) start [2025-04-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894589', 'tblTempUsageDetail_20' ) end [2025-04-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894589', 'tblTempVendorCDR_20' ) start [2025-04-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894589', 'tblTempVendorCDR_20' ) end [2025-04-12 22:23:19] Production.INFO: ProcessCDR(1,14894589,1,1,2) [2025-04-12 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894589', 'tblTempUsageDetail_20' ) start [2025-04-12 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894589', 'tblTempUsageDetail_20' ) end [2025-04-12 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:23:23] Production.INFO: ==12828== Releasing lock... [2025-04-12 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:23:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:24:06 [end_date_ymd] => 2025-04-12 22:24:06 [RateCDR] => 1 ) [2025-04-12 22:24: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-04-12 19:24:06' and `end` < '2025-04-12 22:24: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-04-12 22:24:19] Production.INFO: count ==1163 [2025-04-12 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:24:06 - End Time 2025-04-12 22:24:06 [2025-04-12 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894594', 'tblTempUsageDetail_20' ) start [2025-04-12 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894594', 'tblTempUsageDetail_20' ) end [2025-04-12 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894594', 'tblTempVendorCDR_20' ) start [2025-04-12 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894594', 'tblTempVendorCDR_20' ) end [2025-04-12 22:24:19] Production.INFO: ProcessCDR(1,14894594,1,1,2) [2025-04-12 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894594', 'tblTempUsageDetail_20' ) start [2025-04-12 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894594', 'tblTempUsageDetail_20' ) end [2025-04-12 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:24:23] Production.INFO: ==12908== Releasing lock... [2025-04-12 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:24:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:25:06 [end_date_ymd] => 2025-04-12 22:25:06 [RateCDR] => 1 ) [2025-04-12 22: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-04-12 19:25:06' and `end` < '2025-04-12 22: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-04-12 22:25:19] Production.INFO: count ==1170 [2025-04-12 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:25:06 - End Time 2025-04-12 22:25:06 [2025-04-12 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894599', 'tblTempUsageDetail_20' ) start [2025-04-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894599', 'tblTempUsageDetail_20' ) end [2025-04-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894599', 'tblTempVendorCDR_20' ) start [2025-04-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894599', 'tblTempVendorCDR_20' ) end [2025-04-12 22:25:19] Production.INFO: ProcessCDR(1,14894599,1,1,2) [2025-04-12 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894599', 'tblTempUsageDetail_20' ) start [2025-04-12 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894599', 'tblTempUsageDetail_20' ) end [2025-04-12 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:25:23] Production.INFO: ==12991== Releasing lock... [2025-04-12 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:25:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:26:06 [end_date_ymd] => 2025-04-12 22:26:06 [RateCDR] => 1 ) [2025-04-12 22:26: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-04-12 19:26:06' and `end` < '2025-04-12 22:26: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-04-12 22:26:19] Production.INFO: count ==1169 [2025-04-12 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:26:06 - End Time 2025-04-12 22:26:06 [2025-04-12 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894604', 'tblTempUsageDetail_20' ) start [2025-04-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894604', 'tblTempUsageDetail_20' ) end [2025-04-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894604', 'tblTempVendorCDR_20' ) start [2025-04-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894604', 'tblTempVendorCDR_20' ) end [2025-04-12 22:26:19] Production.INFO: ProcessCDR(1,14894604,1,1,2) [2025-04-12 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894604', 'tblTempUsageDetail_20' ) start [2025-04-12 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894604', 'tblTempUsageDetail_20' ) end [2025-04-12 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:26:23] Production.INFO: ==13075== Releasing lock... [2025-04-12 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:26:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:27:06 [end_date_ymd] => 2025-04-12 22:27:06 [RateCDR] => 1 ) [2025-04-12 22:27: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-04-12 19:27:06' and `end` < '2025-04-12 22:27: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-04-12 22:27:19] Production.INFO: count ==1169 [2025-04-12 22:27:20] Production.ERROR: pbx CDR StartTime 2025-04-12 19:27:06 - End Time 2025-04-12 22:27:06 [2025-04-12 22:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894609', 'tblTempUsageDetail_20' ) start [2025-04-12 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894609', 'tblTempUsageDetail_20' ) end [2025-04-12 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894609', 'tblTempVendorCDR_20' ) start [2025-04-12 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894609', 'tblTempVendorCDR_20' ) end [2025-04-12 22:27:20] Production.INFO: ProcessCDR(1,14894609,1,1,2) [2025-04-12 22:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894609', 'tblTempUsageDetail_20' ) start [2025-04-12 22:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894609', 'tblTempUsageDetail_20' ) end [2025-04-12 22:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:27:25] Production.INFO: ==13146== Releasing lock... [2025-04-12 22:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:27:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:28:06 [end_date_ymd] => 2025-04-12 22:28:06 [RateCDR] => 1 ) [2025-04-12 22:28: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-04-12 19:28:06' and `end` < '2025-04-12 22:28: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-04-12 22:28:19] Production.INFO: count ==1167 [2025-04-12 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:28:06 - End Time 2025-04-12 22:28:06 [2025-04-12 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894614', 'tblTempUsageDetail_20' ) start [2025-04-12 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894614', 'tblTempUsageDetail_20' ) end [2025-04-12 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894614', 'tblTempVendorCDR_20' ) start [2025-04-12 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894614', 'tblTempVendorCDR_20' ) end [2025-04-12 22:28:19] Production.INFO: ProcessCDR(1,14894614,1,1,2) [2025-04-12 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894614', 'tblTempUsageDetail_20' ) start [2025-04-12 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894614', 'tblTempUsageDetail_20' ) end [2025-04-12 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:28:23] Production.INFO: ==13218== Releasing lock... [2025-04-12 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:28:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:29:06 [end_date_ymd] => 2025-04-12 22:29:06 [RateCDR] => 1 ) [2025-04-12 22:29: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-04-12 19:29:06' and `end` < '2025-04-12 22:29: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-04-12 22:29:19] Production.INFO: count ==1166 [2025-04-12 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:29:06 - End Time 2025-04-12 22:29:06 [2025-04-12 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894619', 'tblTempUsageDetail_20' ) start [2025-04-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894619', 'tblTempUsageDetail_20' ) end [2025-04-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894619', 'tblTempVendorCDR_20' ) start [2025-04-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894619', 'tblTempVendorCDR_20' ) end [2025-04-12 22:29:19] Production.INFO: ProcessCDR(1,14894619,1,1,2) [2025-04-12 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894619', 'tblTempUsageDetail_20' ) start [2025-04-12 22:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894619', 'tblTempUsageDetail_20' ) end [2025-04-12 22:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:29:25] Production.INFO: ==13294== Releasing lock... [2025-04-12 22:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:29:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:30:07 [end_date_ymd] => 2025-04-12 22:30:07 [RateCDR] => 1 ) [2025-04-12 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-12 19:30:07' and `end` < '2025-04-12 22:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-12 22:30:20] Production.INFO: count ==1167 [2025-04-12 22:30:20] Production.ERROR: pbx CDR StartTime 2025-04-12 19:30:07 - End Time 2025-04-12 22:30:07 [2025-04-12 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894624', 'tblTempUsageDetail_20' ) start [2025-04-12 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894624', 'tblTempUsageDetail_20' ) end [2025-04-12 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894624', 'tblTempVendorCDR_20' ) start [2025-04-12 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894624', 'tblTempVendorCDR_20' ) end [2025-04-12 22:30:20] Production.INFO: ProcessCDR(1,14894624,1,1,2) [2025-04-12 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894624', 'tblTempUsageDetail_20' ) start [2025-04-12 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894624', 'tblTempUsageDetail_20' ) end [2025-04-12 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:30:25] Production.INFO: ==13370== Releasing lock... [2025-04-12 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:30:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:31:06 [end_date_ymd] => 2025-04-12 22:31:06 [RateCDR] => 1 ) [2025-04-12 22:31: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-04-12 19:31:06' and `end` < '2025-04-12 22:31: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-04-12 22:31:19] Production.INFO: count ==1165 [2025-04-12 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:31:06 - End Time 2025-04-12 22:31:06 [2025-04-12 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894630', 'tblTempUsageDetail_20' ) start [2025-04-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894630', 'tblTempUsageDetail_20' ) end [2025-04-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894630', 'tblTempVendorCDR_20' ) start [2025-04-12 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894630', 'tblTempVendorCDR_20' ) end [2025-04-12 22:31:19] Production.INFO: ProcessCDR(1,14894630,1,1,2) [2025-04-12 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894630', 'tblTempUsageDetail_20' ) start [2025-04-12 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894630', 'tblTempUsageDetail_20' ) end [2025-04-12 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:31:23] Production.INFO: ==13448== Releasing lock... [2025-04-12 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:31:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:32:06 [end_date_ymd] => 2025-04-12 22:32:06 [RateCDR] => 1 ) [2025-04-12 22:32: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-04-12 19:32:06' and `end` < '2025-04-12 22:32: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-04-12 22:32:19] Production.INFO: count ==1164 [2025-04-12 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:32:06 - End Time 2025-04-12 22:32:06 [2025-04-12 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894635', 'tblTempUsageDetail_20' ) start [2025-04-12 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894635', 'tblTempUsageDetail_20' ) end [2025-04-12 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894635', 'tblTempVendorCDR_20' ) start [2025-04-12 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894635', 'tblTempVendorCDR_20' ) end [2025-04-12 22:32:19] Production.INFO: ProcessCDR(1,14894635,1,1,2) [2025-04-12 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894635', 'tblTempUsageDetail_20' ) start [2025-04-12 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894635', 'tblTempUsageDetail_20' ) end [2025-04-12 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:32:23] Production.INFO: ==13520== Releasing lock... [2025-04-12 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:32:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:33:06 [end_date_ymd] => 2025-04-12 22:33:06 [RateCDR] => 1 ) [2025-04-12 22:33: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-04-12 19:33:06' and `end` < '2025-04-12 22:33: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-04-12 22:33:19] Production.INFO: count ==1170 [2025-04-12 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:33:06 - End Time 2025-04-12 22:33:06 [2025-04-12 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894640', 'tblTempUsageDetail_20' ) start [2025-04-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894640', 'tblTempUsageDetail_20' ) end [2025-04-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894640', 'tblTempVendorCDR_20' ) start [2025-04-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894640', 'tblTempVendorCDR_20' ) end [2025-04-12 22:33:19] Production.INFO: ProcessCDR(1,14894640,1,1,2) [2025-04-12 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894640', 'tblTempUsageDetail_20' ) start [2025-04-12 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894640', 'tblTempUsageDetail_20' ) end [2025-04-12 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:33:23] Production.INFO: ==13629== Releasing lock... [2025-04-12 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:33:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:34:05 [end_date_ymd] => 2025-04-12 22:34:05 [RateCDR] => 1 ) [2025-04-12 22:34: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-04-12 19:34:05' and `end` < '2025-04-12 22:34: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-04-12 22:34:18] Production.INFO: count ==1168 [2025-04-12 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:34:05 - End Time 2025-04-12 22:34:05 [2025-04-12 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894645', 'tblTempUsageDetail_20' ) start [2025-04-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894645', 'tblTempUsageDetail_20' ) end [2025-04-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894645', 'tblTempVendorCDR_20' ) start [2025-04-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894645', 'tblTempVendorCDR_20' ) end [2025-04-12 22:34:19] Production.INFO: ProcessCDR(1,14894645,1,1,2) [2025-04-12 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894645', 'tblTempUsageDetail_20' ) start [2025-04-12 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894645', 'tblTempUsageDetail_20' ) end [2025-04-12 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:34:22] Production.INFO: ==13699== Releasing lock... [2025-04-12 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:34:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:35:06 [end_date_ymd] => 2025-04-12 22:35:06 [RateCDR] => 1 ) [2025-04-12 22:35: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-04-12 19:35:06' and `end` < '2025-04-12 22:35: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-04-12 22:35:19] Production.INFO: count ==1360 [2025-04-12 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:35:06 - End Time 2025-04-12 22:35:06 [2025-04-12 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894650', 'tblTempUsageDetail_20' ) start [2025-04-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894650', 'tblTempUsageDetail_20' ) end [2025-04-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894650', 'tblTempVendorCDR_20' ) start [2025-04-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894650', 'tblTempVendorCDR_20' ) end [2025-04-12 22:35:19] Production.INFO: ProcessCDR(1,14894650,1,1,2) [2025-04-12 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894650', 'tblTempUsageDetail_20' ) start [2025-04-12 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894650', 'tblTempUsageDetail_20' ) end [2025-04-12 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:35:24] Production.INFO: ==13776== Releasing lock... [2025-04-12 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:35:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:36:06 [end_date_ymd] => 2025-04-12 22:36:06 [RateCDR] => 1 ) [2025-04-12 22:36: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-04-12 19:36:06' and `end` < '2025-04-12 22:36: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-04-12 22:36:19] Production.INFO: count ==1360 [2025-04-12 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:36:06 - End Time 2025-04-12 22:36:06 [2025-04-12 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894655', 'tblTempUsageDetail_20' ) start [2025-04-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894655', 'tblTempUsageDetail_20' ) end [2025-04-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894655', 'tblTempVendorCDR_20' ) start [2025-04-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894655', 'tblTempVendorCDR_20' ) end [2025-04-12 22:36:19] Production.INFO: ProcessCDR(1,14894655,1,1,2) [2025-04-12 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894655', 'tblTempUsageDetail_20' ) start [2025-04-12 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894655', 'tblTempUsageDetail_20' ) end [2025-04-12 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:36:23] Production.INFO: ==13854== Releasing lock... [2025-04-12 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:36:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:37:06 [end_date_ymd] => 2025-04-12 22:37:06 [RateCDR] => 1 ) [2025-04-12 22:37: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-04-12 19:37:06' and `end` < '2025-04-12 22:37: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-04-12 22:37:19] Production.INFO: count ==1360 [2025-04-12 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:37:06 - End Time 2025-04-12 22:37:06 [2025-04-12 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894660', 'tblTempUsageDetail_20' ) start [2025-04-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894660', 'tblTempUsageDetail_20' ) end [2025-04-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894660', 'tblTempVendorCDR_20' ) start [2025-04-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894660', 'tblTempVendorCDR_20' ) end [2025-04-12 22:37:19] Production.INFO: ProcessCDR(1,14894660,1,1,2) [2025-04-12 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894660', 'tblTempUsageDetail_20' ) start [2025-04-12 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894660', 'tblTempUsageDetail_20' ) end [2025-04-12 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:37:23] Production.INFO: ==13930== Releasing lock... [2025-04-12 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:37:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:38:05 [end_date_ymd] => 2025-04-12 22:38:05 [RateCDR] => 1 ) [2025-04-12 22:38: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-04-12 19:38:05' and `end` < '2025-04-12 22:38: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-04-12 22:38:18] Production.INFO: count ==1362 [2025-04-12 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:38:05 - End Time 2025-04-12 22:38:05 [2025-04-12 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894665', 'tblTempUsageDetail_20' ) start [2025-04-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894665', 'tblTempUsageDetail_20' ) end [2025-04-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894665', 'tblTempVendorCDR_20' ) start [2025-04-12 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894665', 'tblTempVendorCDR_20' ) end [2025-04-12 22:38:18] Production.INFO: ProcessCDR(1,14894665,1,1,2) [2025-04-12 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894665', 'tblTempUsageDetail_20' ) start [2025-04-12 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894665', 'tblTempUsageDetail_20' ) end [2025-04-12 22:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:38:24] Production.INFO: ==14019== Releasing lock... [2025-04-12 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:38:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:39:06 [end_date_ymd] => 2025-04-12 22:39:06 [RateCDR] => 1 ) [2025-04-12 22:39: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-04-12 19:39:06' and `end` < '2025-04-12 22:39: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-04-12 22:39:19] Production.INFO: count ==1365 [2025-04-12 22:39:20] Production.ERROR: pbx CDR StartTime 2025-04-12 19:39:06 - End Time 2025-04-12 22:39:06 [2025-04-12 22:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894670', 'tblTempUsageDetail_20' ) start [2025-04-12 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894670', 'tblTempUsageDetail_20' ) end [2025-04-12 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894670', 'tblTempVendorCDR_20' ) start [2025-04-12 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894670', 'tblTempVendorCDR_20' ) end [2025-04-12 22:39:20] Production.INFO: ProcessCDR(1,14894670,1,1,2) [2025-04-12 22:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894670', 'tblTempUsageDetail_20' ) start [2025-04-12 22:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894670', 'tblTempUsageDetail_20' ) end [2025-04-12 22:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:39:25] Production.INFO: ==14096== Releasing lock... [2025-04-12 22:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:39:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:40:06 [end_date_ymd] => 2025-04-12 22:40:06 [RateCDR] => 1 ) [2025-04-12 22:40: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-04-12 19:40:06' and `end` < '2025-04-12 22:40: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-04-12 22:40:19] Production.INFO: count ==1366 [2025-04-12 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:40:06 - End Time 2025-04-12 22:40:06 [2025-04-12 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894676', 'tblTempUsageDetail_20' ) start [2025-04-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894676', 'tblTempUsageDetail_20' ) end [2025-04-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894676', 'tblTempVendorCDR_20' ) start [2025-04-12 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894676', 'tblTempVendorCDR_20' ) end [2025-04-12 22:40:19] Production.INFO: ProcessCDR(1,14894676,1,1,2) [2025-04-12 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894676', 'tblTempUsageDetail_20' ) start [2025-04-12 22:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894676', 'tblTempUsageDetail_20' ) end [2025-04-12 22:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:40:25] Production.INFO: ==14176== Releasing lock... [2025-04-12 22:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:40:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:41:06 [end_date_ymd] => 2025-04-12 22:41:06 [RateCDR] => 1 ) [2025-04-12 22:41: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-04-12 19:41:06' and `end` < '2025-04-12 22:41: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-04-12 22:41:19] Production.INFO: count ==1364 [2025-04-12 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:41:06 - End Time 2025-04-12 22:41:06 [2025-04-12 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894681', 'tblTempUsageDetail_20' ) start [2025-04-12 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894681', 'tblTempUsageDetail_20' ) end [2025-04-12 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894681', 'tblTempVendorCDR_20' ) start [2025-04-12 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894681', 'tblTempVendorCDR_20' ) end [2025-04-12 22:41:19] Production.INFO: ProcessCDR(1,14894681,1,1,2) [2025-04-12 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894681', 'tblTempUsageDetail_20' ) start [2025-04-12 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894681', 'tblTempUsageDetail_20' ) end [2025-04-12 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:41:23] Production.INFO: ==14250== Releasing lock... [2025-04-12 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:41:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:42:05 [end_date_ymd] => 2025-04-12 22:42:05 [RateCDR] => 1 ) [2025-04-12 22:42: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-04-12 19:42:05' and `end` < '2025-04-12 22:42: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-04-12 22:42:18] Production.INFO: count ==1367 [2025-04-12 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:42:05 - End Time 2025-04-12 22:42:05 [2025-04-12 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894686', 'tblTempUsageDetail_20' ) start [2025-04-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894686', 'tblTempUsageDetail_20' ) end [2025-04-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894686', 'tblTempVendorCDR_20' ) start [2025-04-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894686', 'tblTempVendorCDR_20' ) end [2025-04-12 22:42:19] Production.INFO: ProcessCDR(1,14894686,1,1,2) [2025-04-12 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894686', 'tblTempUsageDetail_20' ) start [2025-04-12 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894686', 'tblTempUsageDetail_20' ) end [2025-04-12 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:42:24] Production.INFO: ==14320== Releasing lock... [2025-04-12 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:42:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:43:05 [end_date_ymd] => 2025-04-12 22:43:05 [RateCDR] => 1 ) [2025-04-12 22:43: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-04-12 19:43:05' and `end` < '2025-04-12 22:43: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-04-12 22:43:19] Production.INFO: count ==1367 [2025-04-12 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:43:05 - End Time 2025-04-12 22:43:05 [2025-04-12 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894691', 'tblTempUsageDetail_20' ) start [2025-04-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894691', 'tblTempUsageDetail_20' ) end [2025-04-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894691', 'tblTempVendorCDR_20' ) start [2025-04-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894691', 'tblTempVendorCDR_20' ) end [2025-04-12 22:43:19] Production.INFO: ProcessCDR(1,14894691,1,1,2) [2025-04-12 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894691', 'tblTempUsageDetail_20' ) start [2025-04-12 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894691', 'tblTempUsageDetail_20' ) end [2025-04-12 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:43:23] Production.INFO: ==14395== Releasing lock... [2025-04-12 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:43:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:44:06 [end_date_ymd] => 2025-04-12 22:44:06 [RateCDR] => 1 ) [2025-04-12 22:44: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-04-12 19:44:06' and `end` < '2025-04-12 22:44: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-04-12 22:44:19] Production.INFO: count ==1367 [2025-04-12 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:44:06 - End Time 2025-04-12 22:44:06 [2025-04-12 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894696', 'tblTempUsageDetail_20' ) start [2025-04-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894696', 'tblTempUsageDetail_20' ) end [2025-04-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894696', 'tblTempVendorCDR_20' ) start [2025-04-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894696', 'tblTempVendorCDR_20' ) end [2025-04-12 22:44:19] Production.INFO: ProcessCDR(1,14894696,1,1,2) [2025-04-12 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894696', 'tblTempUsageDetail_20' ) start [2025-04-12 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894696', 'tblTempUsageDetail_20' ) end [2025-04-12 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:44:23] Production.INFO: ==14475== Releasing lock... [2025-04-12 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:44:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:45:05 [end_date_ymd] => 2025-04-12 22:45:05 [RateCDR] => 1 ) [2025-04-12 22:45: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-04-12 19:45:05' and `end` < '2025-04-12 22:45: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-04-12 22:45:18] Production.INFO: count ==1364 [2025-04-12 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:45:05 - End Time 2025-04-12 22:45:05 [2025-04-12 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894701', 'tblTempUsageDetail_20' ) start [2025-04-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894701', 'tblTempUsageDetail_20' ) end [2025-04-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894701', 'tblTempVendorCDR_20' ) start [2025-04-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894701', 'tblTempVendorCDR_20' ) end [2025-04-12 22:45:18] Production.INFO: ProcessCDR(1,14894701,1,1,2) [2025-04-12 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894701', 'tblTempUsageDetail_20' ) start [2025-04-12 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894701', 'tblTempUsageDetail_20' ) end [2025-04-12 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:45:22] Production.INFO: ==14563== Releasing lock... [2025-04-12 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:46:06 [end_date_ymd] => 2025-04-12 22:46:06 [RateCDR] => 1 ) [2025-04-12 22:46: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-04-12 19:46:06' and `end` < '2025-04-12 22:46: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-04-12 22:46:19] Production.INFO: count ==1362 [2025-04-12 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:46:06 - End Time 2025-04-12 22:46:06 [2025-04-12 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894706', 'tblTempUsageDetail_20' ) start [2025-04-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894706', 'tblTempUsageDetail_20' ) end [2025-04-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894706', 'tblTempVendorCDR_20' ) start [2025-04-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894706', 'tblTempVendorCDR_20' ) end [2025-04-12 22:46:19] Production.INFO: ProcessCDR(1,14894706,1,1,2) [2025-04-12 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894706', 'tblTempUsageDetail_20' ) start [2025-04-12 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894706', 'tblTempUsageDetail_20' ) end [2025-04-12 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:46:23] Production.INFO: ==14637== Releasing lock... [2025-04-12 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:46:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:47:05 [end_date_ymd] => 2025-04-12 22:47:05 [RateCDR] => 1 ) [2025-04-12 22:47: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-04-12 19:47:05' and `end` < '2025-04-12 22:47: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-04-12 22:47:18] Production.INFO: count ==1361 [2025-04-12 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:47:05 - End Time 2025-04-12 22:47:05 [2025-04-12 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894707', 'tblTempUsageDetail_20' ) start [2025-04-12 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894707', 'tblTempUsageDetail_20' ) end [2025-04-12 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894707', 'tblTempVendorCDR_20' ) start [2025-04-12 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894707', 'tblTempVendorCDR_20' ) end [2025-04-12 22:47:18] Production.INFO: ProcessCDR(1,14894707,1,1,2) [2025-04-12 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894707', 'tblTempUsageDetail_20' ) start [2025-04-12 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894707', 'tblTempUsageDetail_20' ) end [2025-04-12 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:47:22] Production.INFO: ==14707== Releasing lock... [2025-04-12 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:47:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:48:06 [end_date_ymd] => 2025-04-12 22:48:06 [RateCDR] => 1 ) [2025-04-12 22:48: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-04-12 19:48:06' and `end` < '2025-04-12 22:48: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-04-12 22:48:19] Production.INFO: count ==1360 [2025-04-12 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:48:06 - End Time 2025-04-12 22:48:06 [2025-04-12 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894716', 'tblTempUsageDetail_20' ) start [2025-04-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894716', 'tblTempUsageDetail_20' ) end [2025-04-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894716', 'tblTempVendorCDR_20' ) start [2025-04-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894716', 'tblTempVendorCDR_20' ) end [2025-04-12 22:48:19] Production.INFO: ProcessCDR(1,14894716,1,1,2) [2025-04-12 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894716', 'tblTempUsageDetail_20' ) start [2025-04-12 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894716', 'tblTempUsageDetail_20' ) end [2025-04-12 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:48:23] Production.INFO: ==14823== Releasing lock... [2025-04-12 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:48:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:49:05 [end_date_ymd] => 2025-04-12 22:49:05 [RateCDR] => 1 ) [2025-04-12 22:49: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-04-12 19:49:05' and `end` < '2025-04-12 22:49: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-04-12 22:49:18] Production.INFO: count ==1361 [2025-04-12 22:49:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:49:05 - End Time 2025-04-12 22:49:05 [2025-04-12 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894721', 'tblTempUsageDetail_20' ) start [2025-04-12 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894721', 'tblTempUsageDetail_20' ) end [2025-04-12 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894721', 'tblTempVendorCDR_20' ) start [2025-04-12 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894721', 'tblTempVendorCDR_20' ) end [2025-04-12 22:49:19] Production.INFO: ProcessCDR(1,14894721,1,1,2) [2025-04-12 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894721', 'tblTempUsageDetail_20' ) start [2025-04-12 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894721', 'tblTempUsageDetail_20' ) end [2025-04-12 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:49:23] Production.INFO: ==14897== Releasing lock... [2025-04-12 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:49:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:50:06 [end_date_ymd] => 2025-04-12 22:50:06 [RateCDR] => 1 ) [2025-04-12 22:50: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-04-12 19:50:06' and `end` < '2025-04-12 22:50: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-04-12 22:50:19] Production.INFO: count ==1361 [2025-04-12 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:50:06 - End Time 2025-04-12 22:50:06 [2025-04-12 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894726', 'tblTempUsageDetail_20' ) start [2025-04-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894726', 'tblTempUsageDetail_20' ) end [2025-04-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894726', 'tblTempVendorCDR_20' ) start [2025-04-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894726', 'tblTempVendorCDR_20' ) end [2025-04-12 22:50:19] Production.INFO: ProcessCDR(1,14894726,1,1,2) [2025-04-12 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894726', 'tblTempUsageDetail_20' ) start [2025-04-12 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894726', 'tblTempUsageDetail_20' ) end [2025-04-12 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:50:23] Production.INFO: ==14970== Releasing lock... [2025-04-12 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:50:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:51:05 [end_date_ymd] => 2025-04-12 22:51:05 [RateCDR] => 1 ) [2025-04-12 22:51: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-04-12 19:51:05' and `end` < '2025-04-12 22:51: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-04-12 22:51:18] Production.INFO: count ==1335 [2025-04-12 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:51:05 - End Time 2025-04-12 22:51:05 [2025-04-12 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894731', 'tblTempUsageDetail_20' ) start [2025-04-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894731', 'tblTempUsageDetail_20' ) end [2025-04-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894731', 'tblTempVendorCDR_20' ) start [2025-04-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894731', 'tblTempVendorCDR_20' ) end [2025-04-12 22:51:18] Production.INFO: ProcessCDR(1,14894731,1,1,2) [2025-04-12 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894731', 'tblTempUsageDetail_20' ) start [2025-04-12 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894731', 'tblTempUsageDetail_20' ) end [2025-04-12 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:51:22] Production.INFO: ==15051== Releasing lock... [2025-04-12 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:51:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:52:06 [end_date_ymd] => 2025-04-12 22:52:06 [RateCDR] => 1 ) [2025-04-12 22:52: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-04-12 19:52:06' and `end` < '2025-04-12 22:52: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-04-12 22:52:19] Production.INFO: count ==1334 [2025-04-12 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:52:06 - End Time 2025-04-12 22:52:06 [2025-04-12 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894737', 'tblTempUsageDetail_20' ) start [2025-04-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894737', 'tblTempUsageDetail_20' ) end [2025-04-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894737', 'tblTempVendorCDR_20' ) start [2025-04-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894737', 'tblTempVendorCDR_20' ) end [2025-04-12 22:52:19] Production.INFO: ProcessCDR(1,14894737,1,1,2) [2025-04-12 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894737', 'tblTempUsageDetail_20' ) start [2025-04-12 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894737', 'tblTempUsageDetail_20' ) end [2025-04-12 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:52:23] Production.INFO: ==15137== Releasing lock... [2025-04-12 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:52:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:53:05 [end_date_ymd] => 2025-04-12 22:53:05 [RateCDR] => 1 ) [2025-04-12 22:53: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-04-12 19:53:05' and `end` < '2025-04-12 22:53: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-04-12 22:53:18] Production.INFO: count ==1334 [2025-04-12 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:53:05 - End Time 2025-04-12 22:53:05 [2025-04-12 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894742', 'tblTempUsageDetail_20' ) start [2025-04-12 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894742', 'tblTempUsageDetail_20' ) end [2025-04-12 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894742', 'tblTempVendorCDR_20' ) start [2025-04-12 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894742', 'tblTempVendorCDR_20' ) end [2025-04-12 22:53:18] Production.INFO: ProcessCDR(1,14894742,1,1,2) [2025-04-12 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894742', 'tblTempUsageDetail_20' ) start [2025-04-12 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894742', 'tblTempUsageDetail_20' ) end [2025-04-12 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:53:22] Production.INFO: ==15214== Releasing lock... [2025-04-12 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:54:05 [end_date_ymd] => 2025-04-12 22:54:05 [RateCDR] => 1 ) [2025-04-12 22:54: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-04-12 19:54:05' and `end` < '2025-04-12 22:54: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-04-12 22:54:18] Production.INFO: count ==1334 [2025-04-12 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:54:05 - End Time 2025-04-12 22:54:05 [2025-04-12 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894747', 'tblTempUsageDetail_20' ) start [2025-04-12 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894747', 'tblTempUsageDetail_20' ) end [2025-04-12 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894747', 'tblTempVendorCDR_20' ) start [2025-04-12 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894747', 'tblTempVendorCDR_20' ) end [2025-04-12 22:54:19] Production.INFO: ProcessCDR(1,14894747,1,1,2) [2025-04-12 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894747', 'tblTempUsageDetail_20' ) start [2025-04-12 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894747', 'tblTempUsageDetail_20' ) end [2025-04-12 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:54:22] Production.INFO: ==15285== Releasing lock... [2025-04-12 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:55:05 [end_date_ymd] => 2025-04-12 22:55:05 [RateCDR] => 1 ) [2025-04-12 22:55: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-04-12 19:55:05' and `end` < '2025-04-12 22:55: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-04-12 22:55:18] Production.INFO: count ==1336 [2025-04-12 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:55:05 - End Time 2025-04-12 22:55:05 [2025-04-12 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894752', 'tblTempUsageDetail_20' ) start [2025-04-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894752', 'tblTempUsageDetail_20' ) end [2025-04-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894752', 'tblTempVendorCDR_20' ) start [2025-04-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894752', 'tblTempVendorCDR_20' ) end [2025-04-12 22:55:18] Production.INFO: ProcessCDR(1,14894752,1,1,2) [2025-04-12 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894752', 'tblTempUsageDetail_20' ) start [2025-04-12 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894752', 'tblTempUsageDetail_20' ) end [2025-04-12 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:55:22] Production.INFO: ==15371== Releasing lock... [2025-04-12 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:55:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:56:06 [end_date_ymd] => 2025-04-12 22:56:06 [RateCDR] => 1 ) [2025-04-12 22:56: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-04-12 19:56:06' and `end` < '2025-04-12 22:56: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-04-12 22:56:19] Production.INFO: count ==1337 [2025-04-12 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:56:06 - End Time 2025-04-12 22:56:06 [2025-04-12 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894757', 'tblTempUsageDetail_20' ) start [2025-04-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894757', 'tblTempUsageDetail_20' ) end [2025-04-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894757', 'tblTempVendorCDR_20' ) start [2025-04-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894757', 'tblTempVendorCDR_20' ) end [2025-04-12 22:56:19] Production.INFO: ProcessCDR(1,14894757,1,1,2) [2025-04-12 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894757', 'tblTempUsageDetail_20' ) start [2025-04-12 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894757', 'tblTempUsageDetail_20' ) end [2025-04-12 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:56:23] Production.INFO: ==15445== Releasing lock... [2025-04-12 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:56:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:57:05 [end_date_ymd] => 2025-04-12 22:57:05 [RateCDR] => 1 ) [2025-04-12 22:57: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-04-12 19:57:05' and `end` < '2025-04-12 22:57: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-04-12 22:57:18] Production.INFO: count ==1336 [2025-04-12 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-12 19:57:05 - End Time 2025-04-12 22:57:05 [2025-04-12 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894762', 'tblTempUsageDetail_20' ) start [2025-04-12 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894762', 'tblTempUsageDetail_20' ) end [2025-04-12 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894762', 'tblTempVendorCDR_20' ) start [2025-04-12 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894762', 'tblTempVendorCDR_20' ) end [2025-04-12 22:57:18] Production.INFO: ProcessCDR(1,14894762,1,1,2) [2025-04-12 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894762', 'tblTempUsageDetail_20' ) start [2025-04-12 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894762', 'tblTempUsageDetail_20' ) end [2025-04-12 22:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:57:24] Production.INFO: ==15516== Releasing lock... [2025-04-12 22:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:57:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:58:06 [end_date_ymd] => 2025-04-12 22:58:06 [RateCDR] => 1 ) [2025-04-12 22:58: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-04-12 19:58:06' and `end` < '2025-04-12 22:58: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-04-12 22:58:19] Production.INFO: count ==1334 [2025-04-12 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:58:06 - End Time 2025-04-12 22:58:06 [2025-04-12 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894767', 'tblTempUsageDetail_20' ) start [2025-04-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894767', 'tblTempUsageDetail_20' ) end [2025-04-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894767', 'tblTempVendorCDR_20' ) start [2025-04-12 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894767', 'tblTempVendorCDR_20' ) end [2025-04-12 22:58:19] Production.INFO: ProcessCDR(1,14894767,1,1,2) [2025-04-12 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894767', 'tblTempUsageDetail_20' ) start [2025-04-12 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894767', 'tblTempUsageDetail_20' ) end [2025-04-12 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:58:23] Production.INFO: ==15588== Releasing lock... [2025-04-12 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:58:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 19:59:06 [end_date_ymd] => 2025-04-12 22:59:06 [RateCDR] => 1 ) [2025-04-12 22:59: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-04-12 19:59:06' and `end` < '2025-04-12 22:59: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-04-12 22:59:19] Production.INFO: count ==1334 [2025-04-12 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-12 19:59:06 - End Time 2025-04-12 22:59:06 [2025-04-12 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894772', 'tblTempUsageDetail_20' ) start [2025-04-12 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894772', 'tblTempUsageDetail_20' ) end [2025-04-12 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894772', 'tblTempVendorCDR_20' ) start [2025-04-12 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894772', 'tblTempVendorCDR_20' ) end [2025-04-12 22:59:19] Production.INFO: ProcessCDR(1,14894772,1,1,2) [2025-04-12 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 22:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 22:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894772', 'tblTempUsageDetail_20' ) start [2025-04-12 22:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894772', 'tblTempUsageDetail_20' ) end [2025-04-12 22:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 22:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 22:59:25] Production.INFO: ==15658== Releasing lock... [2025-04-12 22:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 22:59:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:00:06 [end_date_ymd] => 2025-04-12 23:00:06 [RateCDR] => 1 ) [2025-04-12 23:00: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-04-12 20:00:06' and `end` < '2025-04-12 23:00: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-04-12 23:00:18] Production.INFO: count ==1333 [2025-04-12 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:00:06 - End Time 2025-04-12 23:00:06 [2025-04-12 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894777', 'tblTempUsageDetail_20' ) start [2025-04-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894777', 'tblTempUsageDetail_20' ) end [2025-04-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894777', 'tblTempVendorCDR_20' ) start [2025-04-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894777', 'tblTempVendorCDR_20' ) end [2025-04-12 23:00:19] Production.INFO: ProcessCDR(1,14894777,1,1,2) [2025-04-12 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894777', 'tblTempUsageDetail_20' ) start [2025-04-12 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894777', 'tblTempUsageDetail_20' ) end [2025-04-12 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:00:25] Production.INFO: ==15740== Releasing lock... [2025-04-12 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:00:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:01:06 [end_date_ymd] => 2025-04-12 23:01:06 [RateCDR] => 1 ) [2025-04-12 23:01: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-04-12 20:01:06' and `end` < '2025-04-12 23:01: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-04-12 23:01:19] Production.INFO: count ==1334 [2025-04-12 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:01:06 - End Time 2025-04-12 23:01:06 [2025-04-12 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894783', 'tblTempUsageDetail_20' ) start [2025-04-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894783', 'tblTempUsageDetail_20' ) end [2025-04-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894783', 'tblTempVendorCDR_20' ) start [2025-04-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894783', 'tblTempVendorCDR_20' ) end [2025-04-12 23:01:19] Production.INFO: ProcessCDR(1,14894783,1,1,2) [2025-04-12 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894783', 'tblTempUsageDetail_20' ) start [2025-04-12 23:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894783', 'tblTempUsageDetail_20' ) end [2025-04-12 23:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:01:25] Production.INFO: ==15831== Releasing lock... [2025-04-12 23:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:01:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:02:05 [end_date_ymd] => 2025-04-12 23:02:05 [RateCDR] => 1 ) [2025-04-12 23:02: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-04-12 20:02:05' and `end` < '2025-04-12 23:02: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-04-12 23:02:18] Production.INFO: count ==1333 [2025-04-12 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:02:05 - End Time 2025-04-12 23:02:05 [2025-04-12 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894788', 'tblTempUsageDetail_20' ) start [2025-04-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894788', 'tblTempUsageDetail_20' ) end [2025-04-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894788', 'tblTempVendorCDR_20' ) start [2025-04-12 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894788', 'tblTempVendorCDR_20' ) end [2025-04-12 23:02:18] Production.INFO: ProcessCDR(1,14894788,1,1,2) [2025-04-12 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894788', 'tblTempUsageDetail_20' ) start [2025-04-12 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894788', 'tblTempUsageDetail_20' ) end [2025-04-12 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:02:22] Production.INFO: ==15984== Releasing lock... [2025-04-12 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:02:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:03:06 [end_date_ymd] => 2025-04-12 23:03:06 [RateCDR] => 1 ) [2025-04-12 23:03: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-04-12 20:03:06' and `end` < '2025-04-12 23:03: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-04-12 23:03:18] Production.INFO: count ==1333 [2025-04-12 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:03:06 - End Time 2025-04-12 23:03:06 [2025-04-12 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894793', 'tblTempUsageDetail_20' ) start [2025-04-12 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894793', 'tblTempUsageDetail_20' ) end [2025-04-12 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894793', 'tblTempVendorCDR_20' ) start [2025-04-12 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894793', 'tblTempVendorCDR_20' ) end [2025-04-12 23:03:19] Production.INFO: ProcessCDR(1,14894793,1,1,2) [2025-04-12 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894793', 'tblTempUsageDetail_20' ) start [2025-04-12 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894793', 'tblTempUsageDetail_20' ) end [2025-04-12 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:03:25] Production.INFO: ==16054== Releasing lock... [2025-04-12 23:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:03:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:04:05 [end_date_ymd] => 2025-04-12 23:04:05 [RateCDR] => 1 ) [2025-04-12 23:04: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-04-12 20:04:05' and `end` < '2025-04-12 23:04: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-04-12 23:04:18] Production.INFO: count ==1333 [2025-04-12 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:04:05 - End Time 2025-04-12 23:04:05 [2025-04-12 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894798', 'tblTempUsageDetail_20' ) start [2025-04-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894798', 'tblTempUsageDetail_20' ) end [2025-04-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894798', 'tblTempVendorCDR_20' ) start [2025-04-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894798', 'tblTempVendorCDR_20' ) end [2025-04-12 23:04:18] Production.INFO: ProcessCDR(1,14894798,1,1,2) [2025-04-12 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894798', 'tblTempUsageDetail_20' ) start [2025-04-12 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894798', 'tblTempUsageDetail_20' ) end [2025-04-12 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:04:22] Production.INFO: ==16164== Releasing lock... [2025-04-12 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:05:06 [end_date_ymd] => 2025-04-12 23:05:06 [RateCDR] => 1 ) [2025-04-12 23:05: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-04-12 20:05:06' and `end` < '2025-04-12 23:05: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-04-12 23:05:19] Production.INFO: count ==1332 [2025-04-12 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:05:06 - End Time 2025-04-12 23:05:06 [2025-04-12 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894803', 'tblTempUsageDetail_20' ) start [2025-04-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894803', 'tblTempUsageDetail_20' ) end [2025-04-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894803', 'tblTempVendorCDR_20' ) start [2025-04-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894803', 'tblTempVendorCDR_20' ) end [2025-04-12 23:05:19] Production.INFO: ProcessCDR(1,14894803,1,1,2) [2025-04-12 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894803', 'tblTempUsageDetail_20' ) start [2025-04-12 23:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894803', 'tblTempUsageDetail_20' ) end [2025-04-12 23:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:05:25] Production.INFO: ==16319== Releasing lock... [2025-04-12 23:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:05:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:06:05 [end_date_ymd] => 2025-04-12 23:06:05 [RateCDR] => 1 ) [2025-04-12 23:06: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-04-12 20:06:05' and `end` < '2025-04-12 23:06: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-04-12 23:06:18] Production.INFO: count ==1332 [2025-04-12 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:06:05 - End Time 2025-04-12 23:06:05 [2025-04-12 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894808', 'tblTempUsageDetail_20' ) start [2025-04-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894808', 'tblTempUsageDetail_20' ) end [2025-04-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894808', 'tblTempVendorCDR_20' ) start [2025-04-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894808', 'tblTempVendorCDR_20' ) end [2025-04-12 23:06:18] Production.INFO: ProcessCDR(1,14894808,1,1,2) [2025-04-12 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894808', 'tblTempUsageDetail_20' ) start [2025-04-12 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894808', 'tblTempUsageDetail_20' ) end [2025-04-12 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:06:22] Production.INFO: ==16400== Releasing lock... [2025-04-12 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:07:06 [end_date_ymd] => 2025-04-12 23:07:06 [RateCDR] => 1 ) [2025-04-12 23:07: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-04-12 20:07:06' and `end` < '2025-04-12 23:07: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-04-12 23:07:19] Production.INFO: count ==1330 [2025-04-12 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:07:06 - End Time 2025-04-12 23:07:06 [2025-04-12 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894813', 'tblTempUsageDetail_20' ) start [2025-04-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894813', 'tblTempUsageDetail_20' ) end [2025-04-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894813', 'tblTempVendorCDR_20' ) start [2025-04-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894813', 'tblTempVendorCDR_20' ) end [2025-04-12 23:07:19] Production.INFO: ProcessCDR(1,14894813,1,1,2) [2025-04-12 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894813', 'tblTempUsageDetail_20' ) start [2025-04-12 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894813', 'tblTempUsageDetail_20' ) end [2025-04-12 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:07:23] Production.INFO: ==16475== Releasing lock... [2025-04-12 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:07:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-12 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:08:05 [end_date_ymd] => 2025-04-12 23:08:05 [RateCDR] => 1 ) [2025-04-12 23:08: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-04-12 20:08:05' and `end` < '2025-04-12 23:08: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-04-12 23:08:18] Production.INFO: count ==1325 [2025-04-12 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:08:05 - End Time 2025-04-12 23:08:05 [2025-04-12 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894818', 'tblTempUsageDetail_20' ) start [2025-04-12 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894818', 'tblTempUsageDetail_20' ) end [2025-04-12 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894818', 'tblTempVendorCDR_20' ) start [2025-04-12 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894818', 'tblTempVendorCDR_20' ) end [2025-04-12 23:08:19] Production.INFO: ProcessCDR(1,14894818,1,1,2) [2025-04-12 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894818', 'tblTempUsageDetail_20' ) start [2025-04-12 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894818', 'tblTempUsageDetail_20' ) end [2025-04-12 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:08:23] Production.INFO: ==16548== Releasing lock... [2025-04-12 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:08:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:09:06 [end_date_ymd] => 2025-04-12 23:09:06 [RateCDR] => 1 ) [2025-04-12 23:09: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-04-12 20:09:06' and `end` < '2025-04-12 23:09: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-04-12 23:09:19] Production.INFO: count ==1326 [2025-04-12 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:09:06 - End Time 2025-04-12 23:09:06 [2025-04-12 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894823', 'tblTempUsageDetail_20' ) start [2025-04-12 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894823', 'tblTempUsageDetail_20' ) end [2025-04-12 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894823', 'tblTempVendorCDR_20' ) start [2025-04-12 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894823', 'tblTempVendorCDR_20' ) end [2025-04-12 23:09:19] Production.INFO: ProcessCDR(1,14894823,1,1,2) [2025-04-12 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894823', 'tblTempUsageDetail_20' ) start [2025-04-12 23:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894823', 'tblTempUsageDetail_20' ) end [2025-04-12 23:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:09:25] Production.INFO: ==16704== Releasing lock... [2025-04-12 23:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:09:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:10:06 [end_date_ymd] => 2025-04-12 23:10:06 [RateCDR] => 1 ) [2025-04-12 23:10: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-04-12 20:10:06' and `end` < '2025-04-12 23:10: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-04-12 23:10:19] Production.INFO: count ==1328 [2025-04-12 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:10:06 - End Time 2025-04-12 23:10:06 [2025-04-12 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894829', 'tblTempUsageDetail_20' ) start [2025-04-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894829', 'tblTempUsageDetail_20' ) end [2025-04-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894829', 'tblTempVendorCDR_20' ) start [2025-04-12 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894829', 'tblTempVendorCDR_20' ) end [2025-04-12 23:10:19] Production.INFO: ProcessCDR(1,14894829,1,1,2) [2025-04-12 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894829', 'tblTempUsageDetail_20' ) start [2025-04-12 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894829', 'tblTempUsageDetail_20' ) end [2025-04-12 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:10:23] Production.INFO: ==16785== Releasing lock... [2025-04-12 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:11:06 [end_date_ymd] => 2025-04-12 23:11:06 [RateCDR] => 1 ) [2025-04-12 23:11: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-04-12 20:11:06' and `end` < '2025-04-12 23:11: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-04-12 23:11:19] Production.INFO: count ==1284 [2025-04-12 23:11:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:11:06 - End Time 2025-04-12 23:11:06 [2025-04-12 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894834', 'tblTempUsageDetail_20' ) start [2025-04-12 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894834', 'tblTempUsageDetail_20' ) end [2025-04-12 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894834', 'tblTempVendorCDR_20' ) start [2025-04-12 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894834', 'tblTempVendorCDR_20' ) end [2025-04-12 23:11:19] Production.INFO: ProcessCDR(1,14894834,1,1,2) [2025-04-12 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894834', 'tblTempUsageDetail_20' ) start [2025-04-12 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894834', 'tblTempUsageDetail_20' ) end [2025-04-12 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:11:23] Production.INFO: ==16861== Releasing lock... [2025-04-12 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:12:05 [end_date_ymd] => 2025-04-12 23:12:05 [RateCDR] => 1 ) [2025-04-12 23:12: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-04-12 20:12:05' and `end` < '2025-04-12 23:12: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-04-12 23:12:18] Production.INFO: count ==1283 [2025-04-12 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:12:05 - End Time 2025-04-12 23:12:05 [2025-04-12 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894839', 'tblTempUsageDetail_20' ) start [2025-04-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894839', 'tblTempUsageDetail_20' ) end [2025-04-12 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894839', 'tblTempVendorCDR_20' ) start [2025-04-12 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894839', 'tblTempVendorCDR_20' ) end [2025-04-12 23:12:19] Production.INFO: ProcessCDR(1,14894839,1,1,2) [2025-04-12 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894839', 'tblTempUsageDetail_20' ) start [2025-04-12 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894839', 'tblTempUsageDetail_20' ) end [2025-04-12 23:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:12:24] Production.INFO: ==17009== Releasing lock... [2025-04-12 23:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:12:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:13:05 [end_date_ymd] => 2025-04-12 23:13:05 [RateCDR] => 1 ) [2025-04-12 23:13: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-04-12 20:13:05' and `end` < '2025-04-12 23:13: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-04-12 23:13:18] Production.INFO: count ==1282 [2025-04-12 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:13:05 - End Time 2025-04-12 23:13:05 [2025-04-12 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894844', 'tblTempUsageDetail_20' ) start [2025-04-12 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894844', 'tblTempUsageDetail_20' ) end [2025-04-12 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894844', 'tblTempVendorCDR_20' ) start [2025-04-12 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894844', 'tblTempVendorCDR_20' ) end [2025-04-12 23:13:19] Production.INFO: ProcessCDR(1,14894844,1,1,2) [2025-04-12 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894844', 'tblTempUsageDetail_20' ) start [2025-04-12 23:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894844', 'tblTempUsageDetail_20' ) end [2025-04-12 23:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:13:24] Production.INFO: ==17079== Releasing lock... [2025-04-12 23:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:13:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:14:05 [end_date_ymd] => 2025-04-12 23:14:05 [RateCDR] => 1 ) [2025-04-12 23:14: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-04-12 20:14:05' and `end` < '2025-04-12 23:14: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-04-12 23:14:18] Production.INFO: count ==1278 [2025-04-12 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:14:05 - End Time 2025-04-12 23:14:05 [2025-04-12 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894849', 'tblTempUsageDetail_20' ) start [2025-04-12 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894849', 'tblTempUsageDetail_20' ) end [2025-04-12 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894849', 'tblTempVendorCDR_20' ) start [2025-04-12 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894849', 'tblTempVendorCDR_20' ) end [2025-04-12 23:14:18] Production.INFO: ProcessCDR(1,14894849,1,1,2) [2025-04-12 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894849', 'tblTempUsageDetail_20' ) start [2025-04-12 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894849', 'tblTempUsageDetail_20' ) end [2025-04-12 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:14:21] Production.INFO: ==17151== Releasing lock... [2025-04-12 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:14:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:15:05 [end_date_ymd] => 2025-04-12 23:15:05 [RateCDR] => 1 ) [2025-04-12 23:15: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-04-12 20:15:05' and `end` < '2025-04-12 23:15: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-04-12 23:15:18] Production.INFO: count ==1280 [2025-04-12 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:15:05 - End Time 2025-04-12 23:15:05 [2025-04-12 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894854', 'tblTempUsageDetail_20' ) start [2025-04-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894854', 'tblTempUsageDetail_20' ) end [2025-04-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894854', 'tblTempVendorCDR_20' ) start [2025-04-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894854', 'tblTempVendorCDR_20' ) end [2025-04-12 23:15:18] Production.INFO: ProcessCDR(1,14894854,1,1,2) [2025-04-12 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894854', 'tblTempUsageDetail_20' ) start [2025-04-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894854', 'tblTempUsageDetail_20' ) end [2025-04-12 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:15:21] Production.INFO: ==17269== Releasing lock... [2025-04-12 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:16:05 [end_date_ymd] => 2025-04-12 23:16:05 [RateCDR] => 1 ) [2025-04-12 23:16: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-04-12 20:16:05' and `end` < '2025-04-12 23:16: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-04-12 23:16:18] Production.INFO: count ==1281 [2025-04-12 23:16:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:16:05 - End Time 2025-04-12 23:16:05 [2025-04-12 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894859', 'tblTempUsageDetail_20' ) start [2025-04-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894859', 'tblTempUsageDetail_20' ) end [2025-04-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894859', 'tblTempVendorCDR_20' ) start [2025-04-12 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894859', 'tblTempVendorCDR_20' ) end [2025-04-12 23:16:19] Production.INFO: ProcessCDR(1,14894859,1,1,2) [2025-04-12 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894859', 'tblTempUsageDetail_20' ) start [2025-04-12 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894859', 'tblTempUsageDetail_20' ) end [2025-04-12 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:16:24] Production.INFO: ==17383== Releasing lock... [2025-04-12 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:16:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:17:06 [end_date_ymd] => 2025-04-12 23:17:06 [RateCDR] => 1 ) [2025-04-12 23:17: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-04-12 20:17:06' and `end` < '2025-04-12 23:17: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-04-12 23:17:19] Production.INFO: count ==1279 [2025-04-12 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:17:06 - End Time 2025-04-12 23:17:06 [2025-04-12 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894864', 'tblTempUsageDetail_20' ) start [2025-04-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894864', 'tblTempUsageDetail_20' ) end [2025-04-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894864', 'tblTempVendorCDR_20' ) start [2025-04-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894864', 'tblTempVendorCDR_20' ) end [2025-04-12 23:17:19] Production.INFO: ProcessCDR(1,14894864,1,1,2) [2025-04-12 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894864', 'tblTempUsageDetail_20' ) start [2025-04-12 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894864', 'tblTempUsageDetail_20' ) end [2025-04-12 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:17:23] Production.INFO: ==17454== Releasing lock... [2025-04-12 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:18:05 [end_date_ymd] => 2025-04-12 23:18:05 [RateCDR] => 1 ) [2025-04-12 23:18: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-04-12 20:18:05' and `end` < '2025-04-12 23:18: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-04-12 23:18:18] Production.INFO: count ==1281 [2025-04-12 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:18:05 - End Time 2025-04-12 23:18:05 [2025-04-12 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894869', 'tblTempUsageDetail_20' ) start [2025-04-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894869', 'tblTempUsageDetail_20' ) end [2025-04-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894869', 'tblTempVendorCDR_20' ) start [2025-04-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894869', 'tblTempVendorCDR_20' ) end [2025-04-12 23:18:18] Production.INFO: ProcessCDR(1,14894869,1,1,2) [2025-04-12 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894869', 'tblTempUsageDetail_20' ) start [2025-04-12 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894869', 'tblTempUsageDetail_20' ) end [2025-04-12 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:18:22] Production.INFO: ==17526== Releasing lock... [2025-04-12 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:19:05 [end_date_ymd] => 2025-04-12 23:19:05 [RateCDR] => 1 ) [2025-04-12 23:19: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-04-12 20:19:05' and `end` < '2025-04-12 23:19: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-04-12 23:19:18] Production.INFO: count ==1283 [2025-04-12 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:19:05 - End Time 2025-04-12 23:19:05 [2025-04-12 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894874', 'tblTempUsageDetail_20' ) start [2025-04-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894874', 'tblTempUsageDetail_20' ) end [2025-04-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894874', 'tblTempVendorCDR_20' ) start [2025-04-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894874', 'tblTempVendorCDR_20' ) end [2025-04-12 23:19:18] Production.INFO: ProcessCDR(1,14894874,1,1,2) [2025-04-12 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894874', 'tblTempUsageDetail_20' ) start [2025-04-12 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894874', 'tblTempUsageDetail_20' ) end [2025-04-12 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:19:22] Production.INFO: ==17635== Releasing lock... [2025-04-12 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-12 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:20:06 [end_date_ymd] => 2025-04-12 23:20:06 [RateCDR] => 1 ) [2025-04-12 23:20: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-04-12 20:20:06' and `end` < '2025-04-12 23:20: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-04-12 23:20:19] Production.INFO: count ==1288 [2025-04-12 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:20:06 - End Time 2025-04-12 23:20:06 [2025-04-12 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894879', 'tblTempUsageDetail_20' ) start [2025-04-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894879', 'tblTempUsageDetail_20' ) end [2025-04-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894879', 'tblTempVendorCDR_20' ) start [2025-04-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894879', 'tblTempVendorCDR_20' ) end [2025-04-12 23:20:19] Production.INFO: ProcessCDR(1,14894879,1,1,2) [2025-04-12 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894879', 'tblTempUsageDetail_20' ) start [2025-04-12 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894879', 'tblTempUsageDetail_20' ) end [2025-04-12 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:20:24] Production.INFO: ==17711== Releasing lock... [2025-04-12 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-12 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:21:05 [end_date_ymd] => 2025-04-12 23:21:05 [RateCDR] => 1 ) [2025-04-12 23:21: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-04-12 20:21:05' and `end` < '2025-04-12 23:21: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-04-12 23:21:18] Production.INFO: count ==1232 [2025-04-12 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:21:05 - End Time 2025-04-12 23:21:05 [2025-04-12 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894885', 'tblTempUsageDetail_20' ) start [2025-04-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894885', 'tblTempUsageDetail_20' ) end [2025-04-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894885', 'tblTempVendorCDR_20' ) start [2025-04-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894885', 'tblTempVendorCDR_20' ) end [2025-04-12 23:21:18] Production.INFO: ProcessCDR(1,14894885,1,1,2) [2025-04-12 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894885', 'tblTempUsageDetail_20' ) start [2025-04-12 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894885', 'tblTempUsageDetail_20' ) end [2025-04-12 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:21:22] Production.INFO: ==17786== Releasing lock... [2025-04-12 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:22:05 [end_date_ymd] => 2025-04-12 23:22:05 [RateCDR] => 1 ) [2025-04-12 23:22: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-04-12 20:22:05' and `end` < '2025-04-12 23:22: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-04-12 23:22:18] Production.INFO: count ==1234 [2025-04-12 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:22:05 - End Time 2025-04-12 23:22:05 [2025-04-12 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894890', 'tblTempUsageDetail_20' ) start [2025-04-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894890', 'tblTempUsageDetail_20' ) end [2025-04-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894890', 'tblTempVendorCDR_20' ) start [2025-04-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894890', 'tblTempVendorCDR_20' ) end [2025-04-12 23:22:18] Production.INFO: ProcessCDR(1,14894890,1,1,2) [2025-04-12 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894890', 'tblTempUsageDetail_20' ) start [2025-04-12 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894890', 'tblTempUsageDetail_20' ) end [2025-04-12 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:22:22] Production.INFO: ==17857== Releasing lock... [2025-04-12 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:23:05 [end_date_ymd] => 2025-04-12 23:23:05 [RateCDR] => 1 ) [2025-04-12 23:23: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-04-12 20:23:05' and `end` < '2025-04-12 23:23: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-04-12 23:23:18] Production.INFO: count ==1237 [2025-04-12 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:23:05 - End Time 2025-04-12 23:23:05 [2025-04-12 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894895', 'tblTempUsageDetail_20' ) start [2025-04-12 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894895', 'tblTempUsageDetail_20' ) end [2025-04-12 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894895', 'tblTempVendorCDR_20' ) start [2025-04-12 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894895', 'tblTempVendorCDR_20' ) end [2025-04-12 23:23:18] Production.INFO: ProcessCDR(1,14894895,1,1,2) [2025-04-12 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894895', 'tblTempUsageDetail_20' ) start [2025-04-12 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894895', 'tblTempUsageDetail_20' ) end [2025-04-12 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:23:24] Production.INFO: ==17929== Releasing lock... [2025-04-12 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:24:05 [end_date_ymd] => 2025-04-12 23:24:05 [RateCDR] => 1 ) [2025-04-12 23:24: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-04-12 20:24:05' and `end` < '2025-04-12 23:24: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-04-12 23:24:18] Production.INFO: count ==1237 [2025-04-12 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:24:05 - End Time 2025-04-12 23:24:05 [2025-04-12 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894900', 'tblTempUsageDetail_20' ) start [2025-04-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894900', 'tblTempUsageDetail_20' ) end [2025-04-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894900', 'tblTempVendorCDR_20' ) start [2025-04-12 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894900', 'tblTempVendorCDR_20' ) end [2025-04-12 23:24:18] Production.INFO: ProcessCDR(1,14894900,1,1,2) [2025-04-12 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894900', 'tblTempUsageDetail_20' ) start [2025-04-12 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894900', 'tblTempUsageDetail_20' ) end [2025-04-12 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:24:22] Production.INFO: ==18002== Releasing lock... [2025-04-12 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:25:05 [end_date_ymd] => 2025-04-12 23:25:05 [RateCDR] => 1 ) [2025-04-12 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-04-12 20:25:05' and `end` < '2025-04-12 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-04-12 23:25:18] Production.INFO: count ==1235 [2025-04-12 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:25:05 - End Time 2025-04-12 23:25:05 [2025-04-12 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894905', 'tblTempUsageDetail_20' ) start [2025-04-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894905', 'tblTempUsageDetail_20' ) end [2025-04-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894905', 'tblTempVendorCDR_20' ) start [2025-04-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894905', 'tblTempVendorCDR_20' ) end [2025-04-12 23:25:19] Production.INFO: ProcessCDR(1,14894905,1,1,2) [2025-04-12 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894905', 'tblTempUsageDetail_20' ) start [2025-04-12 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894905', 'tblTempUsageDetail_20' ) end [2025-04-12 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:25:22] Production.INFO: ==18083== Releasing lock... [2025-04-12 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:25:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:26:05 [end_date_ymd] => 2025-04-12 23:26:05 [RateCDR] => 1 ) [2025-04-12 23:26: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-04-12 20:26:05' and `end` < '2025-04-12 23:26: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-04-12 23:26:18] Production.INFO: count ==1234 [2025-04-12 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:26:05 - End Time 2025-04-12 23:26:05 [2025-04-12 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894910', 'tblTempUsageDetail_20' ) start [2025-04-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894910', 'tblTempUsageDetail_20' ) end [2025-04-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894910', 'tblTempVendorCDR_20' ) start [2025-04-12 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894910', 'tblTempVendorCDR_20' ) end [2025-04-12 23:26:18] Production.INFO: ProcessCDR(1,14894910,1,1,2) [2025-04-12 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894910', 'tblTempUsageDetail_20' ) start [2025-04-12 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894910', 'tblTempUsageDetail_20' ) end [2025-04-12 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:26:22] Production.INFO: ==18164== Releasing lock... [2025-04-12 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:27:06 [end_date_ymd] => 2025-04-12 23:27:06 [RateCDR] => 1 ) [2025-04-12 23:27: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-04-12 20:27:06' and `end` < '2025-04-12 23:27: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-04-12 23:27:19] Production.INFO: count ==1232 [2025-04-12 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:27:06 - End Time 2025-04-12 23:27:06 [2025-04-12 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894915', 'tblTempUsageDetail_20' ) start [2025-04-12 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894915', 'tblTempUsageDetail_20' ) end [2025-04-12 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894915', 'tblTempVendorCDR_20' ) start [2025-04-12 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894915', 'tblTempVendorCDR_20' ) end [2025-04-12 23:27:19] Production.INFO: ProcessCDR(1,14894915,1,1,2) [2025-04-12 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894915', 'tblTempUsageDetail_20' ) start [2025-04-12 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894915', 'tblTempUsageDetail_20' ) end [2025-04-12 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:27:22] Production.INFO: ==18236== Releasing lock... [2025-04-12 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:27:22] Production.INFO: 37 MB #Memory Used# [2025-04-12 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:28:05 [end_date_ymd] => 2025-04-12 23:28:05 [RateCDR] => 1 ) [2025-04-12 23:28: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-04-12 20:28:05' and `end` < '2025-04-12 23:28: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-04-12 23:28:18] Production.INFO: count ==1229 [2025-04-12 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:28:05 - End Time 2025-04-12 23:28:05 [2025-04-12 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894920', 'tblTempUsageDetail_20' ) start [2025-04-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894920', 'tblTempUsageDetail_20' ) end [2025-04-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894920', 'tblTempVendorCDR_20' ) start [2025-04-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894920', 'tblTempVendorCDR_20' ) end [2025-04-12 23:28:18] Production.INFO: ProcessCDR(1,14894920,1,1,2) [2025-04-12 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894920', 'tblTempUsageDetail_20' ) start [2025-04-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894920', 'tblTempUsageDetail_20' ) end [2025-04-12 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:28:21] Production.INFO: ==18308== Releasing lock... [2025-04-12 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:28:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:29:05 [end_date_ymd] => 2025-04-12 23:29:05 [RateCDR] => 1 ) [2025-04-12 23:29: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-04-12 20:29:05' and `end` < '2025-04-12 23:29: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-04-12 23:29:18] Production.INFO: count ==1228 [2025-04-12 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:29:05 - End Time 2025-04-12 23:29:05 [2025-04-12 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894925', 'tblTempUsageDetail_20' ) start [2025-04-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894925', 'tblTempUsageDetail_20' ) end [2025-04-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894925', 'tblTempVendorCDR_20' ) start [2025-04-12 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894925', 'tblTempVendorCDR_20' ) end [2025-04-12 23:29:18] Production.INFO: ProcessCDR(1,14894925,1,1,2) [2025-04-12 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894925', 'tblTempUsageDetail_20' ) start [2025-04-12 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894925', 'tblTempUsageDetail_20' ) end [2025-04-12 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:29:22] Production.INFO: ==18383== Releasing lock... [2025-04-12 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:29:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:30:06 [end_date_ymd] => 2025-04-12 23:30:06 [RateCDR] => 1 ) [2025-04-12 23:30: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-04-12 20:30:06' and `end` < '2025-04-12 23:30: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-04-12 23:30:19] Production.INFO: count ==1216 [2025-04-12 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:30:06 - End Time 2025-04-12 23:30:06 [2025-04-12 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894931', 'tblTempUsageDetail_20' ) start [2025-04-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894931', 'tblTempUsageDetail_20' ) end [2025-04-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894931', 'tblTempVendorCDR_20' ) start [2025-04-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894931', 'tblTempVendorCDR_20' ) end [2025-04-12 23:30:19] Production.INFO: ProcessCDR(1,14894931,1,1,2) [2025-04-12 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894931', 'tblTempUsageDetail_20' ) start [2025-04-12 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894931', 'tblTempUsageDetail_20' ) end [2025-04-12 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:30:23] Production.INFO: ==18463== Releasing lock... [2025-04-12 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:31:05 [end_date_ymd] => 2025-04-12 23:31:05 [RateCDR] => 1 ) [2025-04-12 23:31: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-04-12 20:31:05' and `end` < '2025-04-12 23:31: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-04-12 23:31:18] Production.INFO: count ==1164 [2025-04-12 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:31:05 - End Time 2025-04-12 23:31:05 [2025-04-12 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894936', 'tblTempUsageDetail_20' ) start [2025-04-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894936', 'tblTempUsageDetail_20' ) end [2025-04-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894936', 'tblTempVendorCDR_20' ) start [2025-04-12 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894936', 'tblTempVendorCDR_20' ) end [2025-04-12 23:31:18] Production.INFO: ProcessCDR(1,14894936,1,1,2) [2025-04-12 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894936', 'tblTempUsageDetail_20' ) start [2025-04-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894936', 'tblTempUsageDetail_20' ) end [2025-04-12 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:31:22] Production.INFO: ==18536== Releasing lock... [2025-04-12 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-12 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:32:05 [end_date_ymd] => 2025-04-12 23:32:05 [RateCDR] => 1 ) [2025-04-12 23:32: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-04-12 20:32:05' and `end` < '2025-04-12 23:32: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-04-12 23:32:18] Production.INFO: count ==1163 [2025-04-12 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:32:05 - End Time 2025-04-12 23:32:05 [2025-04-12 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894941', 'tblTempUsageDetail_20' ) start [2025-04-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894941', 'tblTempUsageDetail_20' ) end [2025-04-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894941', 'tblTempVendorCDR_20' ) start [2025-04-12 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894941', 'tblTempVendorCDR_20' ) end [2025-04-12 23:32:18] Production.INFO: ProcessCDR(1,14894941,1,1,2) [2025-04-12 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894941', 'tblTempUsageDetail_20' ) start [2025-04-12 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894941', 'tblTempUsageDetail_20' ) end [2025-04-12 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:32:22] Production.INFO: ==18609== Releasing lock... [2025-04-12 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:32:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:33:05 [end_date_ymd] => 2025-04-12 23:33:05 [RateCDR] => 1 ) [2025-04-12 23:33: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-04-12 20:33:05' and `end` < '2025-04-12 23:33: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-04-12 23:33:18] Production.INFO: count ==1163 [2025-04-12 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:33:05 - End Time 2025-04-12 23:33:05 [2025-04-12 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894946', 'tblTempUsageDetail_20' ) start [2025-04-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894946', 'tblTempUsageDetail_20' ) end [2025-04-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894946', 'tblTempVendorCDR_20' ) start [2025-04-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894946', 'tblTempVendorCDR_20' ) end [2025-04-12 23:33:18] Production.INFO: ProcessCDR(1,14894946,1,1,2) [2025-04-12 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894946', 'tblTempUsageDetail_20' ) start [2025-04-12 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894946', 'tblTempUsageDetail_20' ) end [2025-04-12 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:33:22] Production.INFO: ==18680== Releasing lock... [2025-04-12 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:34:05 [end_date_ymd] => 2025-04-12 23:34:05 [RateCDR] => 1 ) [2025-04-12 23:34: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-04-12 20:34:05' and `end` < '2025-04-12 23:34: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-04-12 23:34:18] Production.INFO: count ==1163 [2025-04-12 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:34:05 - End Time 2025-04-12 23:34:05 [2025-04-12 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894951', 'tblTempUsageDetail_20' ) start [2025-04-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894951', 'tblTempUsageDetail_20' ) end [2025-04-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894951', 'tblTempVendorCDR_20' ) start [2025-04-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894951', 'tblTempVendorCDR_20' ) end [2025-04-12 23:34:18] Production.INFO: ProcessCDR(1,14894951,1,1,2) [2025-04-12 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894951', 'tblTempUsageDetail_20' ) start [2025-04-12 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894951', 'tblTempUsageDetail_20' ) end [2025-04-12 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:34:22] Production.INFO: ==18750== Releasing lock... [2025-04-12 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:34:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:35:05 [end_date_ymd] => 2025-04-12 23:35:05 [RateCDR] => 1 ) [2025-04-12 23:35: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-04-12 20:35:05' and `end` < '2025-04-12 23:35: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-04-12 23:35:18] Production.INFO: count ==1162 [2025-04-12 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:35:05 - End Time 2025-04-12 23:35:05 [2025-04-12 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894956', 'tblTempUsageDetail_20' ) start [2025-04-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894956', 'tblTempUsageDetail_20' ) end [2025-04-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894956', 'tblTempVendorCDR_20' ) start [2025-04-12 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894956', 'tblTempVendorCDR_20' ) end [2025-04-12 23:35:18] Production.INFO: ProcessCDR(1,14894956,1,1,2) [2025-04-12 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894956', 'tblTempUsageDetail_20' ) start [2025-04-12 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894956', 'tblTempUsageDetail_20' ) end [2025-04-12 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:35:22] Production.INFO: ==18863== Releasing lock... [2025-04-12 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:35:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:36:05 [end_date_ymd] => 2025-04-12 23:36:05 [RateCDR] => 1 ) [2025-04-12 23:36: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-04-12 20:36:05' and `end` < '2025-04-12 23:36: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-04-12 23:36:18] Production.INFO: count ==1162 [2025-04-12 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:36:05 - End Time 2025-04-12 23:36:05 [2025-04-12 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894961', 'tblTempUsageDetail_20' ) start [2025-04-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894961', 'tblTempUsageDetail_20' ) end [2025-04-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894961', 'tblTempVendorCDR_20' ) start [2025-04-12 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894961', 'tblTempVendorCDR_20' ) end [2025-04-12 23:36:18] Production.INFO: ProcessCDR(1,14894961,1,1,2) [2025-04-12 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894961', 'tblTempUsageDetail_20' ) start [2025-04-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894961', 'tblTempUsageDetail_20' ) end [2025-04-12 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:36:22] Production.INFO: ==18936== Releasing lock... [2025-04-12 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:36:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:37:05 [end_date_ymd] => 2025-04-12 23:37:05 [RateCDR] => 1 ) [2025-04-12 23:37: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-04-12 20:37:05' and `end` < '2025-04-12 23:37: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-04-12 23:37:18] Production.INFO: count ==1161 [2025-04-12 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:37:05 - End Time 2025-04-12 23:37:05 [2025-04-12 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894966', 'tblTempUsageDetail_20' ) start [2025-04-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894966', 'tblTempUsageDetail_20' ) end [2025-04-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894966', 'tblTempVendorCDR_20' ) start [2025-04-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894966', 'tblTempVendorCDR_20' ) end [2025-04-12 23:37:18] Production.INFO: ProcessCDR(1,14894966,1,1,2) [2025-04-12 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894966', 'tblTempUsageDetail_20' ) start [2025-04-12 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894966', 'tblTempUsageDetail_20' ) end [2025-04-12 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:37:22] Production.INFO: ==19007== Releasing lock... [2025-04-12 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:37:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:38:06 [end_date_ymd] => 2025-04-12 23:38:06 [RateCDR] => 1 ) [2025-04-12 23:38: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-04-12 20:38:06' and `end` < '2025-04-12 23:38: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-04-12 23:38:19] Production.INFO: count ==1159 [2025-04-12 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:38:06 - End Time 2025-04-12 23:38:06 [2025-04-12 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894971', 'tblTempUsageDetail_20' ) start [2025-04-12 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894971', 'tblTempUsageDetail_20' ) end [2025-04-12 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894971', 'tblTempVendorCDR_20' ) start [2025-04-12 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894971', 'tblTempVendorCDR_20' ) end [2025-04-12 23:38:19] Production.INFO: ProcessCDR(1,14894971,1,1,2) [2025-04-12 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894971', 'tblTempUsageDetail_20' ) start [2025-04-12 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894971', 'tblTempUsageDetail_20' ) end [2025-04-12 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:38:22] Production.INFO: ==19078== Releasing lock... [2025-04-12 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:39:04 [end_date_ymd] => 2025-04-12 23:39:04 [RateCDR] => 1 ) [2025-04-12 23:39: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-04-12 20:39:04' and `end` < '2025-04-12 23:39: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-04-12 23:39:17] Production.INFO: count ==1157 [2025-04-12 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:39:04 - End Time 2025-04-12 23:39:04 [2025-04-12 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894976', 'tblTempUsageDetail_20' ) start [2025-04-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894976', 'tblTempUsageDetail_20' ) end [2025-04-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894976', 'tblTempVendorCDR_20' ) start [2025-04-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894976', 'tblTempVendorCDR_20' ) end [2025-04-12 23:39:18] Production.INFO: ProcessCDR(1,14894976,1,1,2) [2025-04-12 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894976', 'tblTempUsageDetail_20' ) start [2025-04-12 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894976', 'tblTempUsageDetail_20' ) end [2025-04-12 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:39:21] Production.INFO: ==19151== Releasing lock... [2025-04-12 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:39:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:40:06 [end_date_ymd] => 2025-04-12 23:40:06 [RateCDR] => 1 ) [2025-04-12 23:40: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-04-12 20:40:06' and `end` < '2025-04-12 23:40: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-04-12 23:40:19] Production.INFO: count ==1157 [2025-04-12 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:40:06 - End Time 2025-04-12 23:40:06 [2025-04-12 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894982', 'tblTempUsageDetail_20' ) start [2025-04-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894982', 'tblTempUsageDetail_20' ) end [2025-04-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894982', 'tblTempVendorCDR_20' ) start [2025-04-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894982', 'tblTempVendorCDR_20' ) end [2025-04-12 23:40:19] Production.INFO: ProcessCDR(1,14894982,1,1,2) [2025-04-12 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894982', 'tblTempUsageDetail_20' ) start [2025-04-12 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894982', 'tblTempUsageDetail_20' ) end [2025-04-12 23:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:40:24] Production.INFO: ==19233== Releasing lock... [2025-04-12 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:40:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:41:04 [end_date_ymd] => 2025-04-12 23:41:04 [RateCDR] => 1 ) [2025-04-12 23:41: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-04-12 20:41:04' and `end` < '2025-04-12 23:41: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-04-12 23:41:17] Production.INFO: count ==1177 [2025-04-12 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:41:04 - End Time 2025-04-12 23:41:04 [2025-04-12 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894987', 'tblTempUsageDetail_20' ) start [2025-04-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894987', 'tblTempUsageDetail_20' ) end [2025-04-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894987', 'tblTempVendorCDR_20' ) start [2025-04-12 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894987', 'tblTempVendorCDR_20' ) end [2025-04-12 23:41:18] Production.INFO: ProcessCDR(1,14894987,1,1,2) [2025-04-12 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894987', 'tblTempUsageDetail_20' ) start [2025-04-12 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894987', 'tblTempUsageDetail_20' ) end [2025-04-12 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:41:23] Production.INFO: ==19318== Releasing lock... [2025-04-12 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:41:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:42:05 [end_date_ymd] => 2025-04-12 23:42:05 [RateCDR] => 1 ) [2025-04-12 23:42: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-04-12 20:42:05' and `end` < '2025-04-12 23:42: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-04-12 23:42:19] Production.INFO: count ==1179 [2025-04-12 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:42:05 - End Time 2025-04-12 23:42:05 [2025-04-12 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894992', 'tblTempUsageDetail_20' ) start [2025-04-12 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894992', 'tblTempUsageDetail_20' ) end [2025-04-12 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894992', 'tblTempVendorCDR_20' ) start [2025-04-12 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894992', 'tblTempVendorCDR_20' ) end [2025-04-12 23:42:19] Production.INFO: ProcessCDR(1,14894992,1,1,2) [2025-04-12 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894992', 'tblTempUsageDetail_20' ) start [2025-04-12 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894992', 'tblTempUsageDetail_20' ) end [2025-04-12 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:42:22] Production.INFO: ==19388== Releasing lock... [2025-04-12 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:42:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:43:05 [end_date_ymd] => 2025-04-12 23:43:05 [RateCDR] => 1 ) [2025-04-12 23:43: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-04-12 20:43:05' and `end` < '2025-04-12 23:43: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-04-12 23:43:17] Production.INFO: count ==1178 [2025-04-12 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:43:05 - End Time 2025-04-12 23:43:05 [2025-04-12 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894997', 'tblTempUsageDetail_20' ) start [2025-04-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14894997', 'tblTempUsageDetail_20' ) end [2025-04-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894997', 'tblTempVendorCDR_20' ) start [2025-04-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14894997', 'tblTempVendorCDR_20' ) end [2025-04-12 23:43:18] Production.INFO: ProcessCDR(1,14894997,1,1,2) [2025-04-12 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14894997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14894997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14894997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14894997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894997', 'tblTempUsageDetail_20' ) start [2025-04-12 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14894997', 'tblTempUsageDetail_20' ) end [2025-04-12 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:43:21] Production.INFO: ==19463== Releasing lock... [2025-04-12 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:44:05 [end_date_ymd] => 2025-04-12 23:44:05 [RateCDR] => 1 ) [2025-04-12 23:44: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-04-12 20:44:05' and `end` < '2025-04-12 23:44: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-04-12 23:44:18] Production.INFO: count ==1178 [2025-04-12 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:44:05 - End Time 2025-04-12 23:44:05 [2025-04-12 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895002', 'tblTempUsageDetail_20' ) start [2025-04-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895002', 'tblTempUsageDetail_20' ) end [2025-04-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895002', 'tblTempVendorCDR_20' ) start [2025-04-12 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895002', 'tblTempVendorCDR_20' ) end [2025-04-12 23:44:18] Production.INFO: ProcessCDR(1,14895002,1,1,2) [2025-04-12 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895002', 'tblTempUsageDetail_20' ) start [2025-04-12 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895002', 'tblTempUsageDetail_20' ) end [2025-04-12 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:44:22] Production.INFO: ==19534== Releasing lock... [2025-04-12 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:44:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:45:05 [end_date_ymd] => 2025-04-12 23:45:05 [RateCDR] => 1 ) [2025-04-12 23:45: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-04-12 20:45:05' and `end` < '2025-04-12 23:45: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-04-12 23:45:18] Production.INFO: count ==1175 [2025-04-12 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:45:05 - End Time 2025-04-12 23:45:05 [2025-04-12 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895007', 'tblTempUsageDetail_20' ) start [2025-04-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895007', 'tblTempUsageDetail_20' ) end [2025-04-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895007', 'tblTempVendorCDR_20' ) start [2025-04-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895007', 'tblTempVendorCDR_20' ) end [2025-04-12 23:45:18] Production.INFO: ProcessCDR(1,14895007,1,1,2) [2025-04-12 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895007', 'tblTempUsageDetail_20' ) start [2025-04-12 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895007', 'tblTempUsageDetail_20' ) end [2025-04-12 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:45:23] Production.INFO: ==19608== Releasing lock... [2025-04-12 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:45:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:46:06 [end_date_ymd] => 2025-04-12 23:46:06 [RateCDR] => 1 ) [2025-04-12 23:46: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-04-12 20:46:06' and `end` < '2025-04-12 23:46: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-04-12 23:46:19] Production.INFO: count ==1172 [2025-04-12 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:46:06 - End Time 2025-04-12 23:46:06 [2025-04-12 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895012', 'tblTempUsageDetail_20' ) start [2025-04-12 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895012', 'tblTempUsageDetail_20' ) end [2025-04-12 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895012', 'tblTempVendorCDR_20' ) start [2025-04-12 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895012', 'tblTempVendorCDR_20' ) end [2025-04-12 23:46:19] Production.INFO: ProcessCDR(1,14895012,1,1,2) [2025-04-12 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895012', 'tblTempUsageDetail_20' ) start [2025-04-12 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895012', 'tblTempUsageDetail_20' ) end [2025-04-12 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:46:22] Production.INFO: ==19690== Releasing lock... [2025-04-12 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-12 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:47:05 [end_date_ymd] => 2025-04-12 23:47:05 [RateCDR] => 1 ) [2025-04-12 23:47: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-04-12 20:47:05' and `end` < '2025-04-12 23:47: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-04-12 23:47:17] Production.INFO: count ==1170 [2025-04-12 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:47:05 - End Time 2025-04-12 23:47:05 [2025-04-12 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895017', 'tblTempUsageDetail_20' ) start [2025-04-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895017', 'tblTempUsageDetail_20' ) end [2025-04-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895017', 'tblTempVendorCDR_20' ) start [2025-04-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895017', 'tblTempVendorCDR_20' ) end [2025-04-12 23:47:18] Production.INFO: ProcessCDR(1,14895017,1,1,2) [2025-04-12 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895017', 'tblTempUsageDetail_20' ) start [2025-04-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895017', 'tblTempUsageDetail_20' ) end [2025-04-12 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:47:21] Production.INFO: ==19760== Releasing lock... [2025-04-12 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:47:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:48:05 [end_date_ymd] => 2025-04-12 23:48:05 [RateCDR] => 1 ) [2025-04-12 23:48: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-04-12 20:48:05' and `end` < '2025-04-12 23:48: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-04-12 23:48:18] Production.INFO: count ==1169 [2025-04-12 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:48:05 - End Time 2025-04-12 23:48:05 [2025-04-12 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895022', 'tblTempUsageDetail_20' ) start [2025-04-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895022', 'tblTempUsageDetail_20' ) end [2025-04-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895022', 'tblTempVendorCDR_20' ) start [2025-04-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895022', 'tblTempVendorCDR_20' ) end [2025-04-12 23:48:18] Production.INFO: ProcessCDR(1,14895022,1,1,2) [2025-04-12 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895022', 'tblTempUsageDetail_20' ) start [2025-04-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895022', 'tblTempUsageDetail_20' ) end [2025-04-12 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:48:22] Production.INFO: ==19830== Releasing lock... [2025-04-12 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:49:04 [end_date_ymd] => 2025-04-12 23:49:04 [RateCDR] => 1 ) [2025-04-12 23:49: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-04-12 20:49:04' and `end` < '2025-04-12 23:49: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-04-12 23:49:17] Production.INFO: count ==1167 [2025-04-12 23:49:17] Production.ERROR: pbx CDR StartTime 2025-04-12 20:49:04 - End Time 2025-04-12 23:49:04 [2025-04-12 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895025', 'tblTempUsageDetail_20' ) start [2025-04-12 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895025', 'tblTempUsageDetail_20' ) end [2025-04-12 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895025', 'tblTempVendorCDR_20' ) start [2025-04-12 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895025', 'tblTempVendorCDR_20' ) end [2025-04-12 23:49:17] Production.INFO: ProcessCDR(1,14895025,1,1,2) [2025-04-12 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895025', 'tblTempUsageDetail_20' ) start [2025-04-12 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895025', 'tblTempUsageDetail_20' ) end [2025-04-12 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:49:21] Production.INFO: ==19900== Releasing lock... [2025-04-12 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:50:06 [end_date_ymd] => 2025-04-12 23:50:06 [RateCDR] => 1 ) [2025-04-12 23:50: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-04-12 20:50:06' and `end` < '2025-04-12 23:50: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-04-12 23:50:19] Production.INFO: count ==1170 [2025-04-12 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:50:06 - End Time 2025-04-12 23:50:06 [2025-04-12 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895033', 'tblTempUsageDetail_20' ) start [2025-04-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895033', 'tblTempUsageDetail_20' ) end [2025-04-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895033', 'tblTempVendorCDR_20' ) start [2025-04-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895033', 'tblTempVendorCDR_20' ) end [2025-04-12 23:50:19] Production.INFO: ProcessCDR(1,14895033,1,1,2) [2025-04-12 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895033', 'tblTempUsageDetail_20' ) start [2025-04-12 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895033', 'tblTempUsageDetail_20' ) end [2025-04-12 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:50:22] Production.INFO: ==20012== Releasing lock... [2025-04-12 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:51:05 [end_date_ymd] => 2025-04-12 23:51:05 [RateCDR] => 1 ) [2025-04-12 23:51: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-04-12 20:51:05' and `end` < '2025-04-12 23:51: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-04-12 23:51:17] Production.INFO: count ==1128 [2025-04-12 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:51:05 - End Time 2025-04-12 23:51:05 [2025-04-12 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895038', 'tblTempUsageDetail_20' ) start [2025-04-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895038', 'tblTempUsageDetail_20' ) end [2025-04-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895038', 'tblTempVendorCDR_20' ) start [2025-04-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895038', 'tblTempVendorCDR_20' ) end [2025-04-12 23:51:18] Production.INFO: ProcessCDR(1,14895038,1,1,2) [2025-04-12 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895038', 'tblTempUsageDetail_20' ) start [2025-04-12 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895038', 'tblTempUsageDetail_20' ) end [2025-04-12 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:51:21] Production.INFO: ==20093== Releasing lock... [2025-04-12 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:52:05 [end_date_ymd] => 2025-04-12 23:52:05 [RateCDR] => 1 ) [2025-04-12 23:52: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-04-12 20:52:05' and `end` < '2025-04-12 23:52: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-04-12 23:52:18] Production.INFO: count ==1128 [2025-04-12 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:52:05 - End Time 2025-04-12 23:52:05 [2025-04-12 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895043', 'tblTempUsageDetail_20' ) start [2025-04-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895043', 'tblTempUsageDetail_20' ) end [2025-04-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895043', 'tblTempVendorCDR_20' ) start [2025-04-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895043', 'tblTempVendorCDR_20' ) end [2025-04-12 23:52:18] Production.INFO: ProcessCDR(1,14895043,1,1,2) [2025-04-12 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895043', 'tblTempUsageDetail_20' ) start [2025-04-12 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895043', 'tblTempUsageDetail_20' ) end [2025-04-12 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:52:21] Production.INFO: ==20165== Releasing lock... [2025-04-12 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:53:06 [end_date_ymd] => 2025-04-12 23:53:06 [RateCDR] => 1 ) [2025-04-12 23:53: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-04-12 20:53:06' and `end` < '2025-04-12 23:53: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-04-12 23:53:19] Production.INFO: count ==1127 [2025-04-12 23:53:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:53:06 - End Time 2025-04-12 23:53:06 [2025-04-12 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895048', 'tblTempUsageDetail_20' ) start [2025-04-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895048', 'tblTempUsageDetail_20' ) end [2025-04-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895048', 'tblTempVendorCDR_20' ) start [2025-04-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895048', 'tblTempVendorCDR_20' ) end [2025-04-12 23:53:19] Production.INFO: ProcessCDR(1,14895048,1,1,2) [2025-04-12 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895048', 'tblTempUsageDetail_20' ) start [2025-04-12 23:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895048', 'tblTempUsageDetail_20' ) end [2025-04-12 23:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:53:24] Production.INFO: ==20235== Releasing lock... [2025-04-12 23:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:53:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:54:05 [end_date_ymd] => 2025-04-12 23:54:05 [RateCDR] => 1 ) [2025-04-12 23:54: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-04-12 20:54:05' and `end` < '2025-04-12 23:54: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-04-12 23:54:18] Production.INFO: count ==1124 [2025-04-12 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:54:05 - End Time 2025-04-12 23:54:05 [2025-04-12 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895053', 'tblTempUsageDetail_20' ) start [2025-04-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895053', 'tblTempUsageDetail_20' ) end [2025-04-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895053', 'tblTempVendorCDR_20' ) start [2025-04-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895053', 'tblTempVendorCDR_20' ) end [2025-04-12 23:54:18] Production.INFO: ProcessCDR(1,14895053,1,1,2) [2025-04-12 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895053', 'tblTempUsageDetail_20' ) start [2025-04-12 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895053', 'tblTempUsageDetail_20' ) end [2025-04-12 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:54:22] Production.INFO: ==20307== Releasing lock... [2025-04-12 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:55:06 [end_date_ymd] => 2025-04-12 23:55:06 [RateCDR] => 1 ) [2025-04-12 23:55: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-04-12 20:55:06' and `end` < '2025-04-12 23:55: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-04-12 23:55:19] Production.INFO: count ==1126 [2025-04-12 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:55:06 - End Time 2025-04-12 23:55:06 [2025-04-12 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895058', 'tblTempUsageDetail_20' ) start [2025-04-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895058', 'tblTempUsageDetail_20' ) end [2025-04-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895058', 'tblTempVendorCDR_20' ) start [2025-04-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895058', 'tblTempVendorCDR_20' ) end [2025-04-12 23:55:19] Production.INFO: ProcessCDR(1,14895058,1,1,2) [2025-04-12 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895058', 'tblTempUsageDetail_20' ) start [2025-04-12 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895058', 'tblTempUsageDetail_20' ) end [2025-04-12 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:55:22] Production.INFO: ==20378== Releasing lock... [2025-04-12 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:56:05 [end_date_ymd] => 2025-04-12 23:56:05 [RateCDR] => 1 ) [2025-04-12 23:56: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-04-12 20:56:05' and `end` < '2025-04-12 23:56: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-04-12 23:56:18] Production.INFO: count ==1124 [2025-04-12 23:56:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:56:05 - End Time 2025-04-12 23:56:05 [2025-04-12 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895063', 'tblTempUsageDetail_20' ) start [2025-04-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895063', 'tblTempUsageDetail_20' ) end [2025-04-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895063', 'tblTempVendorCDR_20' ) start [2025-04-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895063', 'tblTempVendorCDR_20' ) end [2025-04-12 23:56:19] Production.INFO: ProcessCDR(1,14895063,1,1,2) [2025-04-12 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895063', 'tblTempUsageDetail_20' ) start [2025-04-12 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895063', 'tblTempUsageDetail_20' ) end [2025-04-12 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:56:22] Production.INFO: ==20470== Releasing lock... [2025-04-12 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:56:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:57:06 [end_date_ymd] => 2025-04-12 23:57:06 [RateCDR] => 1 ) [2025-04-12 23:57: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-04-12 20:57:06' and `end` < '2025-04-12 23:57: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-04-12 23:57:18] Production.INFO: count ==1124 [2025-04-12 23:57:19] Production.ERROR: pbx CDR StartTime 2025-04-12 20:57:06 - End Time 2025-04-12 23:57:06 [2025-04-12 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895068', 'tblTempUsageDetail_20' ) start [2025-04-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895068', 'tblTempUsageDetail_20' ) end [2025-04-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895068', 'tblTempVendorCDR_20' ) start [2025-04-12 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895068', 'tblTempVendorCDR_20' ) end [2025-04-12 23:57:19] Production.INFO: ProcessCDR(1,14895068,1,1,2) [2025-04-12 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895068', 'tblTempUsageDetail_20' ) start [2025-04-12 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895068', 'tblTempUsageDetail_20' ) end [2025-04-12 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:57:22] Production.INFO: ==20546== Releasing lock... [2025-04-12 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:58:05 [end_date_ymd] => 2025-04-12 23:58:05 [RateCDR] => 1 ) [2025-04-12 23:58: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-04-12 20:58:05' and `end` < '2025-04-12 23:58: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-04-12 23:58:18] Production.INFO: count ==1124 [2025-04-12 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:58:05 - End Time 2025-04-12 23:58:05 [2025-04-12 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895073', 'tblTempUsageDetail_20' ) start [2025-04-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895073', 'tblTempUsageDetail_20' ) end [2025-04-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895073', 'tblTempVendorCDR_20' ) start [2025-04-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895073', 'tblTempVendorCDR_20' ) end [2025-04-12 23:58:18] Production.INFO: ProcessCDR(1,14895073,1,1,2) [2025-04-12 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895073', 'tblTempUsageDetail_20' ) start [2025-04-12 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895073', 'tblTempUsageDetail_20' ) end [2025-04-12 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:58:22] Production.INFO: ==20619== Releasing lock... [2025-04-12 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-12 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-12 20:59:05 [end_date_ymd] => 2025-04-12 23:59:05 [RateCDR] => 1 ) [2025-04-12 23:59: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-04-12 20:59:05' and `end` < '2025-04-12 23:59: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-04-12 23:59:18] Production.INFO: count ==1124 [2025-04-12 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-12 20:59:05 - End Time 2025-04-12 23:59:05 [2025-04-12 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-12 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895078', 'tblTempUsageDetail_20' ) start [2025-04-12 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14895078', 'tblTempUsageDetail_20' ) end [2025-04-12 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895078', 'tblTempVendorCDR_20' ) start [2025-04-12 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14895078', 'tblTempVendorCDR_20' ) end [2025-04-12 23:59:18] Production.INFO: ProcessCDR(1,14895078,1,1,2) [2025-04-12 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14895078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14895078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-12 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14895078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14895078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-12 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895078', 'tblTempUsageDetail_20' ) start [2025-04-12 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14895078', 'tblTempUsageDetail_20' ) end [2025-04-12 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-12 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-12 23:59:22] Production.INFO: ==20689== Releasing lock... [2025-04-12 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-12 23:59:22] Production.INFO: 36.25 MB #Memory Used#